Fail to execute `Goto Definition ' for aiida-quantumespresso's band_structure Workchain invoked like this: PwBandStructureWorkChain = WorkflowFactory('quantumespresso.pw.band_structure')
Hi,
aiida-quantumespresso is a aiida-core's plugin located here: https://github.com/aiidateam/aiida-qu... which including the Workchain for computing a band structure. The source code is located here: https://github.com/aiidateam/aiida-qu....
When I using the following method to import it:
from aiida_quantumespresso.workflows.pw import band_structure
When I put the mouse on band_structure
, I can find the Goto Defination
option.
While this Workchain can also be used as class object passing method like this:
PwBandStructureWorkChain = WorkflowFactory('quantumespresso.pw.band_structure')
The WorkflowFactory
function is defined here: https://github.com/aiidateam/aiida-co...
But in this case, if I put mouse on the quantumespresso.pw.band_structure
, the wing won't display the Goto Defination
option at all.
Any hints?
Regards
Comments
Is there an easy way to install this in a Python 3 environment? The pip package is for Python 2.7. Or are you using Python 2.7?
It seems there is no up-to-date version of that package on pip|conda. But it can be installed using git repo directly or clone the repo and then install locally with pip. You should first install the aiida-core package. I demonstrate the steps using conda as follows:
I use python 3.8.2.
Regards