Skip to content

Commit

Permalink
Merge pull request #331 from ax3l/fix-improve-bp-hints
Browse files Browse the repository at this point in the history
h5py: improve hints for `.bp` & other files
  • Loading branch information
RemiLehe authored Feb 24, 2022
2 parents fb4e9f6 + 54f772c commit e9adcb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openpmd_viewer/openpmd_timeseries/data_reader/data_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def list_iterations(self, path_to_dir):
raise RuntimeError(
"Found no valid files in directory {0}.\n"
"Please check that this is the path to the openPMD files."
"(valid files must have the extension '.h5')"
"Valid files must have the extension '.h5' if you "
"use the `h5py` backend. For ADIOS '.bp' and other files, "
"please install the `openpmd-api` package."
.format(path_to_dir))
elif self.backend == 'openpmd-api':
# guess file ending from first file in directory
Expand Down

0 comments on commit e9adcb9

Please sign in to comment.