From d56ba3134973dadcea1fd62f4f1f39acabac34e9 Mon Sep 17 00:00:00 2001 From: Abhishek Yenpure Date: Fri, 11 Jul 2025 20:01:36 -0700 Subject: [PATCH 1/2] fix: Use unfiltered variable lists in load_variables to include all selections - Fixed issue where only variables matching current search filter were loaded - Now uses original source lists with full selection state arrays - Ensures all selected variables are loaded regardless of active search filter - Added safety checks for array existence and length matching --- quickview/interface.py | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/quickview/interface.py b/quickview/interface.py index d134cad..5c000f7 100644 --- a/quickview/interface.py +++ b/quickview/interface.py @@ -370,18 +370,24 @@ def load_variables(self): surf = [] mid = [] intf = [] - if len(self.state.surface_vars) > 0: - v_surf = np.array(self.state.surface_vars) - f_surf = np.array(self.state.surface_vars_state) - surf = v_surf[f_surf].tolist() - if len(self.state.midpoint_vars) > 0: - v_mid = np.array(self.state.midpoint_vars) - f_mid = np.array(self.state.midpoint_vars_state) - mid = v_mid[f_mid].tolist() - if len(self.state.interface_vars) > 0: - v_intf = np.array(self.state.interface_vars) - f_intf = np.array(self.state.interface_vars_state) - intf = v_intf[f_intf].tolist() + # Use the original unfiltered lists from source and the full selection state + if len(self.source.surface_vars) > 0: + v_surf = np.array(self.source.surface_vars) + f_surf = ( + self.surface_vars_state + ) # Use the full state array, not the filtered one + if len(v_surf) == len(f_surf): # Ensure arrays are same length + surf = v_surf[f_surf].tolist() + if len(self.source.midpoint_vars) > 0: + v_mid = np.array(self.source.midpoint_vars) + f_mid = self.midpoint_vars_state # Use the full state array + if len(v_mid) == len(f_mid): # Ensure arrays are same length + mid = v_mid[f_mid].tolist() + if len(self.source.interface_vars) > 0: + v_intf = np.array(self.source.interface_vars) + f_intf = self.interface_vars_state # Use the full state array + if len(v_intf) == len(f_intf): # Ensure arrays are same length + intf = v_intf[f_intf].tolist() self.source.LoadVariables(surf, mid, intf) vars = surf + mid + intf From c6cf4ea7d709fb5f843cb960cdc656781c1c6e1d Mon Sep 17 00:00:00 2001 From: Abhishek Yenpure Date: Mon, 21 Jul 2025 09:30:55 -0700 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=200.1.2=20=E2=86=92=200.1.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- pyproject.toml | 2 +- quickview/__init__.py | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index b5993b3..9d3d2f0 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.1.2 +current_version = 0.1.3 commit = True tag = True diff --git a/pyproject.toml b/pyproject.toml index 8f4ec09..aaa96f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "quickview" -version = "0.1.2" +version = "0.1.3" description = "An application to explore/analyze data for atmosphere component for E3SM" authors = [ {name = "Kitware Inc."}, diff --git a/quickview/__init__.py b/quickview/__init__.py index ef9dc08..7b6d16e 100644 --- a/quickview/__init__.py +++ b/quickview/__init__.py @@ -1,5 +1,5 @@ """QuickView: Visual Analysis for E3SM Atmosphere Data.""" -__version__ = "0.1.2" +__version__ = "0.1.3" __author__ = "Kitware Inc." __license__ = "Apache-2.0" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c68d7b9..191801b 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "app" -version = "0.1.2" +version = "0.1.3" description = "QuickView: Visual Analyis for E3SM Atmosphere Data" authors = ["Kitware"] license = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3c389fb..7348f2b 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "QuickView", - "version": "0.1.2" + "version": "0.1.3" }, "tauri": { "allowlist": {