@@ -299,6 +299,7 @@ def info_update(self, fdist=None):
299
299
fdist = self .current_curve
300
300
self .tab_info .update_info (fdist )
301
301
302
+ @QtCore .pyqtSlot ()
302
303
def on_cb_rating_scheme (self ):
303
304
"""Switch rating scheme or import a new one"""
304
305
scheme_id = self .cb_rating_scheme .currentIndex ()
@@ -318,6 +319,7 @@ def on_cb_rating_scheme(self):
318
319
else :
319
320
self .on_params_init ()
320
321
322
+ @QtCore .pyqtSlot ()
321
323
def on_curve_list (self ):
322
324
"""Called when a new curve is selected"""
323
325
fdist = self .current_curve
@@ -341,6 +343,7 @@ def on_curve_list(self):
341
343
# Autosave
342
344
self .autosave (fdist )
343
345
346
+ @QtCore .pyqtSlot (QtCore .QModelIndex )
344
347
def on_curve_list_item_changed (self , item ):
345
348
"""An item in the curve list was changed
346
349
@@ -355,6 +358,7 @@ def on_curve_list_item_changed(self, item):
355
358
self .tab_qmap .mpl_qmap_update ()
356
359
self .autosave (fdist )
357
360
361
+ @QtCore .pyqtSlot ()
358
362
def on_export_edelta (self ):
359
363
"""Saves all edelta curves"""
360
364
fname , _e = QtWidgets .QFileDialog .getSaveFileName (
@@ -402,6 +406,7 @@ def on_export_edelta(self):
402
406
with io .open (fname , "ab" ) as fd :
403
407
np .savetxt (fd , np .array (res ))
404
408
409
+ @QtCore .pyqtSlot ()
405
410
def on_export_fit_results (self ):
406
411
"""Save metadata and fit results"""
407
412
fdist_list = [fdist for fdist in self .selected_curves ]
@@ -444,6 +449,7 @@ def on_fit_all(self):
444
449
msg ,
445
450
)
446
451
452
+ @QtCore .pyqtSlot ()
447
453
def on_model (self ):
448
454
"""Called when the fitting model is changed"""
449
455
# The difference to "on_params_init" is that we
@@ -457,10 +463,12 @@ def on_model(self):
457
463
self .curve_list_update ()
458
464
self .tab_qmap .mpl_qmap_update ()
459
465
466
+ @QtCore .pyqtSlot ()
460
467
def on_mpl_curve_update (self ):
461
468
fdist = self .current_curve
462
469
self .widget_fdist .mpl_curve_update (fdist )
463
470
471
+ @QtCore .pyqtSlot ()
464
472
def on_params_init (self ):
465
473
"""Called when the initial parameters are changed"""
466
474
fdist = self .current_curve
@@ -472,6 +480,7 @@ def on_params_init(self):
472
480
self .curve_list_update (item = idx )
473
481
self .tab_qmap .mpl_qmap_update ()
474
482
483
+ @QtCore .pyqtSlot ()
475
484
def on_rating_threshold (self ):
476
485
"""(De)select curves according to threshold rating"""
477
486
thresh = self .sp_rating_thresh .value ()
@@ -491,6 +500,7 @@ def on_rating_threshold(self):
491
500
for fdist in self .data_set :
492
501
self .autosave (fdist )
493
502
503
+ @QtCore .pyqtSlot (int )
494
504
def on_tab_changed (self , index ):
495
505
"""Called when the tab on the right hand is changed"""
496
506
if hasattr (self , "user_tab_selected" ):
@@ -513,6 +523,7 @@ def on_tab_changed(self, index):
513
523
514
524
self .user_tab_selected = curtab
515
525
526
+ @QtCore .pyqtSlot ()
516
527
def on_user_rate (self ):
517
528
"""Start the curve rater"""
518
529
cont = QtWidgets .QFileDialog .getSaveFileName (
0 commit comments