Remove redundant prints
This commit is contained in:
@@ -193,13 +193,13 @@ def generate_basic_config(
|
||||
from sp2xr.helpers import export_xr_ini_to_yaml_with_source
|
||||
|
||||
export_xr_ini_to_yaml_with_source(ini_file, str(instrument_path))
|
||||
print(f"Instrument settings config saved to: {instrument_path}")
|
||||
# print(f"Instrument settings config saved to: {instrument_path}")
|
||||
except ImportError:
|
||||
# Fallback to original function if new one doesn't exist yet
|
||||
from sp2xr.helpers import export_xr_ini_to_yaml
|
||||
|
||||
export_xr_ini_to_yaml(ini_file, str(instrument_path))
|
||||
print(f"Instrument settings config saved to: {instrument_path}")
|
||||
# print(f"Instrument settings config saved to: {instrument_path}")
|
||||
except Exception as e:
|
||||
print(f"Warning: Could not convert INI to YAML: {e}")
|
||||
# Still reference the original INI file as fallback
|
||||
@@ -299,13 +299,13 @@ def generate_mapping_config(
|
||||
from sp2xr.helpers import export_xr_ini_to_yaml_with_source
|
||||
|
||||
export_xr_ini_to_yaml_with_source(ini_file, str(instrument_path))
|
||||
print(f"Instrument settings config saved to: {instrument_path}")
|
||||
# print(f"Instrument settings config saved to: {instrument_path}")
|
||||
except ImportError:
|
||||
# Fallback to original function if new one doesn't exist yet
|
||||
from sp2xr.helpers import export_xr_ini_to_yaml
|
||||
|
||||
export_xr_ini_to_yaml(ini_file, str(instrument_path))
|
||||
print(f"Instrument settings config saved to: {instrument_path}")
|
||||
# print(f"Instrument settings config saved to: {instrument_path}")
|
||||
except Exception as e:
|
||||
print(f"Warning: Could not convert INI to YAML: {e}")
|
||||
# Still reference the original INI file as fallback
|
||||
|
||||
Reference in New Issue
Block a user