fix(web): verbose logging, experiment loading fixes, and --doctor command#7
Merged
fix(web): verbose logging, experiment loading fixes, and --doctor command#7
Conversation
…ent loading - Add structured logging module (spkmc/web/logging.py) with --verbose support - Fix headless mode for non-interactive environments - Fix experiment auto-loading on dashboard - Stop silently swallowing experiment loading errors in ExperimentManager - Update architecture and usage docs
…zation Add --doctor flag to scan and fix legacy data.json files in-place. Extend ExperimentConfig.from_dict() to normalize both legacy keys (network_type, network_size, N, time_max, time_points) and legacy network type values (erdos_renyi, cn, scale_free, complete_graph, etc.) to current short codes (er, sf, cg, rrn). Case-insensitive. Doctor validates fixed data before writing and is idempotent.
2504346 to
c56cec5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--server.headless trueand auto-open browser viawebbrowser.open()in a daemon threadSPKMC_EXPERIMENTS_DIRenv var--verboseflag: Structured, color-coded debug logging to stderrexperiments --doctor: Scan and fix legacydata.jsonfiles in-place, normalizing both keys (network_type->network,N->nodes, etc.) and values (erdos_renyi->er,cn->sf, etc.)ExperimentConfig.from_dict()now handles all legacy key/value variants automatically on loaddocs/gpu_integration_plan.md, update architecture and usage docsCommits
chore: clean up artifacts and extend .gitignorefeat(web): add --verbose debug logging, fix headless mode and experiment loadingfeat(cli): add experiments --doctor with resilient legacy key normalizationTest plan
pytest tests/ --ignore=tests/e2e- all passspkmc experiments --doctorfixes legacy data.json files--doctortwice is idempotent (second run reports all OK)