Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Change-Id: I5d7bc71584f0497a2979e73b1c5f6a9d9020a74d
  • Loading branch information
adrien-berchet committed Oct 27, 2020
1 parent 75c7aa6 commit 31dddcb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion synthesis_workflow/tasks/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,17 @@ def run(self):
morphs_df = pd.read_csv(self.input()["morphs"].path)
if self.in_atlas:
synth_morphs_df = pd.read_csv(self.input()["mvd3"].path)
comp_key = self.comp_key
else:
synth_morphs_df = pd.read_csv(self.input()["vacuum"]["out_morphs_df"].path)
comp_key = self.requires()["vacuum"].vacuum_synth_morphology_path

plot_morphometrics(
morphs_df,
synth_morphs_df,
self.output().path,
base_key=self.base_key,
comp_key=self.comp_key,
comp_key=comp_key,
base_label=self.base_label,
comp_label=self.comp_label,
normalize=self.normalize,
Expand Down
2 changes: 1 addition & 1 deletion synthesis_workflow/tasks/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def requires(self):
if self.with_morphometrics:
tasks.append(PlotMorphometrics(in_atlas=True))
if self.with_density_profiles:
tasks.append(PlotDensityProfiles())
tasks.append(PlotDensityProfiles(in_atlas=True))
if self.with_path_distance_fits:
tasks.append(PlotPathDistanceFits())
if self.with_scale_statistics:
Expand Down
2 changes: 1 addition & 1 deletion synthesis_workflow/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def plot_density_profiles(
WIP function, waiting on complete atlas to update.
"""
if region == "in_vacuum":
if not region or region == "in_vacuum":
voxeldata = None
else:
voxeldata = relative_depth_volume(
Expand Down

0 comments on commit 31dddcb

Please sign in to comment.