Skip to content

Commit

Permalink
update snakemake commands
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorb1 committed Jan 21, 2024
1 parent 2a27959 commit 41e6007
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/advanced-functionality.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ are identified by being named in files with all capitals (ie. REGION.csv).
Restart the workflow, which will build and solve the model, through the command:

```bash
snakemake -c
snakemake -j6
```

## Custom Nodes
Expand Down Expand Up @@ -134,7 +134,7 @@ geographic_scope:
Then run the workflow as normal from the root directory

```bash
snakemake -c
snakemake -j6
```

## Interactive Dashboard
Expand Down
18 changes: 9 additions & 9 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ the configuration file at `config/config.yaml`
**Goal**: Run the workflow with default settings. This will produce a model
of India from 2015 to 2050 with 8 time slices per year, and solve it using CBC.

1. Run the command `snakemake -c`. The time to build and solve the model will
1. Run the command `snakemake -j6`. The time to build and solve the model will
vary depending on your computer, but in general, this example will finish
within minutes .

```bash
(osemosys-global) ~/osemosys_global$ snakemake -c
(osemosys-global) ~/osemosys_global$ snakemake -j6
```

:::{tip}
The `-c` command will instruct Snakemake to use all available computer
cores. If your want to restrict this, input a number after the `-c` to
specify the number of cores. For example, the command `snakemake -c2` will
The `-j6` command will instruct Snakemake to use six cores.
If your want to restrict this, change the number after the `-j` to
specify the number of cores. For example, the command `snakemake -j2` will
run the workflow using 2 cores. See
[snakemake's documentation](https://snakemake.readthedocs.io/en/stable/executing/cli.html#useful-command-line-arguments)
for more information.
Expand Down Expand Up @@ -254,10 +254,10 @@ are inclusive.
emission_penalty: 50
```
8. Run the command `snakemake -c`
8. Run the command `snakemake -j6`
```bash
(osemosys-global) ~/osemosys_global$ snakemake -c
(osemosys-global) ~/osemosys_global$ snakemake -j6
```
:::{tip}
Expand Down Expand Up @@ -438,15 +438,15 @@ The goal of this scenario is to run a World scenario from 2015 to 2050 with
solver: 'cplex'
```

8. Run the command `snakemake -c`
8. Run the command `snakemake -j6`

:::{warning}
This scenario will take multiple hours to run using a commercial solver
(Gurobi or CPLEX) on a high performance computer.
:::

```bash
(osemosys-global) ~/osemosys_global$ snakemake -c
(osemosys-global) ~/osemosys_global$ snakemake -j6
```

8. View system level results in the `results/WORLD/figures` folder
Expand Down

0 comments on commit 41e6007

Please sign in to comment.