Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9c2aca1
fix(colorbar): simplifying attribute protocols
MaxNumerique Jan 29, 2026
13eec4a
fixing tests with workflow
MaxNumerique Jan 29, 2026
b6be71c
Apply prepare changes
MaxNumerique Jan 29, 2026
69083aa
rm comments
MaxNumerique Jan 29, 2026
3086f1a
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
MaxNumerique Jan 29, 2026
2510cfc
rm com
MaxNumerique Jan 29, 2026
16a8fe8
test scalar_range comparison
MaxNumerique Jan 30, 2026
6eaa40a
coms
MaxNumerique Jan 30, 2026
ac8183b
update mesh color map schemas to use flattened point arrays and remov…
MaxNumerique Jan 30, 2026
bbffeb3
Apply prepare changes
MaxNumerique Jan 30, 2026
4f09594
refacto scalar range and color map setup by integrating lookup table
MaxNumerique Jan 30, 2026
0afbe7e
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
MaxNumerique Jan 30, 2026
540e4ca
minimum adn maximum added to setupColorMap
MaxNumerique Jan 30, 2026
7460325
Apply prepare changes
MaxNumerique Jan 30, 2026
d89007a
fixed schemas
MaxNumerique Jan 30, 2026
5abce2a
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
MaxNumerique Jan 30, 2026
3411729
Apply prepare changes
MaxNumerique Jan 30, 2026
89fe79b
missed this one
MaxNumerique Jan 30, 2026
a36e482
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
MaxNumerique Jan 30, 2026
9b90ac5
Apply prepare changes
MaxNumerique Jan 30, 2026
dea10d7
removedAllPoints not needed
MaxNumerique Jan 30, 2026
e9d071d
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
MaxNumerique Jan 30, 2026
421fc92
new architecture
MaxNumerique Feb 3, 2026
04a8862
Apply prepare changes
MaxNumerique Feb 3, 2026
66ad44c
new architecture for attributes
MaxNumerique Feb 4, 2026
4f6cd7c
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
MaxNumerique Feb 4, 2026
f1500af
Merge branch 'next' of https://github.com/Geode-solutions/OpenGeodeWe…
MaxNumerique Feb 4, 2026
dfc7831
Apply prepare changes
MaxNumerique Feb 4, 2026
ddf89cb
rm this ?
MaxNumerique Feb 4, 2026
59413a5
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
MaxNumerique Feb 4, 2026
53c3800
Merge branch 'next' of https://github.com/Geode-solutions/OpenGeodeWe…
MaxNumerique Feb 4, 2026
f4273b8
Apply prepare changes
MaxNumerique Feb 4, 2026
4619214
rm unecessary rpcs from cells_protocols
MaxNumerique Feb 4, 2026
5aa1435
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
MaxNumerique Feb 4, 2026
65a335a
tests cells
MaxNumerique Feb 4, 2026
3cc448b
new architecture for tests
MaxNumerique Feb 4, 2026
aeddd92
pyproject.toml
MaxNumerique Feb 4, 2026
0c1272e
Merge branch 'next' of https://github.com/Geode-solutions/OpenGeodeWe…
JulienChampagnol Feb 12, 2026
8f59dac
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
JulienChampagnol Feb 12, 2026
842e3fd
Apply prepare changes
JulienChampagnol Feb 12, 2026
775ff21
tests okay
JulienChampagnol Feb 13, 2026
9bd6766
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
JulienChampagnol Feb 13, 2026
202839a
Apply prepare changes
JulienChampagnol Feb 13, 2026
cb336b5
test
JulienChampagnol Feb 13, 2026
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
168 changes: 96 additions & 72 deletions opengeodeweb_viewer_schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,24 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": [
"id",
"points"
"points",
"minimum",
"maximum"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -207,21 +210,24 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": [
"id",
"points"
"points",
"minimum",
"maximum"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -319,21 +325,24 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": [
"id",
"points"
"points",
"minimum",
"maximum"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -480,21 +489,24 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": [
"id",
"points"
"points",
"minimum",
"maximum"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -640,21 +652,24 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": [
"id",
"points"
"points",
"minimum",
"maximum"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -712,21 +727,24 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": [
"id",
"points"
"points",
"minimum",
"maximum"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -853,21 +871,24 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": [
"id",
"points"
"points",
"minimum",
"maximum"
],
"additionalProperties": false
},
Expand Down Expand Up @@ -945,21 +966,24 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": [
"id",
"points"
"points",
"minimum",
"maximum"
],
"additionalProperties": false
},
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ wslink==1.12.4
yarl>=1
# via aiohttp

opengeodeweb-microservice==1.*,>=1.0.13rc1
4 changes: 2 additions & 2 deletions src/opengeodeweb_viewer/rpc/mesh/cells/cells_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def setMeshCellsVertexColorMap(self, rpc_params: RpcParams) -> None:
self.mesh_cells_prefix,
)
params = schemas.VertexColorMap.from_dict(rpc_params)
self.setupColorMap(params.id, params.points)
self.setupColorMap(params.id, params.points, params.minimum, params.maximum)

@exportRpc(mesh_cells_prefix + mesh_cells_schemas_dict["cell_color_map"]["rpc"])
def setMeshCellsCellColorMap(self, rpc_params: RpcParams) -> None:
Expand All @@ -104,4 +104,4 @@ def setMeshCellsCellColorMap(self, rpc_params: RpcParams) -> None:
self.mesh_cells_prefix,
)
params = schemas.CellColorMap.from_dict(rpc_params)
self.setupColorMap(params.id, params.points)
self.setupColorMap(params.id, params.points, params.minimum, params.maximum)
19 changes: 10 additions & 9 deletions src/opengeodeweb_viewer/rpc/mesh/cells/schemas/cell_color_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": ["id", "points"],
"required": ["id", "points", "minimum", "maximum"],
"additionalProperties": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ def __post_init__(self) -> None:
print(self, flush=True)

id: str
points: List[List[float]]
maximum: float
minimum: float
points: List[float]
"""Flat array of [value, r, g, b, ...]"""
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@
},
"points": {
"type": "array",
"description": "Flat array of [value, r, g, b, ...]",
"items": {
"type": "array",
"description": "[value, r, g, b]",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4
"type": "number"
},
"minLength": 2
"minItems": 8
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
},
"required": ["id", "points"],
"required": ["id", "points", "minimum", "maximum"],
"additionalProperties": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ def __post_init__(self) -> None:
print(self, flush=True)

id: str
points: List[List[float]]
maximum: float
minimum: float
points: List[float]
"""Flat array of [value, r, g, b, ...]"""
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def setMeshEdgesVertexColorMap(self, rpc_params: RpcParams) -> None:
self.mesh_edges_prefix,
)
params = schemas.VertexColorMap.from_dict(rpc_params)
self.setupColorMap(params.id, params.points)
self.setupColorMap(params.id, params.points, params.minimum, params.maximum)

@exportRpc(mesh_edges_prefix + mesh_edges_schemas_dict["edge_attribute"]["rpc"])
def setMeshEdgesEdgeAttribute(self, rpc_params: RpcParams) -> None:
Expand Down
Loading