Skip to content

Commit

Permalink
Fix incorrect error message for opto stimulus site (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Oct 2, 2024
1 parent 007a4bd commit ba7d845
Show file tree
Hide file tree
Showing 3 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
Expand Up @@ -16,6 +16,8 @@
* Swapped setup approach to the modern `pyproject.toml` standard. [#507](https://github.com/NeurodataWithoutBorders/nwbinspector/pull/507)
* Added complete annotation typing and integrated Mypy into pre-commit. [#520](https://github.com/NeurodataWithoutBorders/nwbinspector/pull/520)

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


# v0.5.2
Expand Down
2 changes: 1 addition & 1 deletion src/nwbinspector/checks/_ogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ def check_optogenetic_stimulus_site_has_optogenetic_series(
if obj.site == ogen_site:
return None

return InspectorMessage(message="OptogeneticStimulusSite is not referenced by any OptogeneticStimulusSite.")
return InspectorMessage(message="OptogeneticStimulusSite is not referenced by any OptogeneticSeries.")
2 changes: 1 addition & 1 deletion tests/unit_tests/test_ogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ def test_check_pass(self):
def test_check_triggered(self):
assert (
check_optogenetic_stimulus_site_has_optogenetic_series(self.ogen_site).message
== "OptogeneticStimulusSite is not referenced by any OptogeneticStimulusSite."
== "OptogeneticStimulusSite is not referenced by any OptogeneticSeries."
)

0 comments on commit ba7d845

Please sign in to comment.