Skip to content

Commit

Permalink
Rename figure
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmbland committed Nov 7, 2023
1 parent b49f0df commit 123ae05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def generate_intraday_market_bids_fig(df: pd.DataFrame) -> go.Figure:
return intraday_market_bids_fig


def generate_dsr_bids_fig(df: pd.DataFrame) -> go.Figure:
def generate_dsr_fig(df: pd.DataFrame) -> go.Figure:
"""Creates plotly Figure object for DSR Bids and Offers table.
Args:
Expand Down
14 changes: 7 additions & 7 deletions app/pages/market.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from .. import datahub_api as datahub
from ..figures import (
generate_balancing_market_fig,
generate_dsr_bids_fig,
generate_dsr_commands_fig,
generate_dsr_fig,
generate_energy_deficit_fig,
generate_intraday_market_bids_fig,
generate_intraday_market_sys_fig,
Expand All @@ -28,7 +28,7 @@
balancing_market_fig = generate_balancing_market_fig(df)
energy_deficit_fig = generate_energy_deficit_fig(df)
intraday_market_bids_fig = generate_intraday_market_bids_fig(df)
dsr_bids_fig = generate_dsr_bids_fig(df)
dsr_fig = generate_dsr_fig(df)
dsr_commands_fig = generate_dsr_commands_fig(df)

layout = html.Div(
Expand Down Expand Up @@ -93,10 +93,10 @@
html.Div(
style={"width": "48%"},
children=[
html.H1("DSR Bids and Offers"),
html.H1("Demand Side Response"),
dcc.Graph(
id="table-dsr-bids",
figure=dsr_bids_fig,
id="graph-dsr",
figure=dsr_fig,
style={"height": "40vh"},
),
],
Expand Down Expand Up @@ -144,13 +144,13 @@ def update_data(n_intervals): # type: ignore # noqa
balancing_market_fig = generate_balancing_market_fig(new_df_opal)
energy_deficit_fig = generate_energy_deficit_fig(new_df_opal)
intraday_market_bids_fig = generate_intraday_market_bids_fig(new_df_opal)
dsr_bids_fig = generate_dsr_bids_fig(new_df_dsr)
dsr_fig = generate_dsr_fig(new_df_dsr)
dsr_commands_fig = generate_dsr_commands_fig(new_df_opal)
return (
intraday_market_sys_fig,
balancing_market_fig,
energy_deficit_fig,
intraday_market_bids_fig,
dsr_bids_fig,
dsr_fig,
dsr_commands_fig,
)

0 comments on commit 123ae05

Please sign in to comment.