Skip to content

Commit

Permalink
add battery transition models to representers
Browse files Browse the repository at this point in the history
  • Loading branch information
ahalev committed Apr 5, 2023
1 parent 91dc011 commit f2e113f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pymgrid/utils/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ def add_pymgrid_yaml_representers():
BatteryDischargeShaper
)

from pymgrid.modules.battery.transition_models import (
BatteryTransitionModel,
BiasedTransitionModel,
DecayTransitionModel
)


def dump_data(data_dict, stream, yaml_tag):
if not hasattr(stream, "name"):
Expand Down

0 comments on commit f2e113f

Please sign in to comment.