Skip to content

Commit

Permalink
Call get_metadata when no metadata is passed on segmentation interf…
Browse files Browse the repository at this point in the history
…aces (#1232)
  • Loading branch information
h-mayorquin authored Feb 28, 2025
1 parent 3da382f commit 24a1c8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ as used by hdmf >= 3.14.6.
* Simple writing no longer uses a context manager [PR #1180](https://github.com/catalystneuro/neuroconv/pull/1180)
* 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)
* Ophys interfaces now call `get_metadata` by default when no metadata is passed [PR #1200](https://github.com/catalystneuro/neuroconv/pull/1200)
* Ophys interfaces now call `get_metadata` by default when no metadata is passed [PR #1200](https://github.com/catalystneuro/neuroconv/pull/1200) and PR [#1232](https://github.com/catalystneuro/neuroconv/pull/1232)



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def add_to_nwbfile(
else:
segmentation_extractor = self.segmentation_extractor

metadata = metadata or self.get_metadata()

add_segmentation_to_nwbfile(
segmentation_extractor=segmentation_extractor,
nwbfile=nwbfile,
Expand Down

0 comments on commit 24a1c8f

Please sign in to comment.