Skip to content

Commit

Permalink
remove "calibration_datetime" from metadata, replaced by Calibration …
Browse files Browse the repository at this point in the history
…object in capture
  • Loading branch information
jhazentia committed Mar 4, 2024
1 parent a70ce1b commit 0d26e5b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
4 changes: 0 additions & 4 deletions scos_actions/actions/acquire_single_freq_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,6 @@ def execute(self, schedule_entry: dict, task_id: int) -> dict:
# Save measurement results
measurement_result["data"] = m4s_result
measurement_result.update(self.parameters)
if self.cal_adjust:
measurement_result[
"calibration_datetime"
] = self.sensor.signal_analyzer.sensor_calibration_data["datetime"]
measurement_result["task_id"] = task_id
measurement_result["classification"] = self.classification

Expand Down
4 changes: 0 additions & 4 deletions scos_actions/actions/acquire_single_freq_tdomain_iq.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ def execute(self, schedule_entry: dict, task_id: int) -> dict:
measurement_result.update(self.parameters)
measurement_result["end_time"] = end_time
measurement_result["task_id"] = task_id
if self.cal_adjust:
measurement_result[
"calibration_datetime"
] = self.sensor.signal_analyzer.sensor_calibration_data["datetime"]
measurement_result["classification"] = self.classification
sigan_settings = self.get_sigan_settings(measurement_result)
logger.debug(f"sigan settings:{sigan_settings}")
Expand Down
6 changes: 0 additions & 6 deletions scos_actions/actions/interfaces/measurement_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ def create_metadata(
self.sigmf_builder.set_classification(measurement_result["classification"])
except KeyError:
logger.warning(warning_str.format("classification"))
try:
self.sigmf_builder.set_last_calibration_time(
measurement_result["calibration_datetime"]
)
except KeyError:
logger.warning(warning_str.format("calibration_datetime"))
try:
cap = measurement_result["capture_segment"]
logger.debug(f"Adding capture:{cap}")
Expand Down
5 changes: 0 additions & 5 deletions scos_actions/metadata/sigmf_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,6 @@ def add_annotation(self, start_index, length, annotation_md):
start_index=start_index, length=length, metadata=annotation_md
)

def set_last_calibration_time(self, last_cal_time):
self.sigmf_md.set_global_field(
"ntia-sensor:calibration_datetime", last_cal_time
)

def add_to_global(self, key, value):
self.sigmf_md.set_global_field(key, value)

Expand Down

0 comments on commit 0d26e5b

Please sign in to comment.