From 10060e63948f38c2bab380c025f9fc589f68bc98 Mon Sep 17 00:00:00 2001 From: rly Date: Thu, 25 Apr 2024 11:09:35 -0700 Subject: [PATCH] Fix ruff --- src/pynwb/testing/mock/file.py | 1 - src/pynwb/testing/testh5io.py | 1 - tests/integration/hdf5/test_base.py | 1 - tests/integration/hdf5/test_modular_storage.py | 1 - tests/unit/test_epoch.py | 1 - tests/unit/test_extension.py | 1 - tests/unit/test_icephys.py | 1 - tests/unit/test_scratch.py | 1 - 8 files changed, 8 deletions(-) diff --git a/src/pynwb/testing/mock/file.py b/src/pynwb/testing/mock/file.py index ee7fc5655..50369e7e1 100644 --- a/src/pynwb/testing/mock/file.py +++ b/src/pynwb/testing/mock/file.py @@ -1,7 +1,6 @@ from typing import Optional from uuid import uuid4 from datetime import datetime -from dateutil.tz import tzlocal from ...file import NWBFile, Subject from .utils import name_generator diff --git a/src/pynwb/testing/testh5io.py b/src/pynwb/testing/testh5io.py index 6a5c96547..45ae8cebe 100644 --- a/src/pynwb/testing/testh5io.py +++ b/src/pynwb/testing/testh5io.py @@ -1,5 +1,4 @@ from datetime import datetime -from dateutil.tz import tzlocal, tzutc import os from abc import ABCMeta, abstractmethod import warnings diff --git a/tests/integration/hdf5/test_base.py b/tests/integration/hdf5/test_base.py index 145f55d0f..75c346012 100644 --- a/tests/integration/hdf5/test_base.py +++ b/tests/integration/hdf5/test_base.py @@ -1,6 +1,5 @@ import numpy as np from datetime import datetime -from dateutil.tz import tzlocal from pynwb import TimeSeries, NWBFile, NWBHDF5IO from pynwb.base import Images, Image, ImageReferences diff --git a/tests/integration/hdf5/test_modular_storage.py b/tests/integration/hdf5/test_modular_storage.py index bfe71b772..09c916bfb 100644 --- a/tests/integration/hdf5/test_modular_storage.py +++ b/tests/integration/hdf5/test_modular_storage.py @@ -1,7 +1,6 @@ import os import gc from datetime import datetime -from dateutil.tz import tzutc import numpy as np from hdmf.backends.hdf5 import HDF5IO diff --git a/tests/unit/test_epoch.py b/tests/unit/test_epoch.py index 6cd3f6575..4bf2637df 100644 --- a/tests/unit/test_epoch.py +++ b/tests/unit/test_epoch.py @@ -1,7 +1,6 @@ import numpy as np import pandas as pd from datetime import datetime -from dateutil import tz from pynwb.epoch import TimeIntervals from pynwb import TimeSeries, NWBFile diff --git a/tests/unit/test_extension.py b/tests/unit/test_extension.py index a94268e93..abbb6511a 100644 --- a/tests/unit/test_extension.py +++ b/tests/unit/test_extension.py @@ -2,7 +2,6 @@ import random import string from datetime import datetime -from dateutil.tz import tzlocal from tempfile import gettempdir from hdmf.spec import RefSpec diff --git a/tests/unit/test_icephys.py b/tests/unit/test_icephys.py index 860221418..8ff1a67ba 100644 --- a/tests/unit/test_icephys.py +++ b/tests/unit/test_icephys.py @@ -14,7 +14,6 @@ from pynwb.testing import TestCase from pynwb.file import NWBFile # Needed to test icephys functionality defined on NWBFile from datetime import datetime -from dateutil.tz import tzlocal def GetElectrode(): diff --git a/tests/unit/test_scratch.py b/tests/unit/test_scratch.py index 29ecddbcc..c04a00e99 100644 --- a/tests/unit/test_scratch.py +++ b/tests/unit/test_scratch.py @@ -1,5 +1,4 @@ from datetime import datetime -from dateutil.tz import tzlocal import numpy as np from numpy.testing import assert_array_equal import pandas as pd