Skip to content

Commit

Permalink
dedup site deposit type canidate list (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthaleen authored Jul 17, 2024
1 parent 117566b commit 92f7dbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
25 changes: 6 additions & 19 deletions cdr_schemas/mineral.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,25 +254,12 @@ class DedupSite(BaseModel):
description="Type: Polygon or Point, value indicates the geolocation of the site",
)

top1_deposit_type_id: str = Field(default="")
top1_deposit_classification_source: str = Field(default="")
top1_deposit_classification_confidence: Optional[float] = Field(default=None)

top2_deposit_type_id: str = Field(default="")
top2_deposit_classification_source: str = Field(default="")
top2_deposit_classification_confidence: Optional[float] = Field(default=None)

top3_deposit_type_id: str = Field(default="")
top3_deposit_classification_source: str = Field(default="")
top3_deposit_classification_confidence: Optional[float] = Field(default=None)

top4_deposit_type_id: str = Field(default="")
top4_deposit_classification_source: str = Field(default="")
top4_deposit_classification_confidence: Optional[float] = Field(default=None)

top5_deposit_type_id: str = Field(default="")
top5_deposit_classification_source: str = Field(default="")
top5_deposit_classification_confidence: Optional[float] = Field(default=None)
deposit_type_candidate: List[DepositTypeCandidate] = Field(
default_factory=list,
description="""
A list of deposit types candidates
""",
)

system: str = Field(..., description="The name of the system used.")
system_version: str = Field(..., description="The version of the system used.")
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.3.7"
version = "0.3.8"
description = "CDR Schemas"
authors = []
readme = "README.md"
Expand Down

0 comments on commit 92f7dbb

Please sign in to comment.