We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2045f47 commit d37417aCopy full SHA for d37417a
tests/test_mies_nwb_pipeline_output.py
@@ -5,13 +5,13 @@
5
import os
6
import ipfx.json_utilities as ju
7
from ipfx.bin.run_pipeline import run_pipeline
8
-from pkg_resources import resource_filename
+import importlib.resources
9
from dictdiffer import diff
10
11
12
-TEST_SPECIMENS_FILE = resource_filename(__name__, 'test_mies_nwb2_specimens.csv')
13
-
14
-test_specimens = pd.read_csv(TEST_SPECIMENS_FILE, sep=" ")
+ref = importlib.resources.files('ipfx') / '../tests/test_mies_nwb2_specimens.csv'
+with importlib.resources.as_file(ref) as path:
+ test_specimens = pd.read_csv(path, sep=" ")
15
test_specimens_params = [tuple(sp) for sp in test_specimens.values]
16
17
0 commit comments