Skip to content

Commit d84ebee

Browse files
committed
Merge branch 'main' of https://github.com/NREL/pysam into build_improvements
2 parents 1b75388 + 4294089 commit d84ebee

33 files changed

Lines changed: 152 additions & 111 deletions

‎.github/workflows/test_pkg.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: |
4545
cd ..
4646
git config --global url.https://github.com/.insteadOf git://github.com/
47-
git clone https://github.com/NREL/SAM.git
47+
git clone https://github.com/natlabrockies/SAM.git
4848
4949
- name: Unit tests
5050
run: |
@@ -95,7 +95,7 @@ jobs:
9595
run: |
9696
cd ..
9797
git config --global url.https://github.com/.insteadOf git://github.com/
98-
git clone https://github.com/NREL/SAM.git
98+
git clone https://github.com/natlabrockies/SAM.git
9999
100100
- name: Unit tests
101101
run: |
@@ -148,7 +148,7 @@ jobs:
148148
run: |
149149
cd ..
150150
git config --global url.https://github.com/.insteadOf git://github.com/
151-
git clone https://github.com/NREL/SAM.git
151+
git clone https://github.com/natlabrockies/SAM.git
152152
153153
- name: Unit tests
154154
run: |

‎CONTRIBUTING.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
NREL welcomes your contribution to the PySAM project!
44

