diff --git a/glotaran/deprecation/modules/builtin_io_yml.py b/glotaran/deprecation/modules/builtin_io_yml.py index 0a3aa99dc..0bc5c59df 100644 --- a/glotaran/deprecation/modules/builtin_io_yml.py +++ b/glotaran/deprecation/modules/builtin_io_yml.py @@ -30,10 +30,10 @@ def model_spec_deprecations(spec: MutableMapping[Any, Any]) -> None: deprecate_dict_entry( dict_to_check=spec, - deprecated_usage="type: spectrum", + deprecated_usage="type: spectral-model", new_usage="default-megacomplex: spectral", to_be_removed_in_version="0.7.0", - replace_rules=({"type": "spectrum"}, {"default-megacomplex": "spectral"}), + replace_rules=({"type": "spectral-model"}, {"default-megacomplex": "spectral"}), stacklevel=load_model_stack_level, ) diff --git a/glotaran/deprecation/modules/test/test_builtin_io_yml.py b/glotaran/deprecation/modules/test/test_builtin_io_yml.py index 8cf03f510..873230366 100644 --- a/glotaran/deprecation/modules/test/test_builtin_io_yml.py +++ b/glotaran/deprecation/modules/test/test_builtin_io_yml.py @@ -19,7 +19,7 @@ "model_yml_str, expected_nr_of_warnings, expected_key, expected_value", ( ("type: kinetic-spectrum", 1, "default-megacomplex", "decay"), - ("type: spectrum", 1, "default-megacomplex", "spectral"), + ("type: spectral-model", 1, "default-megacomplex", "spectral"), ( dedent( """