Skip to content

Commit

Permalink
MALT0: create missing folders
Browse files Browse the repository at this point in the history
  • Loading branch information
leavauchier committed Nov 29, 2023
1 parent fd57042 commit 493cf2e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions coclico/malt0/malt0.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ class MALT0(Metric):

def create_metric_intrinsic_one_job(self, name: str, input: Path, output: Path, is_ref: bool):
job_name = f"{self.metric_name}_intrinsic_{name}_{input.stem}"

occupancy_map_arg = f"--output-occupancy-file /output/occupancy/{input.stem}.tif" if is_ref else ""
occupancy_map_arg = ""
mnx_out = output / "mnx"
mnx_out.mkdir(exist_ok=True, parents=True)
if is_ref:
occ_out = output / "occupancy"
occ_out.mkdir(exist_ok=True, parents=True)
occupancy_map_arg = f"--output-occupancy-file /output/occupancy/{input.stem}.tif"

command = f"""
docker run -t --rm --userns=host --shm-size=2gb
Expand Down

0 comments on commit 493cf2e

Please sign in to comment.