vib_axes.plot(vibrations, 'b.-')
vib_axes.set_ylabel('thermal deflection variance (V^2)')
- figure.show()
+ if hasattr(figure, 'show'):
+ figure.show()
def calib_load_all(filename, group='/'):
changed_bump = changed_temperature = changed_vibration = False
for i in range(calibration_config['num-bumps']):
bump_group = '%sbump/%d/' % (group, i)
- (raw_bump,bump_config,z_channel_config,z_axis_config,
+ (raw_bump,bump_config,z_axis_config,
deflection_channel_config,processed_bump) = _bump_load(
filename=filename, group=bump_group)
sensitivity = _bump_analyze(
data=raw_bump, bump_config=bump_config,
- z_channel_config=z_channel_config,
z_axis_config=z_axis_config,
deflection_channel_config=deflection_channel_config)
bumps[i] = sensitivity
for i,bump in enumerate(bump_details):
sensitivity = _bump_analyze(
data=bump['raw_bump'], bump_config=bump['bump_config'],
- z_channel_config=bump['z_channel_config'],
z_axis_config=bump['z_axis_config'],
deflection_channel_config=bump['deflection_channel_config'],
plot=True)