Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Model init time selection #150

Merged
merged 7 commits into from
Feb 16, 2023
Merged

Model init time selection #150

merged 7 commits into from
Feb 16, 2023

Conversation

esheehan-gsl
Copy link
Contributor

Update the application to fetch available model initialization times based on
what's available in a Zarr array and allow users to select the init time they'd
like to see.

This PR is stacked on #147.

@esheehan-gsl esheehan-gsl self-assigned this Feb 8, 2023
@esheehan-gsl esheehan-gsl added the stacked This PR is part of a series of PRs that represent changes of a single change broken up for review label Feb 8, 2023
@esheehan-gsl esheehan-gsl changed the base branch from main to api-zarr-data February 8, 2023 20:51
@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Code Coverage

Package Line Rate Health
src.unified_graphics 98%
tests 79%
Summary 86% (319 / 369)

Minimum allowed line rate is 60%

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Code Coverage

Package Line Rate Branch Rate Health
js 22% 70%
js.components.Chart2DHistogram 0% 0%
js.components.ChartContainer 0% 0%
js.components.ChartElement 0% 0%
js.components.ChartHistogram 0% 0%
js.components.ChartMap 0% 0%
js.components.ColorRamp 0% 0%
js.components.DiagnosticView 0% 0%
js.components.Header 0% 0%
js.components.LoadingSpinner 0% 0%
Summary 2% (33 / 2061) 23% (7 / 31)

Minimum allowed line rate is 0%

@esheehan-gsl esheehan-gsl temporarily deployed to vlab February 8, 2023 20:55 — with GitHub Actions Inactive
@esheehan-gsl esheehan-gsl temporarily deployed to vlab February 8, 2023 20:56 — with GitHub Actions Inactive
@esheehan-gsl esheehan-gsl marked this pull request as ready for review February 10, 2023 16:19
The frontend is going to need a list of available initialization times
to send the correct requests for data.
We need to separate the endpoints for each loop because the loops may
have different numbers of observations. So there will need to be another
intermediate endpoint responsible for providing URLs that fetch each
loop.
I added the /diag/<variable>/<init_time>/ route to handle fetching the
available loops. This, coincidentally, took care of the bug with the
endpoint that lacked a trailing slash. (Maybe I could've just fixed that
without breaking anything…). I had to update the URL for the diag data
otherwise it would have conflicted with the list loops endpoint, but the
get diag tests are all failing right now because that hasn't actually
been implemented.
Now all of the endpoints should be returning diag data just for one
loop.
Updated the Svelte components to load the init times for each variable.
I decided to replace the model selection (which currently does nothing)
with the variable selection, because variable selection (currently) has
to happen before we know what init times are available. I think this is
backwards and probably needs to change in a future refactor.

I updated the app to fetch each loop separately, since we can't combine
loops reliably (because they may have a different number of
observations).
@esheehan-gsl esheehan-gsl merged commit 882d682 into api-zarr-data Feb 16, 2023
@esheehan-gsl esheehan-gsl deleted the 67-ui-zarr-data branch February 16, 2023 23:19
@esheehan-gsl esheehan-gsl temporarily deployed to vlab February 16, 2023 23:20 — with GitHub Actions Inactive
@esheehan-gsl esheehan-gsl temporarily deployed to vlab February 16, 2023 23:20 — with GitHub Actions Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stacked This PR is part of a series of PRs that represent changes of a single change broken up for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant