Commit 82940d6a authored by payno's avatar payno

[io] move some print to log

parent a017ce30
......@@ -93,14 +93,14 @@ class Writer_pymca_cas(object):
def dump_pymca_xas(self, xas_obj):
if not self._output_file:
print('no output file defined, please give path to the output file')
_logger.warning('no output file defined, please give path to the output file')
self._output_file = input()
_logger.info('dumping xas obj... to', self._output_file)
if isinstance(xas_obj, dict):
_xas_obj = PyMcaXAS().load_frm_dict(xas_obj)
else:
_xas_obj = xas_obj
print('dump xas obj to', self._output_file)
_logger.info('dump xas obj to', self._output_file)
_xas_obj.dump(self._output_file)
__call__ = dump_pymca_xas
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment