Skip to content

Commit

Permalink
Merge pull request #82 from NREL/plexos_forecast_fix
Browse files Browse the repository at this point in the history
fix forecast_fpath
  • Loading branch information
MRossol authored Jan 29, 2021
2 parents ec2124a + 8cfc8bb commit d216964
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion reVX/plexos/rev_reeds_plexos.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _build_sc_profile(self, row_idx, profile):
with Outputs(self._cf_fpath, mode='r') as cf_outs:
cf_profile = cf_outs['cf_profile', :, gen_gid]
else:
gen_gid = self._forecast_map[gen_gid]
gen_gid = int(self._forecast_map[gen_gid])
with Outputs(self._forecast_fpath, mode='r') as cf_outs:
cf_profile = cf_outs['cf_profile', :, gen_gid]

Expand Down Expand Up @@ -1148,6 +1148,8 @@ def run(cls, job, out_dir, scenario=None, cf_year=2012,
if isinstance(job, str):
job = pd.read_csv(job)

job = job.where(pd.notnull(job), None)

if isinstance(build_years, int):
build_years = [build_years]

Expand Down
2 changes: 1 addition & 1 deletion reVX/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
reVX version number
"""

__version__ = "0.3.16"
__version__ = "0.3.17"

0 comments on commit d216964

Please sign in to comment.