Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 26, 2023
1 parent 951f6d8 commit a75df33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nwbinspector/checks/nwbfile_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def check_doi_publications(nwbfile: NWBFile):
def check_subject_age(subject: Subject):
"""Check if the Subject age is in ISO 8601 or our extension of it for ranges."""
if subject.age is None and subject.date_of_birth is None:
return InspectorMessage(message="Subject is missing age and date_of_birth. Please specify at least one of these fields.")
return InspectorMessage(
message="Subject is missing age and date_of_birth. Please specify at least one of these fields."
)
elif subject.age is None and subject.date_of_birth is not None:
return
if re.fullmatch(pattern=duration_regex, string=subject.age):
Expand Down

0 comments on commit a75df33

Please sign in to comment.