Skip to content

Commit ae33848

Browse files
authored
Issue/float capacities (#189)
1 parent 2d2d836 commit ae33848

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nowcasting_datamodel/models/gsp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class LocationSQL(Base_Forecast):
3434
gsp_name = Column(String, nullable=True)
3535
gsp_group = Column(String, nullable=True)
3636
region_name = Column(String, nullable=True)
37-
installed_capacity_mw = Column(Integer, nullable=True)
37+
installed_capacity_mw = Column(Float, nullable=True)
3838

3939
forecast = relationship("ForecastSQL", back_populates="location")
4040
gsp_yields = relationship("GSPYieldSQL", back_populates="location")
@@ -49,7 +49,7 @@ class Location(EnhancedBaseModel):
4949
gsp_name: Optional[str] = Field(None, description="The GSP name")
5050
gsp_group: Optional[str] = Field(None, description="The GSP group name")
5151
region_name: Optional[str] = Field(None, description="The GSP region name")
52-
installed_capacity_mw: Optional[int] = Field(
52+
installed_capacity_mw: Optional[float] = Field(
5353
None, description="The installed capacity of the GSP in MW"
5454
)
5555

nowcasting_datamodel/read/read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def get_location(
636636
session: Session,
637637
gsp_id: int,
638638
label: Optional[str] = None,
639-
installed_capacity_mw: Optional[int] = None,
639+
installed_capacity_mw: Optional[float] = None,
640640
) -> LocationSQL:
641641
"""
642642
Get location object from gsp id

0 commit comments

Comments
 (0)