Skip to content

Commit 2b969f7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6291cb0 commit 2b969f7

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

src/nwb_benchmarks/benchmarks/network_tracking_create_json_from_remote.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
from asv_runner.benchmarks.mark import skip_benchmark
44

55
from nwb_benchmarks import TSHARK_PATH
6-
from nwb_benchmarks.core import BaseBenchmark, create_lindi_reference_file_system, network_activity_tracker
6+
from nwb_benchmarks.core import (
7+
BaseBenchmark,
8+
create_lindi_reference_file_system,
9+
network_activity_tracker,
10+
)
711

812
from .params_remote_file_reading import hdf5_params
913

@@ -31,4 +35,4 @@ def track_network_create_lindi_json(self, params: dict[str, str]):
3135
https_url = params["https_url"]
3236
with network_activity_tracker(tshark_path=TSHARK_PATH) as network_tracker:
3337
create_lindi_reference_file_system(https_url=https_url, outfile_path=self.lindi_file)
34-
return network_tracker.asv_network_statistics
38+
return network_tracker.asv_network_statistics

src/nwb_benchmarks/benchmarks/network_tracking_remote_slicing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
from nwb_benchmarks import TSHARK_PATH
1515
from nwb_benchmarks.core import (
1616
BaseBenchmark,
17+
download_read_hdf5_pynwb_lindi,
1718
get_object_by_name,
1819
network_activity_tracker,
19-
download_read_hdf5_pynwb_lindi,
2020
read_hdf5_pynwb_fsspec_https_no_cache,
2121
read_hdf5_pynwb_fsspec_https_with_cache,
2222
read_hdf5_pynwb_fsspec_s3_no_cache,

src/nwb_benchmarks/benchmarks/time_download.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Basic benchmarks for timing download of remote NWB files using different methods."""
2+
23
from asv_runner.benchmarks.mark import skip_benchmark_if
3-
from dandi.download import download, DownloadExisting
4+
from dandi.download import DownloadExisting, download
45

56
from nwb_benchmarks import RUN_DOWNLOAD_BENCHMARKS
67
from nwb_benchmarks.core import BaseBenchmark
@@ -13,6 +14,7 @@ class BaseDandiAPIDownloadBenchmark(BaseBenchmark):
1314
"""
1415
Base class for timing the download of remote NWB files using the DANDI API.
1516
"""
17+
1618
# Download each file only once per timing run even if download time < asv sample_time setting
1719
number = 1
1820

src/nwb_benchmarks/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from ._base_benchmark import BaseBenchmark
44
from ._capture_connections import CaptureConnections
5-
from ._dandi import get_https_url, get_asset_path_from_url, download_asset_if_not_exists
5+
from ._dandi import download_asset_if_not_exists, get_asset_path_from_url, get_https_url
66
from ._network_profiler import NetworkProfiler
77
from ._network_statistics import NetworkStatistics
88
from ._network_tracker import network_activity_tracker

src/nwb_benchmarks/core/_dandi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import posixpath
22

33
from dandi.dandiapi import DandiAPIClient
4-
from dandi.download import parse_dandi_url, download, DownloadExisting
4+
from dandi.download import DownloadExisting, download, parse_dandi_url
55

66
from ..setup import get_persistent_download_directory
77

src/nwb_benchmarks/core/_streaming.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from . import download_asset_if_not_exists
2424
from ..setup import get_temporary_directory
2525

26-
2726
# Useful if running in verbose model
2827
warnings.filterwarnings(action="ignore", message="No cached namespaces found in .*")
2928
warnings.filterwarnings(action="ignore", message="Ignoring cached namespace .*")

0 commit comments

Comments
 (0)