You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Recent changes made (compared to branch kt/fix_scenario_filtering) have caused the dictionaries from the user_dict.yaml to not be read into the parser config. This causes the plexos parser to fail with error:
r2x run -i NVE_7_19_24/ --input-model plexos --output-model sienna --user-dict user_dict_nve_july.yaml --year=2030 --weather-year=2030 -o output_test2 --flags plexos-csv=1
Traceback (most recent call last):
File "/Users/kamrantehranchi/miniforge3/envs/r2x/bin/r2x", line 8, in <module>
sys.exit(cli())
^^^^^
File "/Users/kamrantehranchi/Local_Documents/R2X/src/r2x/cli.py", line 42, in cli
cli_commands(cli_args, user_dict)
File "/Users/kamrantehranchi/Local_Documents/R2X/src/r2x/cli.py", line 63, in cli_commands
run(cli_args, user_dict=user_dict)
File "/Users/kamrantehranchi/Local_Documents/R2X/src/r2x/runner.py", line 161, in run
run_single_scenario(scenario)
File "/Users/kamrantehranchi/Local_Documents/R2X/src/r2x/runner.py", line 114, in run_single_scenario
system, parser = run_parser(scenario, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kamrantehranchi/Local_Documents/R2X/src/r2x/runner.py", line 59, in run_parser
parser = get_parser_data(config, parser_class, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kamrantehranchi/Local_Documents/R2X/src/r2x/parser/handler.py", line 278, in get_parser_data
parser = parser_class(config=config, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kamrantehranchi/Local_Documents/R2X/src/r2x/parser/plexos.py", line 175, in __init__
raise ParserError(msg)
r2x.exceptions.ParserError: At least one of fuel_map, or device_map, or device_match_string, or category_map is required to initialize PlexosParser
pdb'ing into the config shows that the plexos_fuel_map and other user dict specifications are not being read into self.config.defaults
Not sure if if this is a change to the CLI/user_dict specifications, but I couldn't find a change in the code which would indicate this.
To Reproduce
See r2x command above. The same command works on my kt/fix_scenario_filtering branch. (minus the new "run" command)
Environement (please complete the following information):
OS: Mac
R2X version: main
The text was updated successfully, but these errors were encountered:
Describe the bug
Recent changes made (compared to branch kt/fix_scenario_filtering) have caused the dictionaries from the
user_dict.yaml
to not be read into the parser config. This causes the plexos parser to fail with error:pdb'ing into the config shows that the
plexos_fuel_map
and other user dict specifications are not being read intoself.config.defaults
Not sure if if this is a change to the CLI/user_dict specifications, but I couldn't find a change in the code which would indicate this.
To Reproduce
See r2x command above. The same command works on my
kt/fix_scenario_filtering
branch. (minus the new "run" command)Environement (please complete the following information):
The text was updated successfully, but these errors were encountered: