Commit 646e9b7f authored by Anika Treffehn's avatar Anika Treffehn
Browse files

fixed pipeline

parent 1bf93021
Loading
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -60,9 +60,15 @@ class Postprocessing(Processing):
            if in_meta:
                in_meta_noerror = []
                for meta in in_meta:
                    if str(meta).endswith(".met"):
                        # MASA
                        num_suffix = 2
                    else:
                        # ISM
                        num_suffix = 3
                    path_parts = str(meta).split(".")
                    suffix = ".".join(path_parts[-3:])
                    name = ".".join(path_parts[:-3])
                    suffix = ".".join(path_parts[-num_suffix:])
                    name = ".".join(path_parts[:-num_suffix])
                    in_meta_noerror.append(Path(f"{name}.noerror.{suffix}"))
            else:
                in_meta_noerror = None