Closed dafyddstephenson closed 1 month ago
TIL backticks in commit messages make words disappear...
"make Optional with ValueError if None and is" = "Make InputDataset.file_hash
Optional with ValueError if None and InputDataset.source.location_type
is 'url'
"
@TomNicholas Hoping to put this in so I can update the changelog in #55 (branched off this one). Any comments?
Closes #51 . Branched off #43 - do not merge until after merging #43.
This PR makes
InputDataset.file_hash
an optional attribute but throws an error inInputDataset.__init__()
ifsource.location_type
is "url" andfile_hash
is None. It also updatesCase.from_blueprint
to usedict.get
rather than attempting to directly access potentially nonexistent keys for optional attributes (such asfile_hash
).This behaviour improves consistency following #30 .