Skip to content

Commit ba7d845

Browse files
authored
Fix incorrect error message for opto stimulus site (#524)
1 parent 007a4bd commit ba7d845

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* Swapped setup approach to the modern `pyproject.toml` standard. [#507](https://github.com/NeurodataWithoutBorders/nwbinspector/pull/507)
1717
* Added complete annotation typing and integrated Mypy into pre-commit. [#520](https://github.com/NeurodataWithoutBorders/nwbinspector/pull/520)
1818

19+
### Fixes
20+
* Fixed incorrect error message for OptogeneticStimulusSite. [#524](https://github.com/NeurodataWithoutBorders/nwbinspector/pull/524)
1921

2022

2123
# v0.5.2

src/nwbinspector/checks/_ogen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ def check_optogenetic_stimulus_site_has_optogenetic_series(
1616
if obj.site == ogen_site:
1717
return None
1818

19-
return InspectorMessage(message="OptogeneticStimulusSite is not referenced by any OptogeneticStimulusSite.")
19+
return InspectorMessage(message="OptogeneticStimulusSite is not referenced by any OptogeneticSeries.")

tests/unit_tests/test_ogen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ def test_check_pass(self):
3939
def test_check_triggered(self):
4040
assert (
4141
check_optogenetic_stimulus_site_has_optogenetic_series(self.ogen_site).message
42-
== "OptogeneticStimulusSite is not referenced by any OptogeneticStimulusSite."
42+
== "OptogeneticStimulusSite is not referenced by any OptogeneticSeries."
4343
)

0 commit comments

Comments
 (0)