Skip to content

Commit a64b2f7

Browse files
committed
feat: add terminal and conda activation instructions for pydsm
1 parent 695d7a9 commit a64b2f7

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
description: "Use when running terminal commands in pydsm. Always use Command Prompt (cmd) and always start by activating the dsm2ui conda environment before executing any project commands."
3+
name: "pydsm Terminal And Conda Activation"
4+
---
5+
# Terminal And Environment Rules
6+
7+
- Use Command Prompt (`cmd`) for terminal commands in this repository.
8+
- The terminal may default to PowerShell. ALWAYS run `cmd` first as a separate step, wait for the prompt, then run `conda activate dsm2ui` as a separate step, wait for activation, then run the project command.
9+
- Never chain these three steps with `;` or `&&` — run each as its own command.
10+
- If the environment is unavailable, stop and ask for the correct environment setup instead of continuing in a different shell.
11+
12+
## Standard Command Sequence (three separate steps)
13+
14+
```bat
15+
cmd
16+
```
17+
```bat
18+
conda activate dsm2ui
19+
```
20+
```bat
21+
<project command here>
22+
```
23+
24+
## Examples
25+
26+
```bat
27+
cmd
28+
```
29+
```bat
30+
conda activate dsm2ui
31+
```
32+
```bat
33+
python -m pytest tests/
34+
```
35+
36+
```bat
37+
cmd
38+
```
39+
```bat
40+
conda activate dsm2ui
41+
```
42+
```bat
43+
python -c "from pydsm.output.hydroh5 import HydroH5; ..."
44+
```

0 commit comments

Comments
 (0)