Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dpinney/omf
Browse files Browse the repository at this point in the history
  • Loading branch information
ASC95 committed Aug 8, 2024
2 parents c188353 + 3251327 commit 3a74cc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions omf/models/derUtilityCost.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
'distributed energy resources (DERs) using the NREL Renewable Energy Optimization Tool (REopt) and '
'the OMF virtual battery dispatch module (vbatDispatch).')
modelName, template = __neoMetaModel__.metadata(__file__)
hidden = True ## Keep the model hidden=True during active development
hidden = False ## Keep the model hidden=True during active development


def work(modelDir, inputDict):
Expand Down Expand Up @@ -62,8 +62,7 @@ def work(modelDir, inputDict):
except KeyError:
year = inputDict['year'] # Use the user provided year if none found in reoptResults

arr_size = np.size(demand) # desired array size of the timestamp array
timestamps = derConsumer.create_timestamps(start_time=f'{year}-01-01', end_time=f'{year}-12-31 23:00:00', arr_size=arr_size)
timestamps = pd.date_range(start=f'{year}-01-01', end=f'{year}-12-31 23:00:00', periods=np.size(demand))

## If outage is specified, load the resilience results
if (inputDict['outage']):
Expand Down

0 comments on commit 3a74cc6

Please sign in to comment.