Skip to content

Commit

Permalink
Call get_metadata when no metadata is passed on ophys interfaces (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin authored Feb 12, 2025
1 parent 0c1a6a0 commit 89aac67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Added Returns section to all getter docstrings [PR #1185](https://github.com/catalystneuro/neuroconv/pull/1185)
* ElectricalSeries have better chunking defaults when data is passed as plain array [PR #1184](https://github.com/catalystneuro/neuroconv/pull/1184)
* Support Spikeinterface 0.102 [PR #1194](https://github.com/catalystneuro/neuroconv/pull/1194)
* Ophys interfaces now call `get_metadata` by default when no metadata is passed [PR #1200](https://github.com/catalystneuro/neuroconv/pull/1200)

# v0.6.7 (January 20, 2025)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,7 @@ def add_to_nwbfile(
else:
recording = self.recording_extractor

if metadata is None:
metadata = self.get_metadata()
metadata = metadata or self.get_metadata()

add_recording_to_nwbfile(
recording=recording,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ def add_to_nwbfile(
else:
imaging_extractor = self.imaging_extractor

metadata = metadata or self.get_metadata()

add_imaging_to_nwbfile(
imaging=imaging_extractor,
nwbfile=nwbfile,
Expand Down

0 comments on commit 89aac67

Please sign in to comment.