Fitunktionen schreiben, Syntax-Check #148
Closed
opened 2023-11-20 15:04:18 +00:00 by saeckech
·
1 comment
No Branch/Tag Specified
Labels
Clear labels
Kind/Breaking
Kind/Bug
Kind/Crash
Kind/Documentation
Kind/Enhancement
Kind/Feature
Reviewed/Won't Fix
Type/BDS
Type/DSC
Type/Fit
Type/General
Type/NMR
Breaking change that won't be backward compatible
Something is not working
This issue describes unexpected shutdowns or non-responsive behaviors
Improves documentation
Improve existing functionality
New feature
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Priority
Very low
The priority is very low
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid isssue
This issue won't be fixed
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Status
On Hold
This issue or pull request is on hold
Status
Stale
Issues without activity for more than 6 months
Issues connected to BDS
Issues connected to DSC
Issue is connected to fitting data
issue connected to general functionality
Issues connected to NMR
No labels
Kind/Enhancement
Milestone
No items
No Milestone
Assignees
aahmad (Arshid Ahmad)
anisar (Aqsa Nisar)
ckolb (Christian Kolb)
cwolter (Celine Wolter)
dominik (Dominik Demuth)
dwuerz (David Würz)
elisa (Elisa Steinruecken)
fwolter (Finn Wolter)
huczhang (Huanchen Zhang)
jepsinrajkp (Jepsinraj Kakkuzhiyulla Parambath)
kschroeder (Katharina Schroeder)
malbrecht (Maximilian Albrecht)
mandal (Suvendu Mandal)
markusro (Markus Rosenstihl)
mbergmann (Mark Bergmann)
mhaneke (Markus Haneke)
robin (Robin Horstmann)
saeckech (Christoph Säckel)
skloth (Sebastian Kloth)
skrueger (Sandra Krüger)
ypiliauskaya (Yauheniya Piliauskaya)
Clear assignees
No Assignees
dominik
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: IPKM/nmreval#148
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Wenn ich eine Fitfunktion über das Fenster Fit->create fit function erstelle und z.B. vergesse einen String zu beenden startet das Programm nicht mehr. Ich konnte dann nur noch unter .auswerten/usermodels den Fehler beheben. Kann man bei selbstgeschriebenen Funktionen einen Test drüber laufen lassen, sodass das Programm noch startet wenn man sich vertippt?
Danach kam ein weiterer Fehler den ich nicht verstanden habe. Ich habe die Funktion gelöscht, genauso nochmal erstellt und dann gings.
Error Log zum ersten Fehler:
SyntaxError: EOL while scanning string literal
20/11/2023 15:51:15 - INFO - root : Use C functions
20/11/2023 15:51:17 - ERROR - root : Uncaught exception:
Traceback (most recent call last):
File "/tmp/.mount_NMRevaGTdPW2/usr/bin/evaluate.py", line 24, in
mplQt = NMRMainWindow()
File "/tmp/.mount_NMRevaGTdPW2/usr/src/gui_qt/main/mainwindow.py", line 75, in init
self._init_gui()
File "/tmp/.mount_NMRevaGTdPW2/usr/src/gui_qt/main/mainwindow.py", line 95, in _init_gui
self.setupUi(self)
File "/tmp/.mount_NMRevaGTdPW2/usr/src/gui_qt/py/basewindow.py", line 47, in setupUi
self.fit_dialog = QFitDialog()
File "/tmp/.mount_NMRevaGTdPW2/usr/src/gui_qt/fit/fitwindow.py", line 36, in init
self.setupUi(self)
File "/tmp/.mount_NMRevaGTdPW2/usr/src/gui_qt/py/fitdialog.py", line 69, in setupUi
self.functionwidget = QFunctionWidget(self.scrollAreaWidgetContents_2)
File "/tmp/.mount_NMRevaGTdPW2/usr/src/gui_qt/fit/fitfunction.py", line 34, in init
self.read_and_load_functions()
File "/tmp/.mount_NMRevaGTdPW2/usr/src/gui_qt/fit/fitfunction.py", line 52, in read_and_load_functions
user_defined = find_models(config_paths() / 'usermodels.py')
File "/tmp/.mount_NMRevaGTdPW2/usr/src/nmreval/lib/importer.py", line 55, in find_models
modules = import(modules)
File "/tmp/.mount_NMRevaGTdPW2/usr/src/nmreval/lib/importer.py", line 33, in import
loader.exec_module(mod)
File "", line 786, in exec_module
File "", line 923, in get_code
File "", line 853, in source_to_code
File "", line 228, in _call_with_frames_removed
File "/autohome/saeckech/.auswerten/usermodels.py", line 307
equation = r'T = -16.7467*(\Delta\delta)^{2} - 52.5130*\Delta\delta + 419.1381
Error Log zum zweiten Fehler:
SyntaxError: EOL while scanning string literal
20/11/2023 15:52:26 - INFO - root : Use C functions
20/11/2023 15:52:28 - ERROR - root : Uncaught exception:
Traceback (most recent call last):
File "/tmp/.mount_NMRevagxvulu/usr/bin/evaluate.py", line 24, in
mplQt = NMRMainWindow()
File "/tmp/.mount_NMRevagxvulu/usr/src/gui_qt/main/mainwindow.py", line 75, in init
self._init_gui()
File "/tmp/.mount_NMRevagxvulu/usr/src/gui_qt/main/mainwindow.py", line 95, in _init_gui
self.setupUi(self)
File "/tmp/.mount_NMRevagxvulu/usr/src/gui_qt/py/basewindow.py", line 47, in setupUi
self.fit_dialog = QFitDialog()
File "/tmp/.mount_NMRevagxvulu/usr/src/gui_qt/fit/fitwindow.py", line 36, in init
self.setupUi(self)
File "/tmp/.mount_NMRevagxvulu/usr/src/gui_qt/py/fitdialog.py", line 69, in setupUi
self.functionwidget = QFunctionWidget(self.scrollAreaWidgetContents_2)
File "/tmp/.mount_NMRevagxvulu/usr/src/gui_qt/fit/fitfunction.py", line 34, in init
self.read_and_load_functions()
File "/tmp/.mount_NMRevagxvulu/usr/src/gui_qt/fit/fitfunction.py", line 52, in read_and_load_functions
user_defined = find_models(config_paths() / 'usermodels.py')
File "/tmp/.mount_NMRevagxvulu/usr/src/nmreval/lib/importer.py", line 55, in find_models
modules = import(modules)
File "/tmp/.mount_NMRevagxvulu/usr/src/nmreval/lib/importer.py", line 33, in import
loader.exec_module(mod)
File "", line 786, in exec_module
File "", line 923, in get_code
File "", line 853, in source_to_code
File "", line 228, in _call_with_frames_removed
File "/autohome/saeckech/.auswerten/usermodels.py", line 313
T = -16.7467*(\Delta\delta)*2 - 52.5130\Delta\delta + 419.1381
SyntaxError: unexpected character after line continuation character
Ich schau', was sich machen lässt, ist prinzipiell aber möglich.