You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Polish CLASS - drop BMI, update runner, add output metadata (#138)
* Implement basic zoom; TODO: fix angle in skewT
* Add logarithmic zoom for skew-T diagram; TODO: T calculations should use real axis extent rather than fixes base/top pressure
* Fix skew-T lines responding to original extent instead of actual; now they don't tilt anymore
* Add panning effect, but it is stroboscopic and doesn't work for skewT yet
* combine side-effects for both axes in a single callback
* Remove animationframe
* Use produce to update both scales in a single call
* Don't update panstart; this fixes the jittering
* Also work in log space
* Make consistent for x-direction
* zoom towards cursor
* Add reset plot button
* Thinner lines
* Higher resolution plot
* Round time to steps of 10 minutes
* Use runClass from package, skipping BMI altogher + rich metadata for output vars; however, app/model hangs on second or third run
* Fix hanging issue: wrap only once...
* Make sure initial state is included in output
* Reset pan/zoom when variable changes
* formatting
* Use output metadata in plot labels and variable pickers
* ditch BMI
* Fix xlabel in timeseries plot; fix axes extent for non-time on x-axis
* Expose output freq + document runClass
Moved docstring of bmi.ts:BmiClass:run() to runClass
---------
Co-authored-by: sverhoeven <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,10 +117,8 @@ by [Kobalte](https://kobalte.dev/docs/core/overview/introduction) and
117
117
application and tweaked further as seen fit. It can also do charts, using
118
118
[chart.js](https://www.chartjs.org/), though we might deviate from that later.
119
119
120
-
To expose the model in a standard way we use the [Basic Model Interface (BMI)](https://bmi.readthedocs.io/).
121
-
122
120
To prevent the user interface from getting blocked by running the model we use a [Web worker](https://developer.mozilla.org/en-US/docs/Web/API/Worker) to run the computation in a background task/thread.
123
-
A Web worker uses messages passing to communicate, this does not fit with the Basic Model Interface so we use [comlink](https://github.com/GoogleChromeLabs/comlink) to wrap the Web Worker in a BMI class.
121
+
We use [comlink](https://github.com/GoogleChromeLabs/comlink) to wrap the Web Worker so it behaves the same as if the runner was used directly inside the main thread.
124
122
125
123
To format and lint the code, we use [biome](https://biomejs.dev/) as it combines eslint, prettier in one package.
0 commit comments