Skip to content

Commit

Permalink
Merge pull request #55 from IMMM-SFA/dev
Browse files Browse the repository at this point in the history
JOSS Review:  Bring in data from external source
  • Loading branch information
crvernon authored Aug 18, 2021
2 parents 6a06f4e + d304889 commit 05a6467
Show file tree
Hide file tree
Showing 56 changed files with 160 additions and 5,831 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python setup.py install
python -c 'import cerf; cerf.install_package_data()'
- name: Test and generate coverage report on Linux
run: |
Expand Down
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
cerf/data/*_dist_m.tif
cerf/data/cerf_transmission_*
cerf/data/*.zip
cerf/data/*.tif
cerf/data/*.yml
cerf/data/*.csv
cerf/data/*.xml
cerf/data/*.sdat
cerf/data/*.sgrd
cerf/data/*.img

# ignore docs build
docs/build/
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include cerf/data/*
include cerf/data/README.md
include tests/data/*
include tests/data/comp_data/*
3 changes: 2 additions & 1 deletion cerf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from .interconnect import *
from .lmp import *
from .utils import *
from .install_supplement import install_package_data


__version__ = "2.0.2"
__version__ = "2.0.3"
1 change: 1 addition & 0 deletions cerf/compete.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def compete(self):
self.sited_dict['state_name'].append(self.target_state_name)
self.sited_dict['tech_id'].append(tech_id)
self.sited_dict['tech_name'].append(self.technology_dict[tech_id]['tech_name'])
self.sited_dict['unit_size_mw'].append(self.technology_dict[tech_id]['unit_size'])
self.sited_dict['xcoord'].append(self.xcoords[target_ix])
self.sited_dict['ycoord'].append(self.ycoords[target_ix])
self.sited_dict['index'].append(self.indices_flat[target_ix])
Expand Down
8 changes: 8 additions & 0 deletions cerf/data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Space holder for package data. Install the cerf package data by running:

```python
import cerf

cerf.install_package_data()

```
Binary file removed cerf/data/cerf_conus_boundary_albers.zip
Binary file not shown.
Binary file removed cerf/data/cerf_conus_states_albers.zip
Binary file not shown.
Binary file removed cerf/data/cerf_conus_states_albers_1km.tif
Binary file not shown.
Loading

0 comments on commit 05a6467

Please sign in to comment.