Fix problems with the transition to the new nested-Config h5config package.
[calibcant.git] / calibcant / T_analyze.py
index d03bf4d505ce7585b2049e883ececa0ab64a3edf..f7a92e3662ed188a2fe91dbbfed364eca087ebbd 100644 (file)
@@ -115,9 +115,10 @@ def T_save(filename, group='/', raw_T=None, temperature_config=None,
             except KeyError:
                 pass
             cwg['raw'] = raw_T
             except KeyError:
                 pass
             cwg['raw'] = raw_T
-        if temperature_config:
+        if temperature_config is not None:
             config_cwg = _h5_create_group(cwg, 'config')
             config_cwg = _h5_create_group(cwg, 'config')
-            temperature_config.save(group=config_cwg)
+            storage = _HDF5_Storage()
+            storage.save(config=temperature_config, group=config_cwg)
         if processed_T is not None:
             try:
                 del cwg['processed']
         if processed_T is not None:
             try:
                 del cwg['processed']