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
I get the following exception after restarting the daemon:
....
File "/data/CONDA_ENV/aiida-production/lib/python3.7/site-packages/yaml/constructor.py", line 570, in make_python_instance
node.start_mark)
yaml.constructor.ConstructorError: while constructing a Python instance
expected a class, but found <class 'builtin_function_or_method'>
in "<unicode string>", line 10, column 30:
lowest_highest_eigenvalue: !!python/object/apply:numpy.core ...
In my workchain I set the self.ctx.lowest_highest_eigenvalue=np.amin(bands[:, -1]) and yaml refuse to load a function specified in the YAML(yaml/pyyaml#286). I guess this be also related to the switch to safe YAML loading(#3709)? @sphuber@greschd
My point is whether this can be fixed by in the workchain instead of registering ctx.lowest_highest_eigenvalue as a numpy function, get the value first and set it in the ctx, like:
v = np.amin(bands[:, -1])
self.ctx.lowest_highest_eigenvalue = v
The text was updated successfully, but these errors were encountered:
I get the following exception after restarting the daemon:
In my workchain I set the
self.ctx.lowest_highest_eigenvalue=np.amin(bands[:, -1])
and yaml refuse to load a function specified in the YAML(yaml/pyyaml#286). I guess this be also related to the switch to safe YAML loading(#3709)? @sphuber @greschdMy point is whether this can be fixed by in the workchain instead of registering
ctx.lowest_highest_eigenvalue
as a numpy function, get the value first and set it in thectx
, like:The text was updated successfully, but these errors were encountered: