Closed Sheshuk closed 6 months ago
When running models' loaders with the wrong path, we get all kinds of exceptions, but not the FileNotFoundError. For example:
FileNotFoundError
from snewpy.models import loaders loaders.Tamborra_2014('/path/to/models/s15')
raises InconsistentTableError
InconsistentTableError
and
loaders.Fornax_2021('/path/to/models/s15')
raises IndexError: list index out of range (because it failed to parse the filename, splitting it to tokens).
IndexError: list index out of range
We should make sure that the models raise FileNotFoundError when the path is wrong.
When running models' loaders with the wrong path, we get all kinds of exceptions, but not the
FileNotFoundError
. For example:raises
InconsistentTableError
and
raises
IndexError: list index out of range
(because it failed to parse the filename, splitting it to tokens).Suggestion
We should make sure that the models raise
FileNotFoundError
when the path is wrong.