return 0 # over- or critically-damped
return _numpy.sqrt(A**2 - B**2/2)
-def save(filename, group='/', raw=None, config=None,
+def save(filename=None, group='/', raw=None, config=None,
deflection_channel_config=None, processed=None):
specs = [
_SaveSpec(item=config, relpath='config/vibration',
freq_axes.autoscale(tight=True)
xmin,xmax = freq_axes.get_xbound()
ymin,ymax = freq_axes.get_ybound()
-
+
# highlight the region we're fitting
- freq_axes.axvspan(
- config['minimum-fit-frequency'],
- config['maximum-fit-frequency'],
- facecolor='g', alpha=0.1, zorder=-2)
+ if config:
+ freq_axes.axvspan(
+ config['minimum-fit-frequency'],
+ config['maximum-fit-frequency'],
+ facecolor='g', alpha=0.1, zorder=-2)
if A is not None:
fitdata = breit_wigner(freq_axis, A, B, C, D)