5-
You can contribute by letting us know about problems, suggesting new features, or by making your own changes or additions to the code. To see a list of issues or report a new one, see the [PySAM Issues page](https://github.com/NREL/pysam/issues).
5+
You can contribute by letting us know about problems, suggesting new features, or by making your own changes or additions to the code. To see a list of issues or report a new one, see the [PySAM Issues page](https://github.com/natlabrockies/pysam/issues).
66

7-
If you have a question about using PySAM, you can ask us on the [SAM SDK support forum](https://sam.nrel.gov/forum/forum-sdk.html).
7+
If you have a question about using PySAM, you can ask us on the [SAM SDK support forum](https://sam.nlr.gov/forum/forum-sdk.html).
88

9-
Please see the SAM wiki page for our contribution policy: [https://github.com/NREL/SAM/wiki/Contribution-Policy](https://github.com/NREL/SAM/wiki/Contribution-Policy).
9+
Please see the SAM wiki page for our contribution policy: [https://github.com/natlabrockies/SAM/wiki/Contribution-Policy](https://github.com/natlabrockies/SAM/wiki/Contribution-Policy).

‎Examples/FetchResourceFileExample.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
to `data`.
99
1010
To use the `FetchResourceFile` function, register an email address to receive a
11-
free API key at at https://developer.nrel.gov/signup/.
11+
free API key at at https://developer.nlr.gov/signup/.
1212
1313
Most recently tested against PySAM 7.1.0
1414
@@ -23,7 +23,8 @@
2323

2424
import geocoder
2525

26-
# replace with key and email address from https://developer.nrel.gov/signup/
26+
27+
# replace with key and email address from https://developer.nlr.gov/signup/
2728
sam_api_key = os.environ.get('NREL_API_KEY')
2829
sam_email = os.environ.get('NREL_API_EMAIL')
2930
geocode_api_key = '' # optional, may be required for geocoder
@@ -39,7 +40,7 @@
3940
lat = g.latlng[0]
4041
else:
4142
lon = -105.22
42-
lat = 39.75
43+
lat = 45
4344

4445
# --- Wind Example ---
4546

@@ -83,6 +84,7 @@
8384
nsrdbfetcher = tools.FetchResourceFiles(
8485
tech='solar',
8586
nrel_api_key=sam_api_key,
87+
resource_type = 'nsrdb-GOES-tmy-v4-0-0',
8688
nrel_api_email=sam_email)
8789

8890
# --- List of (lon, lat) tuples or Shapely points ---

‎Examples/PVsamv1Tools.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"\n",
4242
"This function downloads weather files from the NREL National Solar Radiation Database (NSRDB). In this example, we are downloading a file for a single location and storing it in the current folder to use in the next example.\n",
4343
"\n",
44-
"Register on the NREL Developer Network to get an NREL API key: https://developer.nrel.gov/signup/ and replace `DEMO_KEY` and `test_email.email.org` with your key and email address. `DEMO_KEY` only allows limited access to the API for testing."
44+
"Register on the NREL Developer Network to get an NREL API key: https://developer.nlr.gov/signup/ and replace `DEMO_KEY` and `test_email.email.org` with your key and email address. `DEMO_KEY` only allows limited access to the API for testing."
4545
]
4646
},
4747
{
@@ -156,7 +156,7 @@
156156
"\n",
157157
"This requires that you look up the module name in the \"Name\" column of the CSV file for the module you want to select. In this example, we are downloading parameters for a module with the name \"AIMS POWER PV555MONO\".\n",
158158
"\n",
159-
"https://github.com/NREL/SAM/blob/patch/deploy/libraries/CEC%20Modules.csv"
159+
"https://github.com/NatLabRockies/SAM/blob/patch/deploy/libraries/CEC%20Modules.csv"
160160
]
161161
},
162162
{

‎Examples/PySAMWorkshop.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"\n",
1212
"dguittet\n",
1313
"\n",
14-
"https://sam.nrel.gov/software-development-kit-sdk/pysam.html\n",
14+
"https://sam.nlr.gov/software-development-kit-sdk/pysam.html\n",
1515
"\n",
1616
"Edit: Most recently tested with Version 7.10"
1717
]

‎Examples/SelectingModuleandInverterExample/Modeling the NREL bifacial PV HSAT system.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9050,7 +9050,7 @@
90509050
"source": [
90519051
"The URL you see when you navigate to the github looks like:\n",
90529052
"\n",
9053-
" >> https://github.com/NREL/SAM/blob/master/deploy/libraries/CEC%20Modules.csv\n",
9053+
" >> https://github.com/NatLabRockies/SAM/blob/master/deploy/libraries/CEC%20Modules.csv\n",
90549054
" \n",
90559055
"However, to access it you must rename the github.com to raw.githubusercontent.com, and also remove the 'blob' part, so\n",
90569056
"\n",

‎Examples/UtilityRatesExample.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
This example script shows how to set up the utility rate module using a rate downloaded from the Utility Rate
33
4-
This example requires an NREL developer key, which can be obtained from https://developer.nrel.gov/signup/
4+
This example requires an NREL developer key, which can be obtained from https://developer.nlr.gov/signup/
55
66
Additional financial models, inputs, and outputs can be found at:
77
* PV: https://nrel-pysam.readthedocs.io/en/master/modules/Utilityrate5.html

‎Examples/Windpower_Example/readme.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This example illustrates how to work with PySAM's Windpower module for wind turb
44

55
The Python script reads Windpower model inputs from the `wind-power-inputs.json` file, which was created by exporting inputs from the `windpower-example.sam` file using SAM's Code Generator with the "PySAM JSON" option.
66

7-
It then loads wind resource data from the `wind-resource-file.csv` file, which is a file from the NREL WIND Toolkit API: https://developer.nrel.gov/docs/wind/wind-toolkit/wtk-download/.
7+
It then loads wind resource data from the `wind-resource-file.csv` file, which is a file from the NREL WIND Toolkit API: https://developer.nlr.gov/docs/wind/wind-toolkit/wtk-download/.
88

99
Next it loads a set of wind turbine parameters from the `wind-turbines.json` file that has data for three wind turbines. You can use this file as a model to create your own file of wind turbine parameters.
1010

‎Examples/nsrdb_data_query_response_39.75_-105.22.json‎

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

‎Examples/nsrdb_data_query_response_39.7_-105.1.json‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)