Skip to content

Commit 063b5e0

Browse files
authored
get SessioNID from the session_obj instead of the tarchive obj (#909)
1 parent 3a45d1e commit 063b5e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/lib/dcm2bids_imaging_pipeline_lib/nifti_insertion_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def _determine_new_nifti_assembly_rel_path(self):
437437
# determine NIfTI file name
438438
new_nifti_name = self._construct_nifti_filename(file_bids_entities_dict)
439439
already_inserted_filenames = self.imaging_obj.get_list_of_files_already_inserted_for_session_id(
440-
self.dicom_archive_obj.tarchive_info_dict["SessionID"]
440+
self.session_obj.session_info_dict['ID']
441441
)
442442
while new_nifti_name in already_inserted_filenames:
443443
file_bids_entities_dict['run'] += 1

0 commit comments

Comments
 (0)