/bump/config/bump
<HDF5 dataset "far-steps": shape (), type "<i4">
200
+ <HDF5 dataset "initial-position": shape (), type "<f8">
+ -5e-08
<HDF5 dataset "model": shape (), type "|S9">
quadratic
<HDF5 dataset "push-depth": shape (), type "<f8">
i_high = i
x_contact = float(x[i_low])
x_high = float(x[i_high])
+ if x_high == x_contact:
+ x.tofile('x-bad.dat', sep='\n')
+ y.tofile('y-bad.dat', sep='\n')
slope = (y_high - y_contact) / (x_high - x_contact)
return (x_contact, y_contact, slope)
_LOG.debug('solution converged')
else:
_LOG.debug('solution did not converge')
- if plot or _package_config['matplotlib'] or True:
+ if plot or _package_config['matplotlib']:
yguess = model(z, param_guess, high_voltage_rail=high_voltage_rail)
yfit = model(z, p, high_voltage_rail=high_voltage_rail)
bump_plot({'z': z, 'deflection': deflection}, yguess=yguess, yfit=yfit)
filename=filename, group=group+key))
configs.append(config)
try:
- processed_bump = f[group+'processed'][...]
+ processed_bump = float(f[group+'processed'][...])
except KeyError:
pass
ret = [raw_bump]