From: W. Trevor King Date: Wed, 13 Jun 2012 18:06:44 +0000 (-0400) Subject: Allow groups to be used without filenames in temperature and vibration saves. X-Git-Tag: 0.8~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31e702cd8c9de565432940a1627fe5456cdbb5d9;p=calibcant.git Allow groups to be used without filenames in temperature and vibration saves. --- diff --git a/calibcant/temperature_analyze.py b/calibcant/temperature_analyze.py index 7e48adc..24496ee 100644 --- a/calibcant/temperature_analyze.py +++ b/calibcant/temperature_analyze.py @@ -117,7 +117,7 @@ def analyze(config, temperature, units='Kelvin'): raise NotImplementedError() -def save(filename, group='/', config=None, raw=None, processed=None): +def save(filename=None, group='/', config=None, raw=None, processed=None): specs = [ _SaveSpec(item=config, relpath='config/temperature', config=_TemperatureConfig), diff --git a/calibcant/vibration_analyze.py b/calibcant/vibration_analyze.py index a1125b6..9d2fa29 100644 --- a/calibcant/vibration_analyze.py +++ b/calibcant/vibration_analyze.py @@ -459,7 +459,7 @@ def breit_wigner_resonant_frequency(A, B): 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',