Skip to content

Commit

Permalink
multiple map units (#66)
Browse files Browse the repository at this point in the history
* map units

* here

* updated
  • Loading branch information
marshHawk4 authored Sep 19, 2024
1 parent b9f0701 commit 4b9aa45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions cdr_schemas/cdr_responses/legend_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ class LegendItemResponse(BaseModel):
)
validated: Optional[bool] = Field(default=None, description="Validated by human")
confidence: Optional[float] = None
map_unit_age_text: str = Field(default="", description="Age of map unit")
map_unit_lithology: str = Field(default="", description="Map unit lithology")
map_unit_age_text: list = Field(default_factory=list, description="Age of map unit")
map_unit_lithology: list = Field(
default_factory=list, description="Map unit lithology"
)
map_unit_b_age: Optional[float] = None
map_unit_t_age: Optional[float] = None

Expand Down
4 changes: 2 additions & 2 deletions cdr_schemas/features/polygon_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ class PolygonLegendAndFeaturesResult(BaseModel):
pattern: str = Field(default="", description="The pattern of the map unit")
### TODO Agreed on Apr 15th call that category can be removed
category: str = Field(default="", description="TODO - what is this?")
map_unit: Optional[MapUnit] = Field(
default=None, description="Human annotated information on the map unit"
map_unit: List[MapUnit] = Field(
default_factory=list, description="Human annotated information on the map units"
)
reference_id: str = Field(
default="",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cdr_schemas"
version = "0.4.8"
version = "0.4.9"
description = "CDR Schemas"
authors = []
readme = "README.md"
Expand Down

0 comments on commit 4b9aa45

Please sign in to comment.