Skip to content

Commit

Permalink
Better default values for SegyViewer (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Kallekleiv authored Nov 21, 2019
1 parent 5ad6cda commit a6b9e68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webviz_subsurface/containers/_segy_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def update_state(self, cubepath, **kwargs):
cube = load_cube_data(get_path(cubepath))
state = {
"cubepath": cubepath,
"iline": int(cube.ilines[0]),
"xline": int(cube.xlines[0]),
"zslice": float(cube.zslices[0]),
"iline": int(cube.ilines[int(len(cube.ilines) / 2)]),
"xline": int(cube.xlines[int(len(cube.xlines) / 2)]),
"zslice": float(cube.zslices[int(len(cube.zslices) / 2)]),
"min_value": float(f"{round(cube.values.min(), 2):2f}"),
"max_value": float(f"{round(cube.values.max(), 2):2f}"),
"color_min_value": float(f"{round(cube.values.min(), 2):2f}"),
Expand Down

0 comments on commit a6b9e68

Please sign in to comment.