Commit 085222de authored by Ivan Vanat's avatar Ivan Vanat
Browse files

no longer sorting nester output; yaml safe load

parent ed8cd094
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ else:
    config_path = "/etc/nested/config.yml"
    
with open(config_path) as stream:
    config = yaml.load(stream)
    config = yaml.safe_load(stream)


def args_dict_to_list(args: Dict[str, str]) -> List[str]:
+4 −1
Original line number Diff line number Diff line
@@ -20,7 +20,10 @@ class Executor:
            print(f"{self.sequenceId}: Running module {module.name}")
            new_elements = module.tool.run(self.sequence.seq)
            self._crop_sequence(new_elements)

            if module.name != "nested-nester":
                new_elements.sort(key=lambda e: e.location[0], reverse=True)
                
            elements += new_elements

        self._recalculate_coordinates(elements)