Skip to content

Commit

Permalink
Add dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
kks32 committed Oct 14, 2024
1 parent 54849b3 commit 01d815a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "GNS Development Container",
"image": "ghcr.io/geoelements/gns:v2",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-toolsai.jupyter"
]
}
},
"remoteUser": "root",
"mounts": [
"source=${localWorkspaceFolder},target=/app,type=bind,consistency=cached"
]
}
6 changes: 3 additions & 3 deletions gns/render_rollout.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ def write_vtk(self):
static_particle_value = (
np.max(material_property) + 1
) # Use a value outside the material property range
color_field[
particle_type == 3
] = static_particle_value # Assumes static particle type = 3
color_field[particle_type == 3] = (
static_particle_value # Assumes static particle type = 3
)
data["color"] = color_field
else:
# If no material property, use particle type for color
Expand Down

0 comments on commit 01d815a

Please sign in to comment.