Exemplo n.º 1
0
 def _getYValueFromTraceNum(self,ds,num):
     y_ds = _get_ds(ds, ds.attrs.get('y_ds_url'))
     if ds.attrs.get('ds_type') == ds_types['box']:
         y_data = np.array(y_ds)[:ds.attrs.get('fill')[1]]
     else:
         y_data = np.array(y_ds)[:ds.shape[1]]
     yunit = _get_unit(y_ds)
     yval = y_data[num]
     return str(yval)+" "+str(yunit)
Exemplo n.º 2
0
 def _getXValueFromTraceNum(self, ds, num):
     x_ds = _get_ds(ds, ds.attrs.get('x_ds_url'))
     if ds.attrs.get('ds_type') == ds_types['box']:
         x_data = np.array(x_ds)[:ds.attrs.get('fill')[0]]
     else:
         x_data = np.array(x_ds)[:ds.shape[0]]
     xunit = _get_unit(x_ds)
     xval = x_data[num]
     return str(xval) + " " + str(xunit)
Exemplo n.º 3
0
 def _getZValueFromTraceNum(self,ds,num):
     z_ds = _get_ds(ds, ds.attrs.get('z_ds_url'))
     z_data = np.array(z_ds)[:ds.shape[2]]
     zunit = _get_unit(z_ds)
     zval = z_data[num]
     return str(zval)+" "+str(zunit)