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
plot_kkr fails with kkr_imp_wc, combine_imps_wc workchains. It works with kkr_scf_wc workchains (plots convergence plot and structure plot). The used workchains were plotted successfully before with kkr_plot. Now the Python environment changed, and the reported error occurs.
Here is the command. This was called in a JupyterLab cell.
node=wc # structure, wc
plot_kkr(node)
Here is plot_kkr's node info output, here for a kkr_imp_wc workchain.
Here is the error message that followed, instead of the convergence plot.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[36], line 2
1 node=wc # structure, wc
----> 2 plot_kkr(node)
File /opt/aiida-kkr/aiida_kkr/tools/plot_kkr.py:391, in plot_kkr.__init__(self, nodes, **kwargs)
389 show()
390 elif nodes is not None:
--> 391 self.plot_kkr_single_node(nodes, **kwargs)
393 display = kwargs.get('display', True)
394 if display and self.sview is not None: #self.classify_and_plot_node(nodes, return_name_only=True)=='struc':
File /opt/aiida-kkr/aiida_kkr/tools/plot_kkr.py:465, in plot_kkr.plot_kkr_single_node(self, node, **kwargs)
462 self.print_clean_inouts(node)
464 # classify node and call plotting function
--> 465 self.classify_and_plot_node(node, silent=silent, **kwargs)
467 if not noshow:
468 from matplotlib.pyplot import show
File /opt/aiida-kkr/aiida_kkr/tools/plot_kkr.py:530, in plot_kkr.classify_and_plot_node(self, node, return_name_only, **kwargs)
528 if return_name_only:
529 return 'imp'
--> 530 self.plot_kkrimp_wc(node, **kwargs)
531 elif node.process_label == u'kkr_imp_sub_wc':
532 if return_name_only:
File /opt/aiida-kkr/aiida_kkr/tools/plot_kkr.py:1071, in plot_kkr.plot_kkrimp_wc(self, node, **kwargs)
1069 sub_wf = [i.node for i in node.get_outgoing(node_class=kkr_imp_sub_wc).all()]
1070 if len(sub_wf) > 0:
-> 1071 self.plot_kkrimp_sub_wc(sub_wf[0], **kwargs)
File /opt/aiida-kkr/aiida_kkr/tools/plot_kkr.py:1111, in plot_kkr.plot_kkrimp_sub_wc(self, node, **kwargs)
1108 else:
1109 ptitle = f'pk= {node.pk}'
-> 1111 self.make_kkrimp_rmsplot(rms_all, stot_all, pks_all, rms_goal, ptitle, **kwargs)
File /opt/aiida-kkr/aiida_kkr/tools/plot_kkr.py:1146, in plot_kkr.make_kkrimp_rmsplot(self, rms_all, stot_all, pks_all, rms_goal, ptitle, **kwargs)
1144 reorder_rms = array(pks_all).argsort()
1145 rms, niter_calcs, stot = [], [0], []
-> 1146 for i in array(rms_all)[reorder_rms]:
1147 rms += list(i)
1148 niter_calcs.append(len(i) - 0.5)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
System & version info.
"iffaiida" is a JupyterHub service. Jupyter and the Python env run inside an Ubuntu Docker container. The used Python environment complete version info is here.
# system info
$ cat /etc/iffaiida-release
BRANCH=master
HOST=iffaiida
IMAGE=iffaiida/aiida-v2
VERSION=2023.05.25
# version info
$ which python
$ python --version
$ pip list | grep -e "aiida-core" -e "masci-tools" -e "aiida-kkr"
/opt/aiida-kernel/bin/python
Python 3.8.10
aiida-core 2.3.0 /opt/aiida-core
aiida-kkr 2.0.0 /opt/aiida-kkr
masci-tools 0.15.0 /opt/masci-tools
JuperLab Version 3.6.0rc0
The text was updated successfully, but these errors were encountered:
Description
plot_kkr
fails withkkr_imp_wc
,combine_imps_wc
workchains. It works withkkr_scf_wc
workchains (plots convergence plot and structure plot). The used workchains were plotted successfully before withkkr_plot
. Now the Python environment changed, and the reported error occurs.Here is the command. This was called in a JupyterLab cell.
Here is plot_kkr's node info output, here for a
kkr_imp_wc
workchain.Here is the error message that followed, instead of the convergence plot.
System & version info.
"iffaiida" is a JupyterHub service. Jupyter and the Python env run inside an Ubuntu Docker container. The used Python environment complete version info is here.
JuperLab Version 3.6.0rc0
The text was updated successfully, but these errors were encountered: