Commit 7d8fd24
Merge v24.1.9 into main (#905)
* update the VERSION for the next bug fix release (#816)
* [dcm2bids] Remove hardcoded dcm2niix binary to use the value stored in the `converter` Config setting (#815)
* modifies the dcm2niix command to use the Config converter value instead of hardcoding dcm2niix
* add a check to make sure the converter is a dcm2niix binary
* Pull 24.0.3 in 24.1 release (#820)
* Reload the mri_upload dictionary before checking if a tarchive has been validated (#783)
* reload mri_upload object
* remove debugging exit and print statements
* fix minor bugs when dealing with scans.tsv files (#774)
* fix regex search for excluded series description patterns (#786)
* fix_return_statement_of_create_imaging_upload_dict_from_upload_id_function (#787)
* [dcm2bids] Insert into MRICandidateErrors if there is a Candidate PatientName mismatch (#790)
* insert into MRICandidateErrors when candidate mismatch or pname not matching between DICOMs and NIfTI
* remove exit
* fix table name to MRICandidateErrors instead of MriCandidateErrors as apparently, it makes a difference on MariaDB/Linux VMs while it just worked on local install on Mac... (#793)
* Set DICOM dates to undef if the date does not follow proper DICOM standard (#794)
* set date to undef if it does not follow proper DICOM formats
* fix all dates set to NULL
* Installation and pet fixes (#818)
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mcgill.ca>
* Update VERSION file for next bug fix release
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mail.mcgill.ca>
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mcgill.ca>
* fix nonetype errors when the visit of a session does not exist so that proper logging is done (#824)
* fix some errors when RepetitionTime is not available in JSON file (#825)
* Add capability to download file from s3 (#826)
* add capability to download file from s3
* fix flake8 error
* Upload to S3: support object name starting with s3://bucket_name/ for upload (#827)
* add capability to download file from s3
* fix flake8 error
* add ability to remove s3://bucketname/ from the object name before upload
* fix database class pselect documentation for the return type (#828)
* map scan type to scan type ID when scan type provided to run_nifti_insertion.pl (#829)
* modify permission of script run_push_imaging_files_to_s3_pipeline.py to make it executable (#830)
* skip violation if not found on filesystem since it means the scan has been rerun (#831)
* update VERSION file (#832)
* do not push files to S3 when their path in the DB is already an S3 URL (#833)
* fix violation files path when checking if the files are on the filesystem before adding them to the list of files to push to S3 (#834)
* Merge 24.0 release into 24.1 release (#836)
* Reload the mri_upload dictionary before checking if a tarchive has been validated (#783)
* reload mri_upload object
* remove debugging exit and print statements
* fix minor bugs when dealing with scans.tsv files (#774)
* fix regex search for excluded series description patterns (#786)
* fix_return_statement_of_create_imaging_upload_dict_from_upload_id_function (#787)
* [dcm2bids] Insert into MRICandidateErrors if there is a Candidate PatientName mismatch (#790)
* insert into MRICandidateErrors when candidate mismatch or pname not matching between DICOMs and NIfTI
* remove exit
* fix table name to MRICandidateErrors instead of MriCandidateErrors as apparently, it makes a difference on MariaDB/Linux VMs while it just worked on local install on Mac... (#793)
* Set DICOM dates to undef if the date does not follow proper DICOM standard (#794)
* set date to undef if it does not follow proper DICOM formats
* fix all dates set to NULL
* Installation and pet fixes (#818)
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mcgill.ca>
* Update VERSION file for next bug fix release
* Project, event validation and protobuf update (#823)
* Project, event validation and protobuf update
* Site and project search when creating candidate
* missing import
* correct pscid search
* Events validation
* flake rules update
* review, and NULL value filtered out for site and project
* flake
* flake
Co-authored-by: regisoc <regis.ongaro-carcy@mcin.ca>
* fix conflict
* fix version
* fix version
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mail.mcgill.ca>
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mcgill.ca>
Co-authored-by: regisoc <regis.ongaro-carcy@mcin.ca>
* fix check if file already inserted in DB (#845)
* Fix logic of determining file run number when previously inserted files are already pushed to S3 and not on filesystem anymore (#846)
* fix bug
* fix listing of filenames
* comment new function
* update version file (#847)
* Chunk creation subprocess failure check (#848)
* Chunk creation subprocess failure check
Raise error when the chunk creation subprocess fails.
Fix #843
* Update python/lib/physiological.py
Print actual error message
Co-authored-by: Cécile Madjar <cecile.madjar@mcin.ca>
Co-authored-by: Cécile Madjar <cecile.madjar@mcin.ca>
* Revert chunk_pb2.py changes (#849)
* remove prints in nifti_insertion_pipeline.py (#851)
* fix permissoin denied upon deletion of tmp dir (#853)
* update to next bug fix relesae (#854)
* fix duplicated protocols error when same scan type returned (#856)
* Add missing exit codes on the python's side (#857)
* add some missing exit codes
* add some missing exit codes
* add ignore case to regex (#859)
* add download from S3 and reupload if file provided to run_nifti-insertion was an S3 URL (#860)
* fix intended for bug when no acq time available (#861)
* fix bug for intended for when getting the list of files needed IntendedFor (#862)
* fix paths when there are not / at the end of the Config (#866)
Tested on sandbox with Config `data_dir` = `/data/loris/data`
* fix NoneType error /opt/loris/bin/mri/python/lib/dcm2bids_imaging_pipeline_lib/dicom_archive_loader_pipeline.py, line 346, in _add_intended_for_to_fieldmap_json_files (#867)
Tested on HBCD sandbox on the dataset that caused the issue.
* Properly update `mri_upload` 'Inserting' column when different sections of the pipeline are run (#868)
* update mri_upload to inserting=0 when push to s3 pipeline is finished
* fix Inserting flag being properly set when pipeline is running
* update version file to 24.1.6 (#870)
* Add download from S3 for fmap already pushed to S3 that needs to have IntendedFor written in them (#874)
* add download from S3 for fmap that needs to have IntendedFor written in them
* add print
* update version to 24.1.7 (#876)
* Merge 24.0.4 into 24.1 release (#878)
* Reload the mri_upload dictionary before checking if a tarchive has been validated (#783)
* reload mri_upload object
* remove debugging exit and print statements
* fix minor bugs when dealing with scans.tsv files (#774)
* fix regex search for excluded series description patterns (#786)
* fix_return_statement_of_create_imaging_upload_dict_from_upload_id_function (#787)
* [dcm2bids] Insert into MRICandidateErrors if there is a Candidate PatientName mismatch (#790)
* insert into MRICandidateErrors when candidate mismatch or pname not matching between DICOMs and NIfTI
* remove exit
* fix table name to MRICandidateErrors instead of MriCandidateErrors as apparently, it makes a difference on MariaDB/Linux VMs while it just worked on local install on Mac... (#793)
* Set DICOM dates to undef if the date does not follow proper DICOM standard (#794)
* set date to undef if it does not follow proper DICOM formats
* fix all dates set to NULL
* Installation and pet fixes (#818)
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mcgill.ca>
* Update VERSION file for next bug fix release
* Project, event validation and protobuf update (#823)
* Project, event validation and protobuf update
* Site and project search when creating candidate
* missing import
* correct pscid search
* Events validation
* flake rules update
* review, and NULL value filtered out for site and project
* flake
* flake
Co-authored-by: regisoc <regis.ongaro-carcy@mcin.ca>
* DICOM Archive broken archive link fix (#872)
* update version to 24.0.4 (#877)
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mail.mcgill.ca>
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mcgill.ca>
Co-authored-by: regisoc <regis.ongaro-carcy@mcin.ca>
* add a delete_file function for S3 (#881)
* MATLAB 7.3 HDF5 Workaround (#880)
* Added workaround for HDF5 files
* Added correct file path confirmation
* Duplicated code clean-up
* Revised conditional logic
* Fix nii insertion mri protocol group id bug (#883)
* fix no attribute 'mri_protocol_group_id' error when scan type is specified
* fix bug
* refactor changes
* fix bug
* fix violation summary key unavailable
* fix violation summary key unavailable
* fix violation summary key unavailable
* fix violation summary key unavailable
* fix violation summary key unavailable
* fix violation summary key unavailable
* Do not register multiple entries of the same violation in `mri_violations_log` and `mri_protocol_violated_scans` (#884)
* keep track of additional event data (24.1) (#873)
* keep track of additional event data
* py eeg/physiological
* Copy .set file before updating paths (#886)
* change version to 24.1.8 (#887)
* fix incomplete format for query to files table for EchoNumber field (#889)
* Add a check before inserting in mri_candidate_errors.py (#891)
* add a check before inserting in mri_candidate_errors.py
* use TE instead of imageType
* fix gzip_nifti empty (#898)
* Fix bug when scan type is provided to nifti_insertion.py script (#899)
* fix NIfTI insertion scan type name attribute not found
* fix no scan type id
* fix nifti insertion when scan type is not provided (#901)
* change Task to Property prefix for additional events (#900)
* add image_type to mpvs (#902)
* Fix run numbering logic to use SessionID and not TarchiveID to figure out the next number of a run (#903)
* fix run number logic to use SessionID instead of TarchiveID to determine run number
* fix bug to query the files for the sessionID instead of hte tarchiveid
* fix doc
* update version to 24.1.9 (#904)
---------
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mail.mcgill.ca>
Co-authored-by: Laetitia Fesselier <laetitia.fesselier@mcgill.ca>
Co-authored-by: regisoc <regis.ongaro-carcy@mcin.ca>
Co-authored-by: regis <regisoc@users.noreply.github.com>
Co-authored-by: jeffersoncasimir <15801528+jeffersoncasimir@users.noreply.github.com>
Co-authored-by: Zaliqa <zaliqa.rosli@mcin.ca>1 parent f20a3df commit 7d8fd24
File tree
8 files changed
+77
-14
lines changed- python/lib
- database_lib
- dcm2bids_imaging_pipeline_lib
- tools
8 files changed
+77
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
438 | | - | |
439 | | - | |
| 439 | + | |
| 440 | + | |
440 | 441 | | |
441 | 442 | | |
442 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
207 | 219 | | |
208 | 220 | | |
209 | | - | |
| 221 | + | |
210 | 222 | | |
211 | 223 | | |
212 | 224 | | |
213 | 225 | | |
214 | | - | |
| 226 | + | |
215 | 227 | | |
216 | 228 | | |
217 | 229 | | |
| |||
238 | 250 | | |
239 | 251 | | |
240 | 252 | | |
| 253 | + | |
241 | 254 | | |
242 | 255 | | |
243 | 256 | | |
| |||
247 | 260 | | |
248 | 261 | | |
249 | 262 | | |
250 | | - | |
| 263 | + | |
251 | 264 | | |
252 | 265 | | |
253 | 266 | | |
| |||
956 | 969 | | |
957 | 970 | | |
958 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
959 | 992 | | |
960 | 993 | | |
961 | 994 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
829 | | - | |
830 | | - | |
| 829 | + | |
| 830 | + | |
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments