Ejemplo n.º 1
0
    def conf_schema(self):
        json = {
            "title": "VerifyNode configure",
            "type": "object",
            "properties": {
                "df1_col": {
                    "type": "string",
                    "description": "dataframe1 column name"
                },
                "df2_col": {
                    "type": "string",
                    "description": "dataframe2 column name"
                }
            },
            "required": ["df1_col", "df2_col"],
        }

        ui = {
            "df1_col": {
                "ui:widget": "text"
            },
            "df2_col": {
                "ui:widget": "text"
            }
        }
        return ConfSchema(json=json, ui=ui)
Ejemplo n.º 2
0
    def conf_schema(self):
        json = {
            "title": "PointNode configure",
            "type": "object",
            "properties": {
                "npts": {
                    "type": "number",
                    "description": "number of data points",
                    "minimum": 10
                },
                "npartitions": {
                    "type": "number",
                    "description": "num of partitions in the Dask dataframe",
                    "minimum": 1
                }
            },
            "required": ["npts", "npartitions"],
        }

        ui = {
            "npts": {
                "ui:widget": "updown"
            },
            "npartitions": {
                "ui:widget": "updown"
            }
        }
        return ConfSchema(json=json, ui=ui)
Ejemplo n.º 3
0
 def conf_schema(self):
     return ConfSchema()