Skip to content

Commit

Permalink
Trying to fix API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine TAVANT committed Jul 1, 2024
1 parent 156d414 commit ea40537
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/src/energy_forecast.dashboard.Accueil.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
energy\_forecast.dashboard.Accueilt module
energy\_forecast.dashboard.Accueil module
======================================================

.. automodule:: energy_forecast.dashboard.Accueil
Expand Down
2 changes: 1 addition & 1 deletion doc/src/energy_forecast.dashboard.pages.1_Météo.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
energy\_forecast.dashboard.pages.1\_Météo module
==================================================
================================================

.. automodule:: energy_forecast.dashboard.pages.1_Météo
:members:
Expand Down
2 changes: 1 addition & 1 deletion doc/src/energy_forecast.dashboard.pages.2_Production.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
energy\_forecast.dashboard.pages.2\_Production module
============================================================
=====================================================

.. automodule:: energy_forecast.dashboard.pages.2_Production
:members:
Expand Down
2 changes: 1 addition & 1 deletion doc/src/energy_forecast.dashboard.pages.3_Consommation.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
energy\_forecast.dashboard.pages.3\_Consommation module
==================================================================
=======================================================

.. automodule:: energy_forecast.dashboard.pages.3_Consommation
:members:
Expand Down
2 changes: 1 addition & 1 deletion doc/src/energy_forecast.dashboard.pages.4_Jours_Tempos.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
energy\_forecast.dashboard.pages.4\_Jours\_Tempos module
============================================================
========================================================

.. automodule:: energy_forecast.dashboard.pages.4_Jours_Tempos
:members:
Expand Down
2 changes: 1 addition & 1 deletion doc/src/energy_forecast.dashboard.pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Submodules
energy_forecast.dashboard.pages.1_Météo
energy_forecast.dashboard.pages.2_Production
energy_forecast.dashboard.pages.3_Consommation
energy_forecast.dashboard.pages.4_jours_Tempos
energy_forecast.dashboard.pages.4_Jours_Tempos

Module contents
---------------
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ extra-dependencies = [
"sphinx-gallery",
"sphinx_design",
"nbsphinx",
"taipy",
"streamlit",

"ipython",
]
[tool.hatch.envs.docs.scripts]
build = "sphinx-build -b html doc/ doc/_build"
Expand Down
1 change: 1 addition & 0 deletions src/energy_forecast/dashboard/Accueil.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Landing page for the Energy Forecast dashboard."""
import streamlit as st

if __name__ == "__main__":
Expand Down
3 changes: 0 additions & 3 deletions src/energy_forecast/dashboard/pages/2_Production.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import altair as alt
alt.renderers.set_embed_options(time_format_locale="fr-FR", format_locale="fr-FR")


@memory.cache
def compute_data_pv_power(date: str)->pd.DataFrame:
"""Estimate the power generated by solar panels.
Expand Down Expand Up @@ -75,8 +74,6 @@ def compute_data_eolien(date)->pd.DataFrame:
return eolien_power




@memory.cache
def compute_energy(date:str):
"""Concatenate the energy production data with the predictions.
Expand Down
4 changes: 3 additions & 1 deletion src/energy_forecast/dashboard/pages/3_Consommation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
import pandas as pd
import streamlit as st
import altair as alt
from energy_forecast.meteo import memory

alt.renderers.set_embed_options(time_format_locale="fr-FR", format_locale="fr-FR")

@st.cache
@memory.cache
def get_weekly_forecast(secret: str)->pd.DataFrame:
"""Get the weekly forecast for the total electricity consumption.
Expand Down
2 changes: 1 addition & 1 deletion src/energy_forecast/dashboard/pages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Stremlit automatically detects the different pages of the dashboard and add them to the sidebar of the main page.
The main page is generated by the :mod:`src.energy_forecast.dashboard_streamlit` module."""
The main page is generated by the :mod:`src.energy_forecast.dashboard.Accueil` module."""

0 comments on commit ea40537

Please sign in to comment.