Skip to content

Commit

Permalink
Updating battery descriptions
Browse files Browse the repository at this point in the history
Changed 'manufacturer' and 'design' to be optional, so that loading experimental
lab data without these fields is possible.
  • Loading branch information
Victor Venturi committed Jun 4, 2024
1 parent e58b79e commit 902852c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batdata/schemas/battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class BatteryDescription(BaseModel, extra=Extra.allow):
"""Description of the entire battery"""

# Overall design information
manufacturer: str = Field(None, description="Manufacturer of the battery")
design: str = Field(None, description="Name of the battery type, such as the battery product ID")
manufacturer: Optional[str] = Field(None, description="Manufacturer of the battery")
design: Optional[str] = Field(None, description="Name of the battery type, such as the battery product ID")

# Geometry information
layer_count: Optional[int] = Field(None, description="Number of layers within the battery", gt=1)
Expand Down

0 comments on commit 902852c

Please sign in to comment.