Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ yaml_export = tool_object.export_string()
tool_object.export()

# print to file
with open("echotool.cwl", "w") as f:
tool_object.export(f)
tool_object.export("echotool.cwl")
```

## References
Expand Down
3 changes: 3 additions & 0 deletions cwlgen/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def __init__(self, req_class):
def get_class(self):
return self._req_class

def __hash__(self):
return hash(self.get_class())

@classmethod
def parse_dict(cls, d):

Expand Down
2 changes: 2 additions & 0 deletions examples/readme_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@

# print to console
tool_object.export()

tool_object.export("echotool.cwl")