From 31e702cd8c9de565432940a1627fe5456cdbb5d9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 13 Jun 2012 14:06:44 -0400 Subject: [PATCH] Allow groups to be used without filenames in temperature and vibration saves. --- calibcant/temperature_analyze.py | 2 +- calibcant/vibration_analyze.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', -- 2.26.2