Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tientong98 committed Oct 4, 2024
1 parent c230792 commit 68b4962
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cubids/cubids.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ def apply_tsv_changes(self, summary_tsv, files_tsv, new_prefix, raise_on_error=T
merge_commands = []
for source_id, dest_id in ok_merges:
dest_files = files_df.loc[(files_df[["ParamGroup", "EntitySet"]] == dest_id).all(1)]
source_files = files_df.loc[(files_df[["ParamGroup", "EntitySet"]] == source_id).all(1)]
source_files = files_df.loc[
(files_df[["ParamGroup", "EntitySet"]] == source_id).all(1)
]

# Get a source json file
img_full_path = self.path + source_files.iloc[0].FilePath
Expand Down
4 changes: 3 additions & 1 deletion cubids/metadata_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ def group_by_acquisition_sets(files_tsv, output_prefix, acq_group_level):
acq_groups[acq_id].append((row.EntitySet, row.ParamGroup))
else:
acq_id = (file_entities.get("subject"), None)
acq_groups[acq_id].append((row.EntitySet, row.ParamGroup, file_entities.get("session")))
acq_groups[acq_id].append(
(row.EntitySet, row.ParamGroup, file_entities.get("session"))
)

# Map the contents to a list of subjects/sessions
contents_to_subjects = defaultdict(list)
Expand Down

0 comments on commit 68b4962

Please sign in to comment.