Skip to content

Commit

Permalink
Update lindi/LindiH5pyFile/LindiH5pyFile.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Ly <[email protected]>
  • Loading branch information
magland and rly authored Sep 25, 2024
1 parent 0533a66 commit b5b281f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lindi/LindiH5pyFile/LindiH5pyFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def write_lindi_file(self, filename: str, *, generation_metadata: Union[dict, No
'generationMetadata' key in the reference file system.
"""
if not filename.endswith(".lindi.json") and not filename.endswith(".lindi.tar") and not filename.endswith(".lindi.d"):
raise ValueError("Filename must end with '.lindi.json' or '.lindi.tar'")
raise ValueError("Filename must end with '.lindi.json', '.lindi.tar', or '.lindi.d'.")
rfs = self.to_reference_file_system()
if self._source_tar_file:
source_is_remote = self._source_url_or_path is not None and (self._source_url_or_path.startswith("http://") or self._source_url_or_path.startswith("https://"))
Expand Down

0 comments on commit b5b281f

Please sign in to comment.