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 Jun 4, 2024
1 parent d2bec56 commit 3180bc3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,15 +993,13 @@ def update_conversion_progress(message):
del ecephys_metadata["ElectrodeColumns"]

# Correct timezone in metadata fields
resolved_metadata["NWBFile"]["session_start_time"] = datetime.fromisoformat(resolved_metadata["NWBFile"][
"session_start_time"]).replace(
tzinfo=zoneinfo.ZoneInfo(info["timezone"])
)
resolved_metadata["NWBFile"]["session_start_time"] = datetime.fromisoformat(
resolved_metadata["NWBFile"]["session_start_time"]
).replace(tzinfo=zoneinfo.ZoneInfo(info["timezone"]))
if "date_of_birth" in resolved_metadata["Subject"]:
resolved_metadata["Subject"]["date_of_birth"] = datetime.fromisoformat(resolved_metadata["Subject"][
"date_of_birth"]).replace(
tzinfo=zoneinfo.ZoneInfo(info["timezone"])
)
resolved_metadata["Subject"]["date_of_birth"] = datetime.fromisoformat(
resolved_metadata["Subject"]["date_of_birth"]
).replace(tzinfo=zoneinfo.ZoneInfo(info["timezone"]))

# Actually run the conversion
converter.run_conversion(
Expand Down

0 comments on commit 3180bc3

Please sign in to comment.