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

Choosing too small Wavenumber Step crashes the program #50

Open
i-ilak opened this issue Dec 21, 2021 · 0 comments
Open

Choosing too small Wavenumber Step crashes the program #50

i-ilak opened this issue Dec 21, 2021 · 0 comments

Comments

@i-ilak
Copy link

i-ilak commented Dec 21, 2021

Hi everyone,

after fetching some date in the line-by-line tab, I tried to plot in the Graphing tab. If you set the Graph Type to Transmitance Spectrum and then tick the Wavenumber Step (cm^{-1}), the program crashes with the error

[Err]  Wavenumber Step must be less than Instrumental Resolution
Traceback (most recent call last):
  File "/media/sf_vm_share/hapiest/src/widgets/graphing/graphing_widget.py", line 178, in graph
    self.graph_ts(standard_params)
  File "/media/sf_vm_share/hapiest/src/widgets/graphing/graphing_widget.py", line 287, in graph_ts
    self.data_name_error.setText(
AttributeError: 'NoneType' object has no attribute 'setText'
Aborted (core dumped)

While the first line, i.e. [Err] Wavenumber Step must be less than Instrumental Resolution, indicates that this error occured due to bad user input, crashing the program seems like bad handling of the exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant