@@ -326,12 +326,9 @@ def get_config(self, dgroup=None):
326
326
if dgroup is None :
327
327
return self .get_defaultconfig ()
328
328
329
- defconf = self .get_defaultconfig ( )
330
- conf = getattr (dgroup .config , self .configname , defconf )
329
+ conf = deepcopy ( self .controller . config [ self . configname ] )
330
+ conf . update ( getattr (dgroup .config , self .configname , {}) )
331
331
332
- for k , v in defconf .items ():
333
- if k not in conf :
334
- conf [k ] = v
335
332
if conf .get ('edge_step' , None ) is None :
336
333
conf ['edge_step' ] = getattr (dgroup , 'edge_step' , 1 )
337
334
@@ -1063,7 +1060,8 @@ def onPlotSel(self, evt=None, process=None, **kws):
1063
1060
delay_draw = gid != last_id
1064
1061
groupname = self .controller .file_groups [str (gid )]
1065
1062
dgroup = self .controller .get_group (groupname )
1066
- # print(f"{gid=}, {groupname=}, {delay_draw=}")
1063
+ en_offset = self .get_plot_energy_offset (dgroup )
1064
+ # print(f"{gid=}, {groupname=}, {delay_draw=}, {en_offset=}")
1067
1065
cmds .append (f"""plot_mu({ groupname } , { show_norm = } , { show_flat = } , { show_deriv = } ,
1068
1066
{ title = } , { emin = } , { emax = } , { en_offset = } , { new = } , { delay_draw = } , label='{ gid } ')""" )
1069
1067
new = False
0 commit comments