From 7f79201cf6aba93b379b451fbd2174728d930f47 Mon Sep 17 00:00:00 2001 From: Justin Haze Date: Fri, 16 Feb 2024 15:49:30 -0700 Subject: [PATCH] remove debug code --- .../actions/acquire_stepped_freq_tdomain_iq.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/scos_actions/actions/acquire_stepped_freq_tdomain_iq.py b/scos_actions/actions/acquire_stepped_freq_tdomain_iq.py index e859e5b7..f115fdf5 100644 --- a/scos_actions/actions/acquire_stepped_freq_tdomain_iq.py +++ b/scos_actions/actions/acquire_stepped_freq_tdomain_iq.py @@ -38,7 +38,6 @@ import logging import numpy as np -import tracemalloc from scos_actions.actions.acquire_single_freq_tdomain_iq import ( CAL_ADJUST, DURATION_MS, @@ -90,8 +89,6 @@ def __call__(self, sensor: Sensor, schedule_entry: dict, task_id: int): self._sensor = sensor self.test_required_components() saved_samples = 0 - #last_snapshot = None - #tracemalloc.start() for recording_id, measurement_params in enumerate( self.iterable_params, start=1 @@ -141,13 +138,6 @@ def __call__(self, sensor: Sensor, schedule_entry: dict, task_id: int): logger.debug("Creating metadata for measurement result") self.create_metadata(measurement_result, recording_id) - # snapshot = tracemalloc.take_snapshot() - # if last_snapshot: - # stats = snapshot.compare_to(last_snapshot, 'lineno') - # logger.debug("memory snapshot comparison") - # for stat in stats[:10]: - # logger.debug(stat) - # last_snapshot = snapshot logger.debug("sending measurement result to handler") measurement_action_completed.send( sender=self.__class__, @@ -156,7 +146,6 @@ def __call__(self, sensor: Sensor, schedule_entry: dict, task_id: int): metadata=self.sigmf_builder.metadata, ) saved_samples += num_samples - @property def description(self):