You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the `README.md` instructions to the latest changes. Also includes a
minor change in the `init` command, which now uses the `default` input of the
`Prompt.ask` method. This means the user can simply press enter to use the
shell detected from the `SHELL` environment variable.
π§ Adding the AiiDA environment variables to the activate script.
59
+
β Success: Project created.
60
+
πΎ Installing the latest release of the AiiDA core module.
61
+
πΎ Installing `aiida-quantumespresso` from the PyPI.
37
62
```
38
63
39
-
4. Automatically sets some typical AiiDA UNIX environment variables, like AIIDA_PATH and the shell completion (bash for now, `zsh`/`fish` support coming soon!):
64
+
You can then activate the project using the `cda` command described above:
6. For now it just installs AiiDA and plugins, but in the future we want it to be able to also automatically set up the AiiDA database, repository and default profile.
90
+
**Note:** You may not have the [`tree`](https://en.wikipedia.org/wiki/Tree_(command)) command installed on your system.
91
+
92
+
### `destroy`
93
+
94
+
Projects can be cleaned up by using `aiida-project destroy`.
95
+
First `deactivate` the environment:
96
+
97
+
```console
98
+
deactivate firstproject
99
+
```
100
+
101
+
Next you can run the `destroy` command:
102
+
103
+
```console
104
+
aiida-project destroy firstproject
105
+
```
106
+
```console
107
+
βοΈ Are you sure you want to delete the entire firstproject project? This cannot be undone! [y/N]: y
108
+
Succes: Project with name firstproject has been destroyed.
109
+
```
110
+
111
+
This will remove both the virtual environment, as well as the whole project folder:
112
+
113
+
```console
114
+
~/project$ tree -a
115
+
.
116
+
βββ .aiida_projects
117
+
βββ conda
118
+
βββ virtualenv
119
+
120
+
3 directories, 0 files
121
+
```
122
+
123
+
## Other features
124
+
125
+
### `virtualenvwrapper` integration
126
+
127
+
If you are already using `virtualenvwrapper`, the virtual environments will be installed in the same directory as the one used by `virtualenvwrapper` (i.e. `$WORKON_HOME`).
128
+
So you can then also use the
129
+
130
+
```console
131
+
aiida@prnmarvelsrv3:~$ workon firstproject
132
+
```
133
+
134
+
### Environment configuration
135
+
136
+
Automatically sets some typical AiiDA UNIX environment variables, like AIIDA_PATH and the shell completion (`bash`/`zsh` for now, `fish` support coming soon!):
137
+
138
+
```console
139
+
$ echo$AIIDA_PATH
140
+
/Users/mbercx/project/firstproject
141
+
```
142
+
143
+
## Future goals
144
+
145
+
* For now it just installs AiiDA and plugins, but in the future we want it to be able to also automatically set up the AiiDA database, repository and default profile.
65
146
66
147
```console
67
148
(firstproject) aiida@prnmarvelsrv3:~/project/firstproject$ verdi status
Report: Configure a profile by running `verdi quicksetup` or `verdi setup`.
72
153
```
73
154
74
-
7. Projects are pydantic data models, and are stored as JSON in the .aiida_projects directory. Over time it should be possible to completely regenerate a project based on this file, but thatβs still a work in progress:
155
+
* Projects are pydantic data models, and are stored as JSON in the .aiida_projects directory. Over time it should be possible to completely regenerate a project based on this file, but thatβs still a work in progress:
75
156
76
157
```console
77
158
(firstproject) aiida@prnmarvelsrv3:~/project/firstproject$ cd ..
@@ -83,17 +164,3 @@ Report: Configure a profile by running `verdi quicksetup` or `verdi setup`.
83
164
84
165
2 directories, 1 file
85
166
```
86
-
87
-
8. Projects can be cleaned up by using `aiida-project destroy`:
0 commit comments