Permalink
Browse files

fix a couple of bugs

  • Loading branch information...
1 parent 14ae09a commit 31a93fc518196d3893f6af6bb6ddf3e911d0862a @ddale ddale committed May 11, 2011
Showing with 7 additions and 3 deletions.
  1. +6 −2 praxes/fluorescence/elementsview.py
  2. +1 −1 praxes/io/phynx/migration/spec.py
View
8 praxes/fluorescence/elementsview.py
@@ -187,8 +187,12 @@ def updateFigure(self, elementData=None):
with self.scan_data:
- self._elementPlot.set_xdata(self._x_data[:self.entry.acquired])
- self._elementPlot.set_ydata(elementData[:self.entry.acquired])
+ self._elementPlot.set_xdata(
+ self._x_data[:self.scan_data.entry.acquired]
+ )
+ self._elementPlot.set_ydata(
+ elementData[:self.scan_data.entry.acquired]
+ )
self.axes.relim()
self.axes.autoscale_view()
View
2 praxes/io/phynx/migration/spec.py
@@ -248,7 +248,7 @@ def convert_scan(scan, h5file, spec_filename, report=False):
# We need to update time metadata if it was a tseries:
if scan_info['scan_type'] == 'tseries':
scan_info['scan_shape'] = np.array([len(scan.values()[0])])
- t = scan['time'][:]
+ t = scan['Time'][:]
scan_info['axis_info']['time']['range'] = str((t.min(), t.max()))
# We need to update time metadata if it was a chess_escan:
if scan_info['scan_type'] == 'chess_escan':

0 comments on commit 31a93fc

Please sign in to comment.