-
Notifications
You must be signed in to change notification settings - Fork 1
/
todo.txt
45 lines (28 loc) · 1.33 KB
/
todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# USAGE CHANGES
* Rename exp_info/participants.tsv to exp_info/participants_to_import.tsv
* Change the default dataset_name to "rawdata" to better comply with the directory structure suggested by BIDS
# NEW FEATURES
* Optionally create a "sourcedata" directory with links to the source (DICOM) files
# TEST
* test data description file by default
* test README file
* test CHANGES file
* test the downloaded system / file_manager_default_file
# CODE
* use the optional_filters for getting session_id and sub-id ?
* loop to check and the downloaded file
# FUNCTIONS
* function to check a field into json file, e.g. Repetition Time
* function to check unity ms
* function to import onset .... information
* function for updating the intended for field in fmap json file
# NOTES
slice_times = pydicom.read_file(dicom_ref)[0x19, 0x1029].value
if (max(slice_times) > 1000):
print('**** BIDS IMPORTATION WARMING: SLICE TIMING SEEM TO BE IN MS CONVERSION IN Seconds IS DONE')
slice_times = [round((v*10**-3), 4 for v in slice_times]
dico_json['SliceTiming'] = slice_times
TR = pydicom.read_file(dicom_ref).RepetitionTime
if (TR > 10):
print('**** BIDS IMPORTATION WARMING: REPETITION TIME SEEM TO BE IN MS, CONVERSION IN Seconds IS DONE')
TR = round((TR * 10**-3), 4)