alpha_v = _numpy.array(f['unfold']['z'][...].flat, dtype=float)
alpha_f = _numpy.array(
f['unfold']['deflection'][...].flat, dtype=float)
+ v = float(f['config']['unfold']['velocity'][...])
if with_temperature:
temperature = float(f['environment']['temperature'][...])
else:
return {
'alpha_v': alpha_v,
'alpha_f': alpha_f,
+ 'velocity': v,
'temperature': temperature,
}
'contour_space_model', 'contour_space_parameters',
'contour_space_lines']
kwargs['output_parameters'] = [
- 'pull_alpha_d', 'pull_temperature']
+ 'pull_alpha_d', 'pull_velocity', 'pull_temperature']
kwargs['output_parameter_units'] = {
- 'pull_alpha_d': 'diode_bit/piezo_bit',
+ 'pull_alpha_d': 'diode_bit/piezo_bit', 'pull_velocity': 'm/s',
'pull_temperature': 'K',
}
super(Pull, self).__init__(name=name, *args, **kwargs)
@staticmethod
- def _crunch(alpha_v, alpha_f, temperature,
+ def _crunch(alpha_v, alpha_f, velocity, temperature,
alpha_z, alpha_d, vibration_variance, vibration_temperature,
drift_slope, alpha_f_offset, start_sawteeth, stop_sawteeth,
contour_space_model, contour_space_parameters,
return {
'pull_alpha_d': alpha_d,
'pull_temperature': temperature,
+ 'pull_velocity': velocity,
'z': z,
'f': f,
'z_piezo': z_piezo,