-
Notifications
You must be signed in to change notification settings - Fork 7
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 #70 from samgdotson/env-instructions
Env instructions
- Loading branch information
Showing
11 changed files
with
557 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,13 @@ Open source multi-objective energy system framework | |
[![status](https://joss.theoj.org/papers/183a04edba2d4952fa1e30c419a844b3/status.svg)](https://joss.theoj.org/papers/183a04edba2d4952fa1e30c419a844b3) | ||
[![Build Status](https://github.com/arfc/osier/actions/workflows/CI.yml/badge.svg)](https://github.com/arfc/osier/actions/workflows/CI.yml) | ||
[![Documentation Status](https://readthedocs.org/projects/osier/badge/?version=latest)](https://osier.readthedocs.io/en/latest/?badge=latest) | ||
|
||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/samgdotson/osier/env-instructions?labpath=docs%2Fsource%2Fexamples) | ||
|
||
|
||
## Installation | ||
|
||
### Method 1: PyPI | ||
|
||
`osier` is available through [PyPI](https://pypi.org/project/osier/). It may be installed with | ||
```bash | ||
python -m pip install osier | ||
|
@@ -23,8 +25,21 @@ git clone https://github.com/arfc/osier.git | |
cd osier | ||
# for a basic installation | ||
pip install . | ||
# to also install the documentation dependencies | ||
# (Windows/Linux) to also install the documentation dependencies | ||
pip install .[doc] | ||
# (MacOS) | ||
pip install .'[doc]' | ||
``` | ||
|
||
### Method 2: Conda/Mamba Environment | ||
|
||
Although `osier` is not yet available on `conda-forge`, you may have a more consistent experience by installing | ||
`osier` via a `conda` environment. | ||
|
||
```bash | ||
git clone [email protected]:arfc/osier.git # requires ssh-keys | ||
mamba env create # mamba and conda are interchangeable, here | ||
mamba activate osier-env | ||
``` | ||
|
||
|
||
|
@@ -40,6 +55,14 @@ cd build/html | |
python -m http.server | ||
``` | ||
|
||
## Examples | ||
|
||
The examples can be found in the `docs/source/examples/` directory. Alternatively, | ||
users can run the notebooks and experiment with `osier` through the Binder app. | ||
|
||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/samgdotson/osier/env-instructions?labpath=docs%2Fsource%2Fexamples) | ||
|
||
|
||
## Tests | ||
`osier`'s tests can be run by executing `pytest` in the top-level directory | ||
of `osier`. | ||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: osier-env | ||
channels: | ||
- conda-forge | ||
|
||
dependencies: | ||
- python>=3.9 | ||
- pip | ||
- ipython | ||
- ipykernel | ||
- jupyterlab | ||
- pandas | ||
- scipy | ||
- glpk | ||
- coincbc | ||
- yaml | ||
- numpy | ||
- matplotlib | ||
- pytest | ||
- pytest-cov | ||
- pyomo | ||
- pip: | ||
- pymoo | ||
- pyentrp | ||
- deap | ||
- dill | ||
- openpyxl | ||
- osier |
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