Skip to content

Commit

Permalink
Merge pull request #150 from Total-RD/ahalev_refactor_v2
Browse files Browse the repository at this point in the history
refactor modular_microgrid to microgrid
  • Loading branch information
ahalev authored Nov 23, 2022
2 parents f2e05ca + 3f0040e commit f148f85
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pymgrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
PROJECT_PATH = Path(__file__).parent

from ._deprecated.non_modular_microgrid import NonModularMicrogrid
from .modular_microgrid import Microgrid
from .microgrid import Microgrid
from .MicrogridGenerator import MicrogridGenerator

2 changes: 1 addition & 1 deletion src/pymgrid/convert/convert.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pymgrid._deprecated.non_modular_microgrid import NonModularMicrogrid
from pymgrid.modular_microgrid.modular_microgrid import Microgrid
from pymgrid.microgrid.microgrid import Microgrid
from pymgrid.convert.get_module import get_module
from pymgrid.convert.to_nonmodular_ops import check_viability, add_params_from_module, get_empty_params, finalize_params

Expand Down
1 change: 1 addition & 0 deletions src/pymgrid/microgrid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DEFAULT_HORIZON = 23

from .microgrid import Microgrid
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pymgrid.microgrid import DEFAULT_HORIZON
from pymgrid.modules import ModuleContainer, UnbalancedEnergyModule
from pymgrid.utils.logger import ModularLogger
from pymgrid.modular_microgrid.utils.step import MicrogridStep
from pymgrid.microgrid.utils.step import MicrogridStep
from pymgrid.utils.serialize import add_numpy_pandas_representers, add_numpy_pandas_constructors, dump_data


Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion src/pymgrid/modular_microgrid/__init__.py

This file was deleted.

0 comments on commit f148f85

Please sign in to comment.