Skip to content

Commit

Permalink
use pandera instead of frictionless for table validation
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Nov 12, 2024
1 parent 2651173 commit 0d908bc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies = [
"findmfpy",
"kdepy>=1.1.8",
"perlin-noise==1.13",
"frictionless",
"pandera[polars]",
# TODO demote to optional again later, but necessary for pycharm right now
"bfabric @ git+https://github.com/fgcz/bfabricPy.git@main",
"app_runner @ git+https://github.com/fgcz/bfabricPy.git@main#egg=app_runner&subdirectory=app_runner",
Expand Down
13 changes: 13 additions & 0 deletions src/depiction_targeted_preproc/panel/schema.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import pandera.polars as pa


class PanelMainSchema(pa.DataFrameModel):
label: str
mass: float = pa.Field(gt=0)
type: str = pa.Field(isin=["standard", "target"])


class PanelVisualizeSchema(pa.DataFrameModel):
label: str
mass: float = pa.Field(gt=0)
tol: float = pa.Field(gt=0)

This file was deleted.

This file was deleted.

0 comments on commit 0d908bc

Please sign in to comment.