Skip to content

Commit 5944709

Browse files
Fix df + remove sweep button (#125)
* Show coords in top left of plot (fixes #82) * Added formatting to coord infobox * Upload observations + wip try to render but scales are not converting from domain to pixel, it stays domain Refs #68 * Fix type error * Display temp in kelvin so it renders on plot * Theta and q now shown correctly on profile plot * Also render sounding on skew-t plot and include in legend * remove observationpoint dead code * Include obs data in share URL * typo * Flatten death valley preset * FOrmat * Make df preset same runtime * Remove sweep button Fixes #78 --------- Co-authored-by: Peter Kalverla <peter.kalverla@gmx.com>
1 parent c97cba9 commit 5944709

7 files changed

Lines changed: 15 additions & 392 deletions

File tree

apps/class-solid/src/components/PermutationSweepButton.tsx

Lines changed: 0 additions & 120 deletions
This file was deleted.

apps/class-solid/src/components/PermutationsList.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
setPermutationConfigInExperiment,
1515
swapPermutationAndReferenceConfiguration,
1616
} from "~/lib/store";
17-
import { PermutationSweepButton } from "./PermutationSweepButton";
1817
import {
1918
MdiCakeVariantOutline,
2019
MdiCog,
@@ -303,10 +302,6 @@ export function PermutationsList(props: {
303302
experiment={props.experiment}
304303
experimentIndex={props.experimentIndex}
305304
/>
306-
<PermutationSweepButton
307-
experiment={props.experiment}
308-
experimentIndex={props.experimentIndex}
309-
/>
310305
</legend>
311306
<ul class="max-h-40 overflow-auto">
312307
<For each={props.experiment.config.permutations}>
Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
{
22
"name": "Death Valley",
33
"description": "Preset with Death Valley conditions",
4-
"initialState": {
5-
"theta_0": 323,
6-
"h_0": 200,
7-
"dtheta_0": 1,
8-
"q_0": 0.008,
9-
"dq_0": -0.001
10-
},
11-
"timeControl": {
12-
"dt": 60,
13-
"runtime": 4320
14-
},
15-
"mixedLayer": {
16-
"wtheta": 0.1,
17-
"advtheta": 0,
18-
"gammatheta": 0.006,
19-
"wq": 0.0001,
20-
"advq": 0,
21-
"gammaq": 0,
22-
"divU": 0,
23-
"beta": 0.2
24-
}
4+
"theta_0": 323,
5+
"h_0": 200,
6+
"dtheta_0": 1,
7+
"q_0": 0.008,
8+
"dq_0": -0.001,
9+
"dt": 60,
10+
"runtime": 43200,
11+
"wtheta": [0.1],
12+
"advtheta": 0,
13+
"gammatheta": 0.006,
14+
"wq": 0.0001,
15+
"advq": 0,
16+
"gammaq": 0,
17+
"divU": 0,
18+
"beta": 0.2
2519
}

apps/class-solid/tests/share.spec.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,35 +44,3 @@ test("Create share link from an experiment", async ({ page }) => {
4444

4545
// TODO: finalheight is gone; implement alternative check to see that experiment finished
4646
});
47-
48-
test("Given large app state, sharing is not possible", async ({ page }) => {
49-
test.skip(
50-
true,
51-
"Plotting is too slow, to render 13 experiments with 24 permuations each",
52-
);
53-
await page.goto("/");
54-
55-
// Create a new experiment
56-
await page.getByRole("button", { name: "Add Start from preset" }).click();
57-
await page
58-
.getByRole("button", { name: "Default The classic default" })
59-
.click();
60-
await page.getByRole("button", { name: "Run" }).click();
61-
// Add permutation sweep
62-
await page.getByRole("button", { name: "S", exact: true }).click();
63-
await page.getByRole("button", { name: "Perform sweep" }).click();
64-
65-
// Duplicate the experiment 12 times
66-
const times = 12;
67-
for (let i = 0; i < times; i++) {
68-
await page
69-
.getByLabel("Default", { exact: true })
70-
.getByRole("button", { name: "Duplicate experiment" })
71-
.click();
72-
}
73-
74-
await page.getByRole("button", { name: "Share" }).click();
75-
await page.waitForSelector(
76-
"text=Cannot share application state, it is too large. Please download each experiment by itself or make it smaller by removing permutations and/or experiments.",
77-
);
78-
});

packages/class/package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@
4747
"default": "./dist/validate.js",
4848
"types": "./dist/validate.d.ts"
4949
}
50-
},
51-
"./sweep": {
52-
"import": {
53-
"default": "./dist/sweep.js",
54-
"types": "./dist/sweep.d.ts"
55-
}
5650
}
5751
},
5852
"homepage": "https://classmodel.github.io/class-web",

packages/class/src/sweep.test.ts

Lines changed: 0 additions & 166 deletions
This file was deleted.

0 commit comments

Comments
 (0)