Skip to content

Feature/web#235

Merged
cenwangumass merged 13 commits into
masterfrom
feature/web
Jun 2, 2026
Merged

Feature/web#235
cenwangumass merged 13 commits into
masterfrom
feature/web

Conversation

@cenwangumass
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread simopt/web/server.py Fixed
Comment thread simopt/web/server.py

import json

with config_path.open() as f:
Comment thread simopt/web/server.py
while the background thread is still writing to the file.
"""
path = RESULTS_DIR / run_id / "experiment.log"
if not path.exists():
Comment thread simopt/web/server.py
if not path.exists():
return Response(content="", media_type="text/plain")
try:
with path.open(encoding="utf-8", errors="replace") as f:
Comment thread simopt/web/server.py
Content-Length errors while update_status() is still rewriting the file.
"""
path = RESULTS_DIR / run_id / "index.html"
if not path.exists():
Comment thread simopt/web/server.py
model_default.__class__, "config_class", None
)
params += extract_params_from_config(model_config_cls)
except Exception:
Comment thread simopt/test.py Fixed
Comment thread simopt/test.py Fixed
Comment thread simopt/test.py Fixed
Comment thread simopt/test.py Fixed
Comment thread simopt/web/server.py
"AREA_MEAN": PlotType.AREA_MEAN,
"AREA_STD_DEV": PlotType.AREA_STD_DEV,
}
plot_type_enum = plot_type_map[plot_type_name]
Comment thread simopt/web/server.py
def get_results(experiment_id: str):
"""Get results for an experiment."""
path = Path(f"svelte-app/results/{experiment_id}")
images = [f"svelte-app/results/{experiment_id}/{p.name}" for p in path.glob("*.png")]
@cenwangumass cenwangumass merged commit c09ce59 into master Jun 2, 2026
4 of 5 checks passed
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.

3 participants