Skip to content

Commit

Permalink
Fix incorrect type in grid_viz_service (#1190)
Browse files Browse the repository at this point in the history
* Fix incorrect type in grid_viz_service

* Update subsurface.yml

Co-authored-by: Anders Fredrik Kiær <[email protected]>
  • Loading branch information
HansKallekleiv and anders-kiaer authored Jan 18, 2023
1 parent d3dc886 commit 471b8ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/subsurface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
if [[ $(pip freeze) ]]; then
pip freeze | grep -vw "pip" | xargs pip uninstall -y
fi
pip install "shapely<2"
pip install "bleach<5" # https://github.com/equinor/webviz-config/issues/586
pip install "werkzeug<2.1" # ...while waiting for https://github.com/plotly/dash/issues/1992
pip install "selenium<4.3" # breaking change in selenium==4.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class PickResult:
cell_j: int
cell_k: int
intersection_point: List[float]
cell_property_value: Optional[float]
cell_property_value: Optional[np.ndarray]


# =============================================================================
Expand Down Expand Up @@ -482,7 +482,7 @@ def ray_pick(
k_ref = reference(0)
grid.ComputeCellStructuredCoords(cell_id, i_ref, j_ref, k_ref, True)

cell_property_val: Optional[float] = None
cell_property_val: Optional[np.ndarray] = None
if property_spec:
raw_cell_vals = _load_property_values(provider, realization, property_spec)
if raw_cell_vals is not None:
Expand Down

0 comments on commit 471b8ab

Please sign in to comment.