FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 916ad156 authored by L. Bower's avatar L. Bower
Browse files

fixing met resample configs

parent fd6bfb9f
No related branches found
No related tags found
No related merge requests found
......@@ -313,7 +313,6 @@ class ProcessorBase:
configjson['StartString'] = start_date
# from configtemplate create configFileName to describe the specific job
component: str = component
config_file_name = f"{os.path.basename(configtemplate).replace('.json', '')}_{component}"
configjson['ConfigFilePath'] = config_file_name
......
......@@ -141,7 +141,8 @@ def parse_json_file_with_tokens(file_path: str, tokens: dict = None) -> dict:
if "${" in parsed_file_string:
logger.warning(f"\n\nUNRESOLVED TOKENS IN THE CONFIG FILE: {file_path} - THIS MAY BE BECAUSE YOU ARE DECLARING "
f"VALUES WHICH INCLUDE A TOKEN, WHERE THE VALUE OF THE TOKEN ITSSELF USES A TOKEN. YOU CAN "
f"NOT DECLARE TOKENS WHICH DEPEND ON OTHER TOKENS\n\n")
f"NOT DECLARE TOKENS WHICH DEPEND ON OTHER TOKENS\n\nNOTE THIS MAY NOT BE A PROBLEM, AS SOME "
f"PIPELINES USE OTHER TOKENS WHICH ARE PARSED ELSEWHERE IN THE CODE\n\n")
logger.warning(f"UNRESOLVED TOKENS: {parsed_file_string}")
# finally, parse the tokenized string as a json dict
result = json.loads(parsed_file_string)
......
{
"RunConfig" : "${ConfigsPath}/met_resample/run_config_MetResample.json",
"Environment" : {
"SuccessFileTemplate" : "${WorkspacePath}/ENVIRONMENT_2.0_${StartString}/STATUS_SUCCESS"
},
"CalculationSpanDays" : [0,5]
}
\ No newline at end of file
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