chrisjsewell / activate_aiida

a package to activate an aiida environment, from a yaml config file
MIT License
0 stars 2 forks source link

check for profile existence fragile #7

Open ltalirz opened 3 years ago

ltalirz commented 3 years ago

the package currently checks for whether a profile is already configured by https://github.com/chrisjsewell/activate_aiida/blob/master/bin/aiida-activate#L122

However, for an empty profile, e.g. the file path of the working directory is in the output of verdi profile list:

verdi profile list
Info: configuration folder: /work/test34/repo/.aiida
Warning: no profiles configured: run `verdi setup` to create one

It will therefore assume the profile exists, when the filepath contains the project name (which just happened to me when looking into the aiida/renkulab integration).

Not a big deal (I'll just name the profile differently)