@@ -562,8 +562,29 @@ def routine_data_sender(self):
562562 # list.copy() is realy important because of the
563563 # eventual further modification of the list.
564564 # Send raw spectras.
565+
566+ interpolated_scopes = dict ([])
567+ for key in scopes :
568+ interpolated_scopes [key ] = \
569+ scopes [key ].getInterpolated (
570+ startingLamb = float (self .config_dict [
571+ self .ROUT_START_LAM
572+ ].get ()),
573+ endingLamb = float (self .config_dict [
574+ self .ROUT_END_LAM
575+ ].get ()),
576+ nrPoints = int (self .config_dict [
577+ self .ROUT_NR_POINTS
578+ ].get ()),
579+ smoothing = True ,
580+ windowSize = int (self .config_dict [
581+ self .ROUT_INTERP_INT
582+ ].get ()),
583+ polDegree = 5
584+ )
585+
565586 self .liveDisplay .putSpectrasAndUpdate (
566- self .LIVE_SCOPE , scopes .copy ()
587+ self .LIVE_SCOPE , interpolated_scopes .copy ()
567588 )
568589
569590 if self .referenceChannel .get () != "" :
@@ -784,20 +805,20 @@ def createWidgetsSimple(self, master):
784805 tk .Label (sub_fen ,
785806 text = self .DISPLAY_TEXTS [key ]).grid (row = i , column = 0 ,
786807 sticky = tk .W )
787- self .config_dict [key ] = tk .StringVar ()
808+ self .config_dict [key ] = tk .StringVar (value = "0" )
788809 tk .Entry (sub_fen ,
789810 textvariable = self .config_dict [key ]).\
790811 grid (row = i , column = 1 )
791812 sub_fen .grid (row = 3 , rowspan = len (self .DISPLAY_KEYS ), columnspan = 2 )
792813
793814 for key in self .PARAMETERS_KEYS :
794- self .config_dict [key ] = tk .StringVar ()
815+ self .config_dict [key ] = tk .StringVar (value = "0" )
795816
796817 tk .Label (button_fen ,
797818 text = "Reference channel" ).\
798819 grid (row = 90 , column = 0 , rowspan = self .avh ._nr_spec_connected )
799820
800- self .referenceChannel = tk .StringVar ()
821+ self .referenceChannel = tk .StringVar (value = "0" )
801822 for i , avsHandle in enumerate (self .avh .devList ):
802823 tk .Radiobutton (button_fen ,
803824 text = self .avh .devList [avsHandle ][0 ],
0 commit comments