@@ -48,13 +48,57 @@ King, J. and Hammond, S. "[Integrated Modeling, TEA, and Reference Design for Re
4848
4949## Installing from Package Repositories
5050
51- 1 . GreenHEART is available as a PyPi package:
51+ ``` bash
52+ pip install greenheart
53+ ```
54+
55+ ## Installing from Source
56+
57+ ### Easiest approach (recommended)
58+
59+ 1 . Using Git, navigate to a local target directory and clone repository:
60+
61+ ``` bash
62+ git clone https://github.com/NREL/GreenHEART.git
63+ ```
64+
65+ 2. Navigate to ` GreenHEART`
5266
5367 ` ` ` bash
54- pip install greenheart
68+ cd GreenHEART
5569 ` ` `
5670
57- # # Installing from Source
71+ 3. Create a conda environment and install GreenHEART and all its dependencies
72+
73+ ` ` ` bash
74+ conda env create -f environment.yml
75+ ` ` `
76+
77+ 4. Install Cbc.
78+ 1. If using a Unix machine (not Windows), install a final dependency
79+
80+ ` ` ` bash
81+ conda install -y -c conda-forge coin-or-cbc=2.10.8
82+ ` ` `
83+
84+ 2. Windows users will have to manually install Cbc: https://github.com/coin-or/Cbc
85+
86+ An additional step can be added if additional dependencies are required, or you plan to use this
87+ environment for development work.
88+
89+ - Pass ` -e` for an editable developer install
90+ - Use one of the extra flags as needed:
91+ - ` examples` : allows you to use the Jupyter Notebooks
92+ - ` develop` : adds developer and documentation tools
93+ - ` all` simplifies adding all the dependencies
94+
95+ This looks like the following for a developer installation:
96+
97+ ` ` ` bash
98+ pip install -e " .[all]"
99+ ` ` `
100+
101+ # ## Customizable
58102
591031. Using Git, navigate to a local target directory and clone repository:
60104
@@ -68,7 +112,8 @@ King, J. and Hammond, S. "[Integrated Modeling, TEA, and Reference Design for Re
68112 cd GreenHEART
69113 ` ` `
70114
71- 3. Create a new virtual environment and change to it. Using Conda and naming it ' greenheart' :
115+ 3. Create a new virtual environment and change to it. Using Conda Python 3.11 (choose your favorite
116+ supported version) and naming it ' greenheart' (choose your desired name):
72117
73118 ` ` ` bash
74119 conda create --name greenheart python=3.11 -y
@@ -78,12 +123,18 @@ King, J. and Hammond, S. "[Integrated Modeling, TEA, and Reference Design for Re
781234. Install GreenHEART and its dependencies:
79124
80125 ` ` ` bash
81- conda install -y -c conda-forge coin-or-cbc=2.10.8 glpk
126+ conda install -y -c conda-forge glpk
82127 pip install electrolyzer@git+https://github.com/jaredthomas68/electrolyzer.git@smoothing
83128 pip install ProFAST@git+https://github.com/NREL/ProFAST.git
84129 ` ` `
85130
86- Note if you are on Windows, you will have to manually install Cbc: https://github.com/coin-or/Cbc.
131+ Note: Unix users should install Cbc via:
132+
133+ ` ` ` bash
134+ conda install -y -c conda-forge coin-or-cbc=2.10.8
135+ ` ` `
136+
137+ Windows users will have to manually install Cbc: https://github.com/coin-or/Cbc.
87138
88139 - If you want to just use GreenHEART:
89140
@@ -109,11 +160,11 @@ King, J. and Hammond, S. "[Integrated Modeling, TEA, and Reference Design for Re
109160 pip install -e " .[all]"
110161 ` ` `
111162
112- 5 . The functions which download resource data require an NREL API key. Obtain a key from:
163+ 1 . The functions which download resource data require an NREL API key. Obtain a key from:
113164
114165 [https://developer.nrel.gov/signup/](https://developer.nrel.gov/signup/)
115166
116- 6 . To set up the ` NREL_API_KEY` and ` NREL_API_EMAIL` required for resource downloads, you can create
167+ 2 . To set up the ` NREL_API_KEY` and ` NREL_API_EMAIL` required for resource downloads, you can create
117168 Environment Variables called ` NREL_API_KEY` and ` NREL_API_EMAIL` . Otherwise, you can keep the key
118169 in a new file called " .env" in the root directory of this project.
119170
@@ -124,7 +175,7 @@ King, J. and Hammond, S. "[Integrated Modeling, TEA, and Reference Design for Re
124175 NREL_API_EMAIL=your.name@email.com
125176 ` ` `
126177
127- 7 . Verify setup by running tests:
178+ 3 . Verify setup by running tests:
128179
129180 ` ` ` bash
130181 pytest
@@ -163,4 +214,5 @@ forthcoming.
163214
164215## Contributing
165216
166- Interested in improving GreenHEART? Please see the [Contributing](./CONTRIBUTING.md) section for more information.
217+ Interested in improving GreenHEART? Please see the [Contributor' s Guide](./docs/CONTRIBUTING.md)
218+ section for more information.
0 commit comments