Fixed some settings, added gitignore.

This commit is contained in:
jupfi 2024-05-30 16:07:59 +02:00
parent 863753f670
commit baa2025590
7 changed files with 27 additions and 4 deletions

24
.gitignore vendored Normal file
View file

@ -0,0 +1,24 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.pyc
*$py.class
# Distribution / packaging
dist/
build/
*.egg-info/
# IDE-specific files
.idea/
.vscode/
# Logs
*.log
# Virtual environments
venv/
# Other
*.DS_Store
*.pos
*.quack

View file

@ -266,7 +266,7 @@ class LimeNQRController(SpectrometerController):
lime.TX_matching = int(self.limenqr.model.settings.tx_matching)
lime.RX_matching = int(self.limenqr.model.settings.rx_matching)
lime.frq = self.limenqr.model.target_frequency - self.limenqr.model.if_frequency
lime.rectime_secs = self.limenqr.model.settings.acquisition_time
lime.rectime_secs = float(self.limenqr.model.settings.acquisition_time)
c3_tim[0] = self.limenqr.model.settings.gate_enable
c3_tim[1] = self.limenqr.model.settings.gate_padding_left

View file

@ -113,12 +113,11 @@ class LimeNQRModel(SpectrometerModel):
self.add_setting("if_frequency", if_frequency_setting)
self.if_frequency = 5e6
acquisition_time_setting = FloatSetting(
acquisition_time_setting = StringSetting(
self.ACQUISITION_TIME,
self.ACQUISITION,
82e-6,
"Acquisition time - this is from the beginning of the pulse sequence",
min_value=0,
)
self.add_setting("acquisition_time", acquisition_time_setting)
@ -309,7 +308,7 @@ class LimeNQRModel(SpectrometerModel):
self.add_setting("rx_phase_adjustment", rx_phase_adjustment_setting)
# Signal Processing settings
rx_offset_setting = FloatSetting(
rx_offset_setting = StringSetting(
self.RX_OFFSET,
self.SIGNAL_PROCESSING,
2.4e-6,