Skip to content

Commit 75942ba

Browse files
committed
Pre-import inverter_efficiency as well
1 parent 17fe52e commit 75942ba

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/solarbatteryield/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
# Pre-import modules to ensure they are fully loaded before concurrent access.
1111
# This prevents race conditions with @dataclass decorators on Streamlit Cloud.
12-
from solarbatteryield import h0_profile # noqa: F401
13-
from solarbatteryield import config # noqa: F401
14-
from solarbatteryield import models # noqa: F401
12+
# Order matters: import dependencies before dependents.
13+
from solarbatteryield import inverter_efficiency # noqa: F401 - needed by models, simulation
14+
from solarbatteryield import h0_profile # noqa: F401 - needed by config, simulation
15+
from solarbatteryield import load_regression # noqa: F401 - JSON loaded at module level
16+
from solarbatteryield import config # noqa: F401 - needed by state, sidebar, report
17+
from solarbatteryield import models # noqa: F401 - needed by simulation, report

0 commit comments

Comments
 (0)