Skip to content

Commit b7a8089

Browse files
committed
do not rely on package function to find where to save
1 parent 530c39c commit b7a8089

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/update_openneuro.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from utils import OPENNEURO
1717

1818
from cohort_creator._utils import openneuro_df
19-
from cohort_creator._utils import openneuro_listing_tsv
2019

2120
DEBUG = False
2221

@@ -36,7 +35,10 @@ def main() -> None:
3635

3736
datasets_df = pd.DataFrame.from_dict(datasets)
3837
datasets_df = datasets_df.sort_values("name")
39-
datasets_df.to_csv(openneuro_listing_tsv(), index=False, sep="\t")
38+
39+
root_dir = Path(__file__).parent.parent
40+
output_file = root_dir / "cohort_creator" / "data" / "openneuro.tsv"
41+
datasets_df.to_csv(output_file, index=False, sep="\t")
4042

4143

4244
if __name__ == "__main__":

0 commit comments

Comments
 (0)