Skip to content

Commit cdc0981

Browse files
committed
refactor: Complete restructuring of simulation
1 parent 3b8c095 commit cdc0981

29 files changed

Lines changed: 1126 additions & 499 deletions

src/solarbatteryield/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# This prevents race conditions with @dataclass decorators on Streamlit Cloud.
1212
# Order matters: import dependencies before dependents.
1313
# Use relative imports to avoid KeyError during package initialization.
14-
from . import inverter_efficiency # noqa: F401 - needed by models, simulation
15-
from . import h0_profile # noqa: F401 - needed by config, simulation
16-
from . import load_regression # noqa: F401 - JSON loaded at module level
14+
from .simulation import inverter_efficiency # noqa: F401 - needed by models, simulation
15+
from .simulation import h0_profile # noqa: F401 - needed by config, simulation
16+
from .simulation import load_regression # noqa: F401 - JSON loaded at module level
1717
from . import config # noqa: F401 - needed by state, sidebar, report
1818
from . import models # noqa: F401 - needed by simulation, report

src/solarbatteryield/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from dataclasses import dataclass, field
66
from typing import Any
77

8-
from solarbatteryield.h0_profile import H0_TRANSITION, get_season, Season
8+
from solarbatteryield.simulation.h0_profile import H0_TRANSITION, get_season, Season
99
from datetime import date
1010

1111

src/solarbatteryield/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
from dataclasses import dataclass, field
66

7-
from solarbatteryield.inverter_efficiency import (
7+
from solarbatteryield.simulation.inverter_efficiency import (
88
DEFAULT_INVERTER_EFFICIENCY_CUSTOM_PCT,
99
DEFAULT_INVERTER_EFFICIENCY_CURVE,
1010
INVERTER_EFFICIENCY_CURVES,

src/solarbatteryield/report/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
__all__ = [
1313
"Report",
14-
"render_report",
1514
"render_landing_page",
15+
"render_report",
1616
]
1717

src/solarbatteryield/sidebar/pv_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import streamlit as st
88

99
from solarbatteryield.config import LIMITS
10-
from solarbatteryield.inverter_efficiency import (
10+
from solarbatteryield.simulation.inverter_efficiency import (
1111
DEFAULT_INVERTER_EFFICIENCY_CUSTOM_PCT,
1212
INVERTER_EFFICIENCY_CURVES,
1313
)

src/solarbatteryield/sidebar/storage_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import streamlit as st
88

99
from solarbatteryield.config import LIMITS
10-
from solarbatteryield.inverter_efficiency import (
10+
from solarbatteryield.simulation.inverter_efficiency import (
1111
DEFAULT_INVERTER_EFFICIENCY_CUSTOM_PCT,
1212
INVERTER_EFFICIENCY_CURVES,
1313
)

0 commit comments

Comments
 (0)