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
In local_opt_generator.persistent_local_opt, local_opter.iterate can return an array or a ConvergedMsg. That is handled in the loop, but if something goes wrong right away, the initial step:
[0] 2023-06-09 19:21:57,964 libensemble.manager (ERROR): Message: TypeError: object of type 'ConvergedMsg' has no len()
[0] 2023-06-09 19:21:57,964 libensemble.manager (ERROR): Traceback (most recent call last):
File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/libensemble/worker.py", line 406, in run
response = self._handle(Work)
File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/libensemble/worker.py", line 355, in _handle
calc_out, persis_info, calc_status = self._handle_calc(Work, calc_in)
File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/libensemble/worker.py", line 275, in _handle_calc
out = calc(calc_in, Work)
File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/libensemble/utils/runners.py", line 58, in run_gen
return result(calc_in, Work["persis_info"], self.gen_specs, Work["libE_info"], self.gen_f, Work["tag"])
File "/home/vagrant/.pyenv/versions/3.9.15/envs/py3/lib/python3.9/site-packages/libensemble/utils/runners.py", line 91, in _normal_result
return user_f(*args)
File "/home/vagrant/src/radiasoft/rsopt/rsopt/libe_tools/generator_functions/local_opt_generator.py", line 37, in persistent_local_opt
add_to_local_H(local_H, x_new, user_specs, local_flag=1, on_cube=True)
File "/home/vagrant/src/radiasoft/rsopt/rsopt/libe_tools/generator_functions/local_opt_generator.py", line 93, in add_to_local_H
assert not local_flag or len(pts) == 1, "Can't > 1 local points"
TypeError: object of type 'ConvergedMsg' has no len()
This may hide the actual error depending on when it took place
The text was updated successfully, but these errors were encountered:
In
local_opt_generator.persistent_local_opt
,local_opter.iterate
can return an array or a ConvergedMsg. That is handled in the loop, but if something goes wrong right away, the initial step:throws:
This may hide the actual error depending on when it took place
The text was updated successfully, but these errors were encountered: