Skip to content

Commit

Permalink
Raise error if no DOB
Browse files Browse the repository at this point in the history
closes issue #53
  • Loading branch information
edeno committed Aug 1, 2023
1 parent 6a08662 commit 653fa96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rec_to_nwb/processing/metadata/metadata_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def extract_metadata(metadata_path):
"date_of_birth"
].strftime("%Y-%m-%dT%H:%M:%S.%fZ")
except KeyError:
pass
raise ValueError("date of birth is required in metadata yml file")
# for some reason they want to convert all ints, float to strings
return json.loads(json.dumps(yaml_dict), parse_int=str, parse_float=str)

0 comments on commit 653fa96

Please sign in to comment.