Skip to content

Commit

Permalink
fix: Fixes for changes introdueced when switching pull functions to q…
Browse files Browse the repository at this point in the history
…uery (#188)
  • Loading branch information
Nicolai-vKuegelgen authored Jul 11, 2023
1 parent e4f46d4 commit 5fcc369
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cubi_tk/snappy/pull_processed_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,13 @@ def execute(self) -> typing.Optional[int]:

# Find all remote files (iRODS)
pseudo_args = SimpleNamespace(hash_scheme=DEFAULT_HASH_SCHEME)
extensions_tuple = self.file_type_to_extensions_dict.get(self.args.file_type)
remote_files_dict = RetrieveIrodsCollection(
pseudo_args,
self.args.sodar_url,
self.args.sodar_api_token,
self.args.assay_uuid,
self.args.project_uuid,
).perform(identifiers=selected_identifiers, extensions_tuple=extensions_tuple)
).perform()

# Filter based on identifiers and file type
filtered_remote_files_dict = self.filter_irods_collection(
Expand Down
2 changes: 1 addition & 1 deletion cubi_tk/snappy/retrieve_irods_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def parse_irods_collection(irods_data_objs) -> typing.Dict[str, typing.List[iROD
# Initialise variables
output_dict = defaultdict(list)

for obj in irods_data_objs["files"].values():
for obj in irods_data_objs["files"]:
output_dict[obj.name].append(obj)

return output_dict

0 comments on commit 5fcc369

Please sign in to comment.