Skip to content

Commit

Permalink
Update sample_debug.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Jan 16, 2024
1 parent 54567d3 commit 719d1b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sample_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from scos_actions.actions.acquire_single_freq_fft import SingleFrequencyFftAcquisition
from scos_actions.hardware.mocks.mock_sigan import MockSignalAnalyzer
from scos_actions.hardware.sensor import Sensor
from scos_actions.signals import measurement_action_completed

parameters = {
Expand All @@ -17,6 +18,7 @@
"nffts": 300,
"nskip": 0,
"classification": "UNCLASSIFIED",
"calibration_adjust": False,
}
schedule_entry_json = {
"name": "test_m4s_multi_1",
Expand Down Expand Up @@ -50,10 +52,9 @@ def callback(sender, **kwargs):

measurement_action_completed.connect(callback)

action = SingleFrequencyFftAcquisition(
parameters=parameters, sigan=MockSignalAnalyzer(randomize_values=True)
)
action(schedule_entry_json, 1)
action = SingleFrequencyFftAcquisition(parameters)
sensor = Sensor(signal_analyzer=MockSignalAnalyzer(randomize_values=True))
action(sensor, schedule_entry_json, 1)
print("metadata:")
print(json.dumps(_metadata, indent=4))
print("finished")

0 comments on commit 719d1b1

Please sign in to comment.