From d12ac07b8085c8a04aff82fcccf73277d4c625d6 Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Wed, 5 Jun 2024 11:56:43 -0700 Subject: [PATCH 1/2] Fix atomic Inspector time zone issue --- src/pyflask/manageNeuroconv/manage_neuroconv.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pyflask/manageNeuroconv/manage_neuroconv.py b/src/pyflask/manageNeuroconv/manage_neuroconv.py index a65185f5c..58c330926 100644 --- a/src/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/src/pyflask/manageNeuroconv/manage_neuroconv.py @@ -662,7 +662,7 @@ def validate_subject_metadata( subject_metadata["date_of_birth"] = datetime.fromisoformat(subject_metadata["date_of_birth"]) if timezone is not None: subject_metadata["date_of_birth"] = subject_metadata["date_of_birth"].replace( - tzinfo=pytz.timezone(timezone) + tzinfo=zoneinfo.ZoneInfo(timezone) ) return run_check_function(check_function, Subject(**subject_metadata)) @@ -672,7 +672,6 @@ def validate_nwbfile_metadata( nwbfile_metadata: dict, check_function_name: str, timezone: Optional[str] = None ): # -> Union[None, InspectorMessage, List[InspectorMessage]]: """Function used to validate NWBFile metadata.""" - import pytz from pynwb.testing.mock.file import mock_NWBFile check_function = get_check_function(check_function_name) @@ -681,7 +680,7 @@ def validate_nwbfile_metadata( nwbfile_metadata["session_start_time"] = datetime.fromisoformat(nwbfile_metadata["session_start_time"]) if timezone is not None: nwbfile_metadata["session_start_time"] = nwbfile_metadata["session_start_time"].replace( - tzinfo=pytz.timezone(timezone) + tzinfo=zoneinfo.ZoneInfo(timezone) ) return run_check_function(check_function, mock_NWBFile(**nwbfile_metadata)) From 37b025e8ea5d9bc0d2dfb91acbf50a4688bd2be9 Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Wed, 5 Jun 2024 15:53:55 -0400 Subject: [PATCH 2/2] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 64f15c4ec..b63394d92 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nwb-guide", "productName": "NWB GUIDE", - "version": "0.0.16", + "version": "1.0.0", "description": "NWB GUIDE is a desktop app that provides a no-code user interface for converting neurophysiology data to NWB.", "main": "./build/main/index.js", "engine": {