Peakfit fails without peakfind step even when peakfind doesn't locate any peaks #16

Closed
opened 2020-10-30 15:09:05 +01:00 by usov_i · 1 comment
usov_i commented 2020-10-30 15:09:05 +01:00 (Migrated from gitlab.psi.ch)

Created by: ivan-usov

Open any data file, press "Fit Current" or "Fit All". This fails with the following error:

  File "/das/home/usov_i/pyzebra/pyzebra/fit2.py", line 62, in fitccl
    if len(scan["peak_indexes"]) > 1:
KeyError: 'peak_indexes'

What should be happening is that the fitting procedure tries to fit data as if there were no peak detected.

*Created by: ivan-usov* Open any data file, press "Fit Current" or "Fit All". This fails with the following error: ``` File "/das/home/usov_i/pyzebra/pyzebra/fit2.py", line 62, in fitccl if len(scan["peak_indexes"]) > 1: KeyError: 'peak_indexes' ``` What should be happening is that the fitting procedure tries to fit data as if there were no peak detected.
usov_i commented 2020-10-30 15:48:48 +01:00 (Migrated from gitlab.psi.ch)

Created by: JakHolzer

I dont see why someone would do this, but we can add to the no peak
scenario directly, I'll do it in few minutes

pá 30. 10. 2020 v 15:09 odesílatel Ivan Usov notifications@github.com
napsal:

Open any data file, press "Fit Current" or "Fit All". This fails with the
following error:

File "/das/home/usov_i/pyzebra/pyzebra/fit2.py", line 62, in fitccl
if len(scan["peak_indexes"]) > 1:
KeyError: 'peak_indexes'

What should be happening is that the fitting procedure tries to fit data
as if there were no peak detected.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/paulscherrerinstitute/pyzebra/issues/16, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AM2BBRUI2XBRPG6A2QF2YUTSNLCJDANCNFSM4TFAQTLA
.

*Created by: JakHolzer* I dont see why someone would do this, but we can add to the no peak scenario directly, I'll do it in few minutes pá 30. 10. 2020 v 15:09 odesílatel Ivan Usov <notifications@github.com> napsal: > Open any data file, press "Fit Current" or "Fit All". This fails with the > following error: > > File "/das/home/usov_i/pyzebra/pyzebra/fit2.py", line 62, in fitccl > if len(scan["peak_indexes"]) > 1: > KeyError: 'peak_indexes' > > What should be happening is that the fitting procedure tries to fit data > as if there were no peak detected. > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/paulscherrerinstitute/pyzebra/issues/16>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AM2BBRUI2XBRPG6A2QF2YUTSNLCJDANCNFSM4TFAQTLA> > . >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: zebra/pyzebra#16
No description provided.