Skip to content

Commit b0727ef

Browse files
justushelotupui
andauthored
Add two-output graph for visualization.py. Add csv validation for dashboard. (#52)
- Add two-output option for visualization.py similar to Matlab implementation. - Add csv validation to dashboard to catch incorrect delimiters or incorrect column names. - Add two-output into simdec_app.py - Ship from panel to wasm (Netlify build successfull). - Closes #45. Closes #50. Closes #53. --------- Co-authored-by: Pamphile Roy <23188539+tupui@users.noreply.github.com>
1 parent 5cedad3 commit b0727ef

10 files changed

Lines changed: 10493 additions & 210 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ app.html
3838

3939
# Virtual environment
4040
venv/
41+
.venv/
42+
.wasm-build-venv/
43+
44+
# Local Netlify folder
45+
.netlify

netlify.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[build]
2+
command = "npm run build"
3+
publish = "dist/pyodide"
4+
5+
[dev]
6+
# Prevent Netlify from watching these folders for changes
7+
ignore = ["dist", ".wasm-build-venv", "panel/data"]
8+
# Force it to use a specific port to avoid EADDRINUSE
9+
port = 8888
10+
11+
[build.environment]
12+
PYTHON_VERSION = "3.11"
13+
14+
[[headers]]
15+
for = "/*"
16+
[headers.values]
17+
Cross-Origin-Embedder-Policy = "require-corp"
18+
Cross-Origin-Opener-Policy = "same-origin"

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "simdec-wasm-site",
3+
"private": true,
4+
"version": "1.0.0",
5+
"description": "Static Panel WASM build wrapper",
6+
"scripts": {
7+
"build": "bash ./scripts/build_wasm.sh",
8+
"serve": "mkdir -p dist/pyodide && python3 -m http.server 8000 --directory dist/pyodide"
9+
}
10+
}

panel/data/stress.csv

Lines changed: 10001 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)