Skip to content

Commit

Permalink
post merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Dec 14, 2023
1 parent e3a36ca commit 14415ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions giga_connectome/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def run_postprocessing_dataset(
Path(img.filename).stem, atlas["name"], strategy["name"]
)
connectome_path = connectome_path / "func" / filename
connectome_path = utils.check_path(connectome_path, verbose=True)
connectome_path = utils.check_path(connectome_path)

for desc, masker in atlas_maskers.items():
attribute_name = (
Expand Down Expand Up @@ -166,15 +166,15 @@ def run_postprocessing_dataset(
f"{attribute_name}_connectome", data=correlation_matrix
)

gc_log.info(f"Saved to:\n{output_path}")
gc_log.info(f"Saved to:\n{connectome_path}")

if analysis_level == "group":
connectome_path = (
output_path
/ "group"
/ utils.output_filename("", atlas["name"], strategy["name"])
)
connectome_path = utils.check_path(connectome_path, verbose=True)
connectome_path = utils.check_path(connectome_path)

gc_log.info("Create group connectome")
gc_log.info(connectome_path)
Expand All @@ -189,6 +189,8 @@ def run_postprocessing_dataset(
data=average_connectome,
)

gc_log.info(f"Saved to:\n{connectome_path}")


def _set_file_flag(output_path: Path) -> str:
"""Find out if new file needs to be created."""
Expand Down

0 comments on commit 14415ef

Please sign in to comment.