aiidateam / aiida-pseudo

MIT License
5 stars 8 forks source link

Install with --download-only require a valid AiiDA profile #165

Closed unkcpz closed 9 months ago

unkcpz commented 9 months ago

In preparing the AiiDAlab QE app demo image, I tried to use --download-only to download pseudos first and then install the pseudos from the file which will make the first-time app start faster. However, I need to call install with --download-only in an environment without aiida profile and it raises an error. I notice the options.PROFILE() is set for the command root thus every sub command needs it as well. Is there a way that when --download-only is set the PROFILE option be excluded temporarily?