Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve error message when file path not found #242

Merged
merged 1 commit into from Apr 13, 2021

Conversation

erwanp
Copy link
Member

@erwanp erwanp commented Apr 13, 2021

No description provided.

@erwanp erwanp added the bug Something isn't working label Apr 13, 2021
@erwanp erwanp added this to the 0.9.30 milestone Apr 13, 2021
@erwanp
Copy link
Member Author

erwanp commented Apr 13, 2021

@anandxkumar this may help with your error here.

Traceback (most recent call last):
  File "<ipython-input-4-48800e62a34c>", line 3, in <module>
    parfuncfmt='hapi',)
  File "/home/pipebomb/Desktop/radis/radis/lbl/loader.py", line 1201, in load_databank
    include_neighbouring_lines=include_neighbouring_lines,
  File "/home/pipebomb/Desktop/radis/radis/lbl/loader.py", line 1848, in _load_databank
    raise EmptyDatabaseError(msg)
EmptyDatabaseError: Reference databank has 0 lines in range 1997.50-2402.50cm-1 (5006.26-4162.33nm) Check your range !

Also happened when file paths were not found (therefore database was empty). Now you will get a DatabaseNotFound(FileNotFound) error.

@erwanp erwanp merged commit 4b381d3 into radis:develop Apr 13, 2021
@anandxkumar
Copy link
Collaborator

Hi @erwanp, it was indeed that error, the format of the file was different that's why it wasn't loading and was throwing that error, I just modified and it all loaded fine 👍 . Thanks for updating the error :)

@erwanp erwanp mentioned this pull request May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants