-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #385 from Breakthrough-Energy/develop
Merge develop into master for 0.5.3 release
- Loading branch information
Showing
49 changed files
with
1,824 additions
and
1,063 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
This guide will demonstrate how to regenerate the plots used in the documentation here. | ||
The requirements are | ||
1) Have docker installed | ||
2) Download the [PlotData] zip file containing the scenarios used | ||
### Requirements | ||
This guide will demonstrate how to regenerate the plots used in the | ||
[documentation][docs]. The only requirement is that docker is installed. The | ||
scenarios used will be downloaded from blob storage, which may take a while but | ||
should happen automatically. | ||
|
||
Next, extract the data to your home directory, or change the expected location in the | ||
docker-compose.yml file. | ||
|
||
|
||
Start the container, which will provide a notebook environment for running the code | ||
snippets. | ||
### Usage | ||
First, go to this directory, then start the container, which will provide a | ||
notebook environment for running the code snippets. | ||
``` | ||
cd docs | ||
docker compose up | ||
``` | ||
|
||
After copying the notebook url from the output, start the `run_snippets.ipynb` notebook | ||
and run through it. For the most part, no interaction is required. The exception is any | ||
bokeh plots which must be manually saved as png (currently only the powerflow snapshot). | ||
Access the notebook in your browser using the localhost url given by jupyter. | ||
NOTE: if the host port is already in use by another container, it can be | ||
changed to one that is available (e.g. 10001). In this case, you'll need to | ||
change the port in the url to match, since the one given by jupyter is the port | ||
inside the container. | ||
|
||
Now simply run the notebook to regenerate the plots. For the most part, no | ||
interaction is required. The exception is any bokeh plots which must be | ||
manually saved as png (currently only the powerflow snapshot). | ||
|
||
One may notice that the first part of the notebook contains code to generate the cells | ||
used subsequently. This is due to (as far as I know) lack of support in jupyterlab for | ||
programmatically adding new cells, so as a result, any changes to the configuration may | ||
require a developer to rerun this part and copy/paste the output as needed. In most | ||
cases, one can simply run it with no changes, since the notebook is pre-populated. | ||
One may notice that the first part of the notebook contains code to generate | ||
the cells used subsequently. This is due to (as far as I know) lack of support | ||
in jupyterlab for programmatically adding new cells, so as a result, any | ||
changes to the configuration may require a developer to rerun this part and | ||
copy/paste the output as needed. In most cases, one can simply run it with no | ||
changes, since the notebook is pre-populated. | ||
|
||
The output from each snippet will be saved in the `img2/` directory, similar to `img/` which | ||
is checked into git. From here, it's up to the user to compare results and commit the new plots if they look | ||
good. | ||
The output from each snippet will be saved in the `img2/` directory, similar to | ||
`img/` which is checked into git. From here, it's up to the user to compare | ||
results and commit the new plots if they look good. | ||
|
||
[PlotData]: https://besciences.blob.core.windows.net/snapshots/PlotData.zip | ||
[docs]: https://breakthrough-energy.github.io/docs/postreise/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
version: '3.7' | ||
|
||
services: | ||
postreise: | ||
container_name: postreise | ||
hostname: postreise | ||
container_name: postreise_docs | ||
hostname: postreise_docs | ||
image: ghcr.io/breakthrough-energy/postreise:latest | ||
stdin_open: true # docker run -i | ||
tty: true # docker run -t | ||
working_dir: /app | ||
volumes: | ||
- ~/PlotData:/mnt/bes/pcm | ||
- ~/ScenarioData:/mnt/bes/pcm | ||
- ./:/app | ||
ports: | ||
- "10000:10000" | ||
- 10000:10000 | ||
environment: | ||
- DEPLOYMENT_MODE=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.