Skip to content

Fix/state continent level - #169

Merged
jourdain merged 24 commits into
masterfrom
fix/state-continent-level
Nov 23, 2026
Merged

jourdain merged 24 commits into
masterfrom
fix/state-continent-level

Conversation

@jourdain

Copy link
Copy Markdown
Collaborator

No description provided.

Export continent_level as layout.continent-level and restore it on import.
Read the extended layout keys with defaults so older state files reset grid
spacing, map center and coastlines to the UI defaults instead of keeping the
current session values, and files missing some keys no longer raise KeyError.
Export the remaining user-adjustable colormap fields (ticks, preset
category, out-of-range cut, NaN color, independent bands, diverging mode
with epsilon and abs_max). On import, apply epsilon/abs_max after the
diverging watcher has settled, since entering diverging mode recomputes
abs_max from the data and would discard the saved value.

Also align the animation step with the restored index of the active
track (changing the track resets the step to 0), and turn cursor probing
off when importing a state since it is a transient interaction mode.
Start the app headless on a generated simulation file matching the
bundled ne30pg2 connectivity, then check that an exported state
re-imports unchanged (coastlines, colormap incl. diverging parameters),
that probing is turned off and the animation step follows the restored
index, and that legacy or partial layout sections fall back to defaults.

Run the suite in CI under xvfb and document how to run it locally.
codespell only reads .codespellrc, which already lists these words in
ignore-words-list.
ViewManager stored asyncio.get_event_loop() at construction, which is
deprecated outside a running loop (DeprecationWarning on 3.12-3.13, no
implicit loop on 3.14). It also implicitly provided the loop that
widgets later schedule startup tasks on.

Create and register the loop once at the start of EAMApp, and resolve
the running loop when the delayed render is scheduled on size updates.
The install docs create environments with Python 3.14 while
quickview-env.yml pins 3.13. Build the CI environment from the same file
with the Python version taken from a matrix.
import_state only schedules _import_state and returns None, so awaiting
it raised a TypeError at startup (the state was still loaded by the
scheduled task).
Add a Command-line options section to the install guide (data,
connectivity and state pre-loading, file browser start directory, web
server port/host, perf timings), point the Chrysalis start-directory tip
to --workdir, and describe the quickview-chunk rechunking tool.
… options

Describe the name filter, Reset and Cancel buttons, the state menu
entries and the Save QuickView State file dialog, and the Import state
file button for state files stored on the server. Align button labels
with the UI.
Describe the jupyter extra and the E3SM QuickView launcher tile, and
point Tip 3 of the JupyterHub page to the launching page where the
commands it refers to are listed.
The selected-only and unselected-only lists used Vuetify's plain
substring filter, so pattern (text*, *text) and exact ("text") searches
only worked when the full list was shown.
Add the Capture viewport as png and Background Colors buttons, mention
the grid line and coastline options of Map Projection, and use the
State Import/Export name shown in the toolbar tooltip.
…screenshot

The page relied on a v2.9.4 screenshot that missed the pan/zoom
shortcuts and the Background Colors button.
Add Resources to the top navigation, rename the dev sidebar group to
Development with a Where Things Are entry, give both pages a title, and
point the toolbar icon hint to components/tools.py.
Comment thread src/e3sm_quickview/app.py
v3.enable_lab()


def ensure_event_loop():

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jourdain
jourdain merged commit 8bde990 into master Nov 23, 2026
3 checks passed
@jourdain
jourdain deleted the fix/state-continent-level branch November 23, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant