Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.17
current_version = 0.1.18
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "quickview"
version = "0.1.17"
version = "0.1.18"
description = "An application to explore/analyze data for atmosphere component for E3SM"
authors = [
{name = "Kitware Inc."},
Expand Down
2 changes: 1 addition & 1 deletion quickview/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""QuickView: Visual Analysis for E3SM Atmosphere Data."""

__version__ = "0.1.17"
__version__ = "0.1.18"
__author__ = "Kitware Inc."
__license__ = "Apache-2.0"
19 changes: 18 additions & 1 deletion quickview/view_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,20 @@ def __init__(self, source: EAMVisSource, server, state):
self.registry = ViewRegistry() # Central registry for view management
self.to_delete = []

# Register state change listener for pipeline_valid
self.state.change("pipeline_valid")(self._on_pipeline_valid_change)

def _on_pipeline_valid_change(self, pipeline_valid, **kwargs):
"""Clear view registry when pipeline becomes invalid."""
if not pipeline_valid:
# Clear all views and variables from registry
self.registry.clear()
# Clear widgets and colors tracking
del self.state.views[:]
del self.state.layout[:]
self.state.dirty("views")
self.state.dirty("layout")

def update_views_for_timestep(self):
if len(self.registry) == 0:
return
Expand Down Expand Up @@ -378,11 +392,14 @@ def rebuild_visualization_layout(self, cached_layout=None):
source = self.source
long = state.cliplong
lat = state.cliplat
tstamp = state.tstamp
time = 0.0 if len(self.state.timesteps) == 0 else self.state.timesteps[tstamp]

source.UpdateLev(self.state.midpoint, self.state.interface)
source.ApplyClipping(long, lat)
source.UpdateCenter(self.state.center)
source.UpdateProjection(self.state.projection)
source.UpdatePipeline()
source.UpdatePipeline(time)
surface_vars = source.vars.get("surface", [])
midpoint_vars = source.vars.get("midpoint", [])
interface_vars = source.vars.get("interface", [])
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "app"
version = "0.1.17"
version = "0.1.18"
description = "QuickView: Visual Analyis for E3SM Atmosphere Data"
authors = ["Kitware"]
license = ""
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "QuickView",
"version": "0.1.17"
"version": "0.1.18"
},
"tauri": {
"allowlist": {
Expand Down
Loading