Allow groups to be used without filenames in temperature and vibration saves.
authorW. Trevor King <wking@tremily.us>
Wed, 13 Jun 2012 18:06:44 +0000 (14:06 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 13 Jun 2012 18:06:44 +0000 (14:06 -0400)
calibcant/temperature_analyze.py
calibcant/vibration_analyze.py

index 7e48adcd3e21095de976c467f27ab3bed3397d71..24496eea9299a26e30b8edec10a89902177c73f2 100644 (file)
@@ -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),
index a1125b6a5c15746a5efab3771b862850a2337e49..9d2fa29b0d402ea8e4b03856eb9f1fb8f9c0b6f0 100644 (file)
@@ -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',