[BUG] Nested Functions, Fit and Preview Failed inconsistently #279

Closed
opened 2024-07-04 11:31:33 +00:00 by saeckech · 0 comments
Member

Current behavior

Const + (Const*Func) failed.

Const + (Func*Const) worked for a single fit, then the fit failed with the error message below, after the dataset and the value of the offset (first Const) was changed.
The checkbox-preview does not work and gives the second error message below.

Version

2024-07-04

Expected behavior

No response

Steps to reproduce

No response

Log messages

Fit fail:
2024-07-04 13:26:07,142 - ERROR - Fit preparation failed with error: ('Setting parameter failed',)

Checkbox preview fail:
2024-07-04 13:29:37,856 - ERROR - Uncaught exception:
Traceback (most recent call last):
  File "/tmp/.mount_NMRevahzUaHi/usr/src/gui_qt/main/mainwindow.py", line 957, in show_fit_preview
    self.fit_dialog.make_previews(x, funcs)
  File "/tmp/.mount_NMRevahzUaHi/usr/src/gui_qt/fit/fitwindow.py", line 455, in make_previews
    y = f.func(x, *p_value, **kwargs)
  File "/tmp/.mount_NMRevahzUaHi/usr/src/nmreval/fit/_meta.py", line 187, in func
    pr, kw_right = self._right_arguments(*args, **kwargs)
  File "/tmp/.mount_NMRevahzUaHi/usr/src/nmreval/fit/_meta.py", line 175, in _right_arguments
    kw_right[k_int] = kwargs[k_ext]
KeyError: 'xaxis_3'

Anything else?

No response

### Current behavior Const + (Const*Func) failed. Const + (Func*Const) worked for a single fit, then the fit failed with the error message below, after the dataset and the value of the offset (first Const) was changed. The checkbox-preview does not work and gives the second error message below. ### Version 2024-07-04 ### Expected behavior _No response_ ### Steps to reproduce _No response_ ### Log messages ```shell Fit fail: 2024-07-04 13:26:07,142 - ERROR - Fit preparation failed with error: ('Setting parameter failed',) Checkbox preview fail: 2024-07-04 13:29:37,856 - ERROR - Uncaught exception: Traceback (most recent call last): File "/tmp/.mount_NMRevahzUaHi/usr/src/gui_qt/main/mainwindow.py", line 957, in show_fit_preview self.fit_dialog.make_previews(x, funcs) File "/tmp/.mount_NMRevahzUaHi/usr/src/gui_qt/fit/fitwindow.py", line 455, in make_previews y = f.func(x, *p_value, **kwargs) File "/tmp/.mount_NMRevahzUaHi/usr/src/nmreval/fit/_meta.py", line 187, in func pr, kw_right = self._right_arguments(*args, **kwargs) File "/tmp/.mount_NMRevahzUaHi/usr/src/nmreval/fit/_meta.py", line 175, in _right_arguments kw_right[k_int] = kwargs[k_ext] KeyError: 'xaxis_3' ``` ### Anything else? _No response_
saeckech added the
Kind/Bug
label 2024-07-04 11:31:33 +00:00
dominik self-assigned this 2024-07-05 17:31:19 +00:00
dominik added the
Type/Fit
label 2024-07-05 17:31:25 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IPKM/nmreval#279
No description provided.