Skip to content

Commit

Permalink
populate by name
Browse files Browse the repository at this point in the history
  • Loading branch information
JrtPec committed Dec 8, 2023
1 parent e2db69f commit 7bc09cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openenergyid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Open Energy ID Python SDK."""

__version__ = "0.1.5"
__version__ = "0.1.6"

from .enums import Granularity
from .models import TimeSeries
Expand Down
2 changes: 2 additions & 0 deletions openenergyid/mvlr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class MultiVariableRegressionResult(BaseModel):
granularity: Granularity
frame: TimeSeries

model_config = ConfigDict(populate_by_name=True)

@classmethod
def from_mvlr(cls, mvlr: MultiVariableLinearRegression) -> "MultiVariableRegressionResult":
"""Create a MultiVariableRegressionResult from a MultiVariableLinearRegression."""
Expand Down

0 comments on commit 7bc09cf

Please sign in to comment.