diff --git a/pyproject.toml b/pyproject.toml index 56d59eb..19bc918 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/src/depiction_targeted_preproc/panel/schema.py b/src/depiction_targeted_preproc/panel/schema.py new file mode 100644 index 0000000..e712d04 --- /dev/null +++ b/src/depiction_targeted_preproc/panel/schema.py @@ -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) diff --git a/src/depiction_targeted_preproc/panel/schema/panel_main.resource.yaml b/src/depiction_targeted_preproc/panel/schema/panel_main.resource.yaml deleted file mode 100644 index 863aa9e..0000000 --- a/src/depiction_targeted_preproc/panel/schema/panel_main.resource.yaml +++ /dev/null @@ -1,8 +0,0 @@ -fields: - - name: label - type: string - - name: mass - type: number - - name: type - type: string - categories: [target, standard] diff --git a/src/depiction_targeted_preproc/panel/schema/panel_visualize.resource.yaml b/src/depiction_targeted_preproc/panel/schema/panel_visualize.resource.yaml deleted file mode 100644 index da2d912..0000000 --- a/src/depiction_targeted_preproc/panel/schema/panel_visualize.resource.yaml +++ /dev/null @@ -1,7 +0,0 @@ -fields: - - name: label - type: string - - name: mass - type: number - - name: tol - type: number