chrisjsewell / activate_aiida Goto Github PK
View Code? Open in Web Editor NEWa package to activate an aiida environment, from a yaml config file
License: MIT License
a package to activate an aiida environment, from a yaml config file
License: MIT License
since there are anyhow plans to move the config.json
to a config.yaml
format in aiida-core aiidateam/aiida-core#2701 , it seems to me we should think a bit about how to distribute information between the two in order to avoid duplication of information.
mentioning @pzarabadip for info
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)
As mentioned here, it would be good to agree on the name for this package together with @sphuber and @giovannipizzi
Things to think about:
aiidateam
?we have a use case on renkulab, where we would like to specify the user email and name on the fly (pulling it from environment variables).
Since the aiida_config.yaml is committed to the (template) repository, we cannot easily get user-specific information directly into the file.
I see at least three possible ways of supporting this:
email: "$AIIDA_USER_EMAIL"
(perhaps also not ideal since we're mixing yaml with env vars)To me the last option sounds most promising
@chrisjsewell what would you prefer?
hi @chrisjsewell - I'm coming back to this package, with the purpose of using it as part of a "conda-only" install of AiiDA (which could, in principle, also work to install AiiDA directly on a compute cluster in cases where access to the cluster is locked down).
The idea being:
conda install -c conda-forge aiida-core aiida-core.services aiida-activate
.aiida-activate
cliaiida-activate start-services
(or similar) which starts postgres & rabbitmq (creating new postgresql DB if necessary)The script might look for an existing PGDATA
environment variable and try to place the DB there, otherwise in something like ~/.pgdata
Anything beyond that (setup of aiida profile, data import etc.) might be available through other commands but is entirely optional.
Does this sound like a good idea to you?
In essence, I guess this would simply be taking out some parts of the script the you've already written.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.