Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Error with Repeated Objectives #46

Open
eyoung55 opened this issue Jun 16, 2021 · 0 comments · Fixed by #45
Open

Key Error with Repeated Objectives #46

eyoung55 opened this issue Jun 16, 2021 · 0 comments · Fixed by #45

Comments

@eyoung55
Copy link
Collaborator

Merging PR #44 seems to have broken the ability to specify repeated objective functions with differing options using the _#XX pattern. When I rewind to the merge of PR #43, the below error is no longer produced.

Using parameter location: multi_farm.yaml
Loading: multi_farm.yaml
Parameter Check Passed
Traceback (most recent call last):
  File "/opt/anaconda3/envs/windse/bin/windse", line 11, in <module>
    load_entry_point('windse', 'console_scripts', 'windse')()
  File "/Users/eyoung/Desktop/remove_this_dir/WindSE/windse_driver/driver.py", line 120, in main
    actions[get_action()]()
  File "/Users/eyoung/Desktop/remove_this_dir/WindSE/windse_driver/driver.py", line 71, in run_action
    params, problem, solver = SetupSimulation(params_loc)
  File "/Users/eyoung/Desktop/remove_this_dir/WindSE/windse_driver/driver_functions.py", line 196, in SetupSimulation
    params = Initialize(params_loc)
  File "/Users/eyoung/Desktop/remove_this_dir/WindSE/windse_driver/driver_functions.py", line 59, in Initialize
    windse.initialize(params_loc,updated_parameters=args.updated_parameters)
  File "/Users/eyoung/Desktop/remove_this_dir/WindSE/windse/__init__.py", line 17, in initialize
    windse_parameters.Load(loc,updated_parameters=updated_parameters)
  File "/Users/eyoung/Desktop/remove_this_dir/WindSE/windse/ParameterManager.py", line 199, in Load
    self.update(self.NestedUpdate(yaml_file))
  File "/Users/eyoung/Desktop/remove_this_dir/WindSE/windse/ParameterManager.py", line 129, in NestedUpdate
    target_dic[key] = self.NestedUpdate(value,subdic=target_dic[key])
  File "/Users/eyoung/Desktop/remove_this_dir/WindSE/windse/ParameterManager.py", line 129, in NestedUpdate
    target_dic[key] = self.NestedUpdate(value,subdic=target_dic[key])
  File "/Users/eyoung/Desktop/remove_this_dir/WindSE/windse/ParameterManager.py", line 129, in NestedUpdate
    target_dic[key] = self.NestedUpdate(value,subdic=target_dic[key])
KeyError: 'point_blockage_#01'
@eyoung55 eyoung55 linked a pull request Jun 16, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant