Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions community/surya/test_team/collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": "1.0.0",
"name": "test_team",
"dashboard_body": "{\"type\":\"canvas\",\"studioState\":{\"nodes\":[{\"id\":\"udf-node-1773245644655-789744122\",\"type\":\"simple-udf\",\"position\":{\"x\":-1971.1974907854274,\"y\":220.63427044998548},\"selected\":true,\"zIndex\":1,\"data\":{\"widgetKey\":\"udf_1773245644655-789744122\",\"widgetType\":\"simple-udf\",\"udfInfo\":{\"uniqueId\":\"1773245644655-789744122\",\"name\":\"udf_1\",\"udfType\":\"auto\",\"isTextEditor\":false,\"frameType\":null},\"udfName\":\"udf_1\",\"udfUniqueId\":\"1773245644655-789744122\",\"udfType\":\"auto\",\"config\":{\"title\":\"udf_1\",\"description\":\"UDF: udf_1 (auto)\",\"visible\":true,\"componentType\":\"udf\",\"renderType\":\"iframe\",\"canSend\":true,\"canReceive\":true,\"messageTypes\":[\"data\",\"filter\"],\"supportedFilters\":[\"spatial\",\"categorical\"],\"udfUniqueId\":\"1773245644655-789744122\",\"frameType\":null}},\"style\":{\"width\":700,\"height\":500},\"measured\":{\"width\":700,\"height\":500}}],\"edges\":[],\"viewport\":{\"x\":0,\"y\":0,\"zoom\":1},\"selectedNodes\":[\"udf-node-1773245644655-789744122\"],\"selectedEdges\":[],\"annotations\":[],\"outlineItems\":[],\"isToolbarOpen\":true,\"isSidebarOpen\":true,\"sidebarWidth\":280,\"currentTool\":\"select\",\"isPresentationMode\":false,\"isCanvasLocked\":false,\"edgeDisplayMode\":\"floating\",\"lastUpdated\":1773245645696,\"selectedUdf\":0},\"canvas_metadata\":{\"folderName\":\"test_team\",\"gitRepo\":\"fusedio/udfs/community\"}}"
}
3 changes: 3 additions & 0 deletions community/surya/test_team/udf_1/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!--fused:readme-->
Exported from Fused UDF Workbench

68 changes: 68 additions & 0 deletions community/surya/test_team/udf_1/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"version": "0.0.3",
"job_config": {
"version": "0.0.3",
"name": null,
"steps": [
{
"type": "udf",
"udf": {
"type": "geopandas_v2",
"name": "udf_1",
"entrypoint": "udf",
"parameters": {},
"metadata": {
"fused:name": "udf_1",
"fused:slug": "udf_1",
"fused:hasDefaultName": true,
"fused:vizConfig": {
"tileLayer": {
"@@type": "TileLayer",
"minZoom": 0,
"maxZoom": 19,
"tileSize": 256
},
"rasterLayer": {
"@@type": "BitmapLayer",
"pickable": true
},
"vectorLayer": {
"@@type": "GeoJsonLayer",
"stroked": true,
"filled": false,
"pickable": true,
"lineWidthMinPixels": 1,
"pointRadiusMinPixels": 1,
"getLineColor": {
"@@function": "colorContinuous",
"attr": "value",
"domain": [
0,
10
],
"steps": 20,
"colors": "BurgYl",
"nullColor": [
184,
184,
184
]
},
"getFillColor": [
208,
208,
208,
40
]
}
},
"fused:udfType": "auto"
},
"source": "udf_1.py",
"headers": []
}
}
],
"metadata": null
}
}
5 changes: 5 additions & 0 deletions community/surya/test_team/udf_1/udf_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@fused.udf
def udf(name: str = "world"):
import pandas as pd

return pd.DataFrame({"hello": [name]})
Loading