Skip to content

Commit

Permalink
Merge branch 'main' into deprecate_roi_extractors_code
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Oct 16, 2023
2 parents 6efa8b9 + 1ff0aea commit b197e57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# (Upcoming)
### Fixes
Remove `starting_time` reset to default value (0.0) when adding the rate and updating the `photon_series_kwargs` or `roi_response_series_kwargs`, in `add_photon_series` or `add_fluorescence_traces`. [PR #595](https://github.com/catalystneuro/neuroconv/pull/595)

### Fixes

Expand Down
4 changes: 2 additions & 2 deletions src/neuroconv/tools/roiextractors/roiextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def add_photon_series(
photon_series_kwargs.update(timestamps=H5DataIO(data=timestamps, compression="gzip"), rate=None)
else:
rate = float(imaging.get_sampling_frequency())
photon_series_kwargs.update(starting_time=0.0, rate=rate)
photon_series_kwargs.update(rate=rate)

# Add the photon series to the nwbfile (either as OnePhotonSeries or TwoPhotonSeries)
photon_series = dict(
Expand Down Expand Up @@ -844,7 +844,7 @@ def add_fluorescence_traces(
roi_response_series_kwargs.update(timestamps=H5DataIO(data=timestamps, compression="gzip"), rate=None)
else:
rate = float(segmentation_extractor.get_sampling_frequency())
roi_response_series_kwargs.update(starting_time=0.0, rate=rate)
roi_response_series_kwargs.update(rate=rate)

trace_to_data_interface = defaultdict()
traces_to_add_to_fluorescence_data_interface = [
Expand Down

0 comments on commit b197e57

Please sign in to comment.