From 902852c3e8a08aacdda94e5d5dfd90e10b116b8f Mon Sep 17 00:00:00 2001 From: Victor Venturi Date: Tue, 4 Jun 2024 11:05:29 -0500 Subject: [PATCH] Updating battery descriptions Changed 'manufacturer' and 'design' to be optional, so that loading experimental lab data without these fields is possible. --- batdata/schemas/battery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/batdata/schemas/battery.py b/batdata/schemas/battery.py index 399b3a7..b45a6a5 100644 --- a/batdata/schemas/battery.py +++ b/batdata/schemas/battery.py @@ -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)