You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/collect_test_data.py
+47-26Lines changed: 47 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,31 @@
1
-
fromdataladimportapi
2
-
fromtempfileimportTemporaryDirectory
3
-
frompathlibimportPath
4
-
fromos.pathimportjoin
1
+
# /// script
2
+
# requires-python = ">=3.11"
3
+
# dependencies = [
4
+
# "datalad",
5
+
# ]
6
+
# ///
7
+
8
+
importargparse
9
+
importjson
10
+
importos
5
11
importshutil
6
-
importsubprocess
12
+
importsys
13
+
frompathlibimportPath
14
+
fromtempfileimportTemporaryDirectory
15
+
fromtypingimportUnion
16
+
7
17
importbids
8
18
importpandasaspd
9
-
importsys
10
-
importjson
11
-
importargparse
12
-
importos
19
+
fromdataladimportapi
13
20
14
21
readme_template="""# PETPrep Test Data Collection
15
22
16
23
## Overview
17
24
18
-
This dataset contains a curated collection of PET imaging data from multiple OpenNeuro datasets, compiled for testing and development of the PETPrep software pipeline. The data has been selected to provide a diverse range of PET imaging scenarios for comprehensive software testing.
25
+
This dataset contains a curated collection of PET imaging data from multiple
26
+
OpenNeuro datasets,compiled for testing and development of the PETPrep software pipeline.
27
+
The data has been selected to provide a diverse range of PET imaging scenarios for comprehensive
28
+
software testing.
19
29
20
30
## Dataset Information
21
31
@@ -72,7 +82,8 @@
72
82
73
83
---
74
84
75
-
*This is a test dataset compiled for software development purposes. Please refer to the original datasets for research use.*
85
+
*This is a test dataset compiled for software development purposes. Please refer to the original
0 commit comments