Skip to content

Commit

Permalink
cleanup debugging lines
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbray32 committed Sep 28, 2023
1 parent cb68757 commit aca6606
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/spikegadgets_to_nwb/spike_gadgets_raw_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,20 +598,11 @@ def get_regressed_systime(self, i_start, i_stop=None):
# get values
trodestime = self.get_analogsignal_timestamps(i_start, i_stop)
systime = self.get_sys_clock(i_start, i_stop)
# assert trodestime.shape[0] = self._raw_memmap.shape[0]
# assert systime.shape[0] = self._raw_memmap.shape[0]
# Convert
logger.info("convert to float64")
systime_seconds = np.asarray(systime, dtype=np.float64).reshape(-1)
trodestime_index = np.asarray(trodestime, dtype=np.float64).reshape(-1)
# logger.info("convert to float64 v2")
# systime_seconds = systime.astype(np.float64)
# trodestime_index = trodestime.astype(np.float64)

print("trodestime_index", trodestime_index.shape)
logger.info("regress")
# regress
slope, intercept, _, _, _ = linregress(trodestime_index, systime_seconds)
logger.info("adjust timestamps")
adjusted_timestamps = intercept + slope * trodestime_index
return (adjusted_timestamps) / NANOSECONDS_PER_SECOND

Expand Down

0 comments on commit aca6606

Please sign in to comment.