aiidateam / aiida-pseudo

MIT License
5 stars 8 forks source link

CLI: Enable install `--download-only` without available profile #166

Closed sphuber closed 9 months ago

sphuber commented 9 months ago

Fixes #165

The aiida-pseudo install sssp/pseudo-dojo provide the --download-only option to only download the archive. This is useful in case a family needs to be installed on a machine without a (stable) internet connection. With this option, the archive can be downloaded on another machine first before transferring the file and installing it directly from the archive.

Currently, however, the install command always requires an AiiDA profile to be configured, even for the --download-only option in which case the command never needs access to the profile. Here, this requirement is removed by removing the with_dbenv decorator from the command. Instead, the profile is loaded manually inside the command at the point where it is really necessary.

sphuber commented 9 months ago

@unkcpz I think this actually works. Could you give this a go please?

unkcpz commented 9 months ago

Wow, this is lightning-fast! Thanks, I'll test it.

unkcpz commented 9 months ago

Tested and works!!