Skip to content

Commit da749cd

Browse files
committed
Patch too strict validation for
1 parent 3a99cdd commit da749cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bedrock_ge/gi/mapping_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class LabTestTableMapping(OtherTable):
6363
class BedrockGIMapping(BaseModel):
6464
Project: ProjectTableMapping
6565
Location: LocationTableMapping
66-
InSitu: list[InSituTestTableMapping]
66+
InSitu: list[InSituTestTableMapping] = []
6767
Sample: Union[SampleTableMapping, None] = None
6868
Lab: list[LabTestTableMapping] = []
6969
Other: list[OtherTable] = []

src/bedrock_ge/gi/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class InSituTestSchema(pa.DataFrameModel):
7070
# foreign_key="location.location_uid"
7171
)
7272
depth_to_top: Optional[Series[float]] = pa.Field(nullable=True, coerce=True, ge=0)
73-
depth_to_base: Optional[Series[float]] = pa.Field(nullable=True, coerce=True, gt=0)
73+
depth_to_base: Optional[Series[float]] = pa.Field(nullable=True, coerce=True, ge=0)
7474

7575
# https://pandera.readthedocs.io/en/stable/dataframe_models.html#dataframe-checks
7676
# Check depth column completeness such that either shapely.Point's or

0 commit comments

Comments
 (0)