Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/ephemeris/generate_tool_list_from_ga_workflow_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,14 @@ def extract_tool_shed_repositories_from_workflow_dict(workflow_dictionary):


def print_yaml_tool_list(tool_dictionary, output_file):
class Indenter(yaml.Dumper):

def increase_indent(self, flow=False, indentless=False):
return super(Indenter, self).increase_indent(flow, False)

with open(output_file, 'w') as F:
F.write("\n".join([INSTALL_TOOL_DEPENDENCIES, INSTALL_REPOSITORY_DEPENDENCIES, INSTALL_RESOLVER_DEPENDENCIES, "", ""]))
F.write(yaml.safe_dump(tool_dictionary, default_flow_style=False))
F.write(yaml.dump(tool_dictionary, Dumper=Indenter, default_flow_style=False))
return


Expand Down