File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 99import nibabel as nb
1010import numpy as np
1111import pandas as pd
12- from pkg_resources import resource_filename as pkgrf
12+ import importlib . resources
1313
14- TEST_DATA = pkgrf ("cubids" , "tests/data" )
14+ TEST_DATA = importlib . resources . files ("cubids" ) / "tests/data"
1515
1616
1717def get_data (tmp_path ):
@@ -51,18 +51,6 @@ def _add_deletion(summary_tsv):
5151 return df .loc [3 , "KeyParamGroup" ]
5252
5353
54- # def _edit_tsv(summary_tsv):
55- # df = pd.read_table(summary_tsv)
56- # df['RenameEntitySet'] = df['RenameEntitySet'].apply(str)
57- # df['EntitySet'] = df['EntitySet'].apply(str)
58- # for row in range(len(df)):
59- # if df.loc[row, 'EntitySet'] == \
60- # "acquisition-v4_datatype-fmap_fmap-magnitude1_suffix-magnitude1":
61- # df.at[row, 'RenameEntitySet'] = \
62- # "acquisition-v5_datatype-fmap_fmap-magnitude1_suffix-magnitude1"
63- # df.to_csv(summary_tsv)
64-
65-
6654def _add_ext_files (img_path ):
6755 # add and save extension files in
6856 dwi_exts = [".bval" , ".bvec" ]
You can’t perform that action at this time.
0 commit comments