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
It looks like the new auto-ivc feature of OpenMDAO 3.2 breaks things in wop.
Provided you have already connected once to WhatsOpt server, the following snippet should work with OpenMDAO 3.1 but should break with OpenMDAO 3.2 or 3.3.
Uncommenting the line that adds the IVC to the group makes the script work again.
Also, the code works in all case if components are added directly in problem.model with no additional group added.
Traceback (most recent call last):
File "/Volumes/MacHD2/Users/tof/PycharmProjects/FAST-OAD/results/xdsm_test.py", line 45, in <module>
problem, {"--xdsm": True, "--name": "dummy_test", "--dry-run": False, "--depth": 1}
File "/Volumes/MacHD2/Users/tof/PycharmProjects/FAST-OAD/.venv/lib/python3.7/site-packages/whatsopt/whatsopt_client.py", line 262, in push_mda
problem.model, push_cmd.tree, use_depth=True
File "/Volumes/MacHD2/Users/tof/PycharmProjects/FAST-OAD/.venv/lib/python3.7/site-packages/whatsopt/push_command.py", line 34, in get_mda_attributes
self._collect_disc_infos(self.problem.model, self.tree)
File "/Volumes/MacHD2/Users/tof/PycharmProjects/FAST-OAD/.venv/lib/python3.7/site-packages/whatsopt/push_command.py", line 262, in _collect_disc_infos
self._collect_disc_infos(system._subsystems_myproc[i], child, prefix)
File "/Volumes/MacHD2/Users/tof/PycharmProjects/FAST-OAD/.venv/lib/python3.7/site-packages/whatsopt/push_command.py", line 265, in _collect_disc_infos
if not isinstance(system._subsystems_myproc[i], IndepVarComp):
IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
It looks like the new auto-ivc feature of OpenMDAO 3.2 breaks things in wop.
Provided you have already connected once to WhatsOpt server, the following snippet should work with OpenMDAO 3.1 but should break with OpenMDAO 3.2 or 3.3.
Uncommenting the line that adds the IVC to the group makes the script work again.
Also, the code works in all case if components are added directly in
problem.model
with no additional group added.Error message:
The text was updated successfully, but these errors were encountered: