Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonellaConsolinno committed Feb 14, 2024
1 parent 4841a58 commit 30ba489
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions examples/get_costs_example/get_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,23 +186,17 @@ def main():

# to get the set costs use the method get_set_costs_from_lpfile

set_tdc, set_tic = exppro.get_set_costs_from_lpfile(
filename, om
)
set_tdc, set_tic = exppro.get_set_costs_from_lpfile(filename, om)

# create result object. The last timestep has to be removed
results = solph.processing.results(om, remove_last_time_point=True)

# now get the timedependent optimized values as dataframe

dataframe_tdv = (
exppro.time_dependent_values_as_dataframe(results)
)
dataframe_tdv = exppro.time_dependent_values_as_dataframe(results)

# now get the timeindependent optimized values as dataframe
dataframe_tiv = (
exppro.time_independent_values_as_dataframe(results)
)
dataframe_tiv = exppro.time_independent_values_as_dataframe(results)

# filter values with costs

Expand Down

0 comments on commit 30ba489

Please sign in to comment.