Skip to content
Snippets Groups Projects
Commit b85e1cb5 authored by Pierre Tysebaert-Plagne's avatar Pierre Tysebaert-Plagne
Browse files

Fixed key_stranslation (from set to dict)

parent 8f075541
No related branches found
No related tags found
1 merge request!96Resolve "Add configuration file in the outpout directory"
......@@ -564,7 +564,7 @@ class FscConfig:
def dump_configuration(self, dump_path, input_dir, log, chain_version, product_counter):
# Get the fields as a dictionary
conf_keys = ["dem", "tcd", "water_mask", "config_file"]
key_translation = {"tcd", "tcd_file"}
key_translation = {"tcd": "tcd_file"}
full_data = vars(self)
data = {key: full_data[key_translation.get(key, key)] for key in conf_keys}
data["output_dir"] = dump_path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment