@@ -117,7 +117,11 @@ def _rf_signal(reader, index, pulse):
117117 crsd = reader .crsd_meta
118118 params = crsd .Channel .Parameters [index ]
119119 sampling_rate = params .Fs
120- pulse_data = reader [pulse , :, index ].flatten ()
120+ data_params = {x .Identifier : x for x in crsd .Data .Channels }[params .Identifier ]
121+ pulse_data = reader .read (slice (numpy .maximum (pulse , 0 ),
122+ numpy .minimum (pulse + 1 , data_params .NumVectors )),
123+ slice (None ),
124+ index = index , squeeze = True )
121125 fic_rate = float (reader .read_pvp_variable ('FICRate' , index , pulse )[0 ])
122126 dfic0 = float (reader .read_pvp_variable ('DFIC0' , index , pulse )[0 ])
123127
@@ -241,7 +245,7 @@ def base_reader(self, value):
241245 type (value )))
242246 self ._base_reader = value
243247 # noinspection PyProtectedMember
244- self ._chippers = value ._get_chippers_as_tuple ()
248+ self ._chippers = value .get_data_segment_as_tuple ()
245249 self .index = 0
246250
247251 @property
@@ -443,10 +447,10 @@ def __init__(self, parent):
443447 'ToggleOn.TButton' , font = ('Arial' , 24 ), foreground = "black" ,
444448 background = "PaleTurquoise1" , width = 3 , sticky = 'CENTER' )
445449
446- self .button_rev = Button (self .parent , text = "\u25C0 " , takefocus = 0 , style = 'ToggleOff.TButton' )
450+ self .button_rev = Button (self .parent , text = "< " , takefocus = 0 , style = 'ToggleOff.TButton' )
447451 self .button_prev = Button (self .parent , text = "-1" , takefocus = 0 , style = 'ToggleOff.TButton' )
448452 self .button_next = Button (self .parent , text = "+1" , takefocus = 0 , style = 'ToggleOff.TButton' )
449- self .button_fwd = Button (self .parent , text = "\u25B6 " , takefocus = 0 , style = 'ToggleOff.TButton' )
453+ self .button_fwd = Button (self .parent , text = "> " , takefocus = 0 , style = 'ToggleOff.TButton' )
450454
451455
452456class PulseExplorer (Frame , WidgetWithMetadata ):
0 commit comments