diff --git a/python/bids_import.py b/python/bids_import.py index aa7accd47..b82ce2106 100755 --- a/python/bids_import.py +++ b/python/bids_import.py @@ -354,8 +354,8 @@ def read_and_insert_bids( default_visit_label = default_bids_vl, loris_bids_eeg_rel_dir = loris_bids_modality_rel_dir, loris_bids_root_dir = loris_bids_root_dir, - dataset_tag_dict = dataset_tag_dict - type = type + dataset_tag_dict = dataset_tag_dict, + dataset_type = type ) elif modality in ['anat', 'dwi', 'fmap', 'func']: diff --git a/python/lib/eeg.py b/python/lib/eeg.py index dc4ea156c..08d0dd6c6 100755 --- a/python/lib/eeg.py +++ b/python/lib/eeg.py @@ -966,7 +966,7 @@ def create_and_insert_event_archive(self, files_to_archive, archive_rel_name, ee return # create the archive file - utilities.create_archive(files_to_archive, archive_rel_name, self.data_dir) + utilities.create_archive(files_to_archive, archive_full_path) # insert the archive into the physiological_annotation_archive table blake2 = utilities.compute_blake2b_hash(archive_full_path) diff --git a/python/lib/utilities.py b/python/lib/utilities.py index 13101aef1..140510587 100755 --- a/python/lib/utilities.py +++ b/python/lib/utilities.py @@ -147,10 +147,8 @@ def create_archive(files_to_archive, archive_path): :param files_to_archive: list of files to include in the archive :type files_to_archive: tuple - :param archive_rel_name: name of the archive relative to data_dir - :type archive_rel_name: str - :param data_dir : data_dir path - :type data_dir : str + :param archive_path: full path of archive + :type archive_path: str """ # if the archive does not already exists, create it