Skip to content

Commit

Permalink
Fix bug in MY collection if dsets does not contain all possible dsets
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Oct 23, 2024
1 parent cfa53bd commit 8c443a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions reV/handlers/multi_year.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,15 @@ def _parse_pass_through_dsets(self, dsets, pass_through_dsets):
pass_through_dsets : list
List of pass through datasets.
"""
with Resource(self.source_files[0]) as res:
all_dsets = res.datasets

if isinstance(dsets, str) and dsets == 'PIPELINE':
files = parse_previous_status(self._dirout, ModuleName.MULTI_YEAR)
with Resource(files[0]) as res:
dsets = res.datasets
dsets = all_dsets

if "lcoe_fcr" in dsets:
for dset in LCOE_REQUIRED_OUTPUTS:
if dset not in pass_through_dsets and dset in dsets:
if dset not in pass_through_dsets and dset in all_dsets:
pass_through_dsets.append(dset)

if "dc_ac_ratio" in dsets:
Expand Down

0 comments on commit 8c443a8

Please sign in to comment.