Skip to content

Commit a795dc4

Browse files
committed
fix: create jaccard if only needed
1 parent 31a58a2 commit a795dc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lta/helpers/pipeline.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ def __post_init__(self) -> None:
119119
group: df.loc[self.binary[group].index, :] for group, df in data.groupby(axis="columns", level=self.mode)
120120
}
121121
Path(self.output, "enfc").mkdir(exist_ok=True, parents=True)
122-
Path(self.output, "jaccard").mkdir(exist_ok=True, parents=True)
122+
if self.save_align_files:
123+
Path(self.output, "jaccard").mkdir(exist_ok=True, parents=True)
123124

124125
conditions = [df.columns.get_level_values(self.level).unique() for df in self.filtered.values()]
125126
self.conditions = [val for mode in conditions for val in mode if val != self.control]

0 commit comments

Comments
 (0)