Introduce opt-in scientific core (massive_core) with numerics, diagnostics, EnKF, steppers and engine integration#47
Merged
Adlgr87 merged 1 commit intoMay 30, 2026
Conversation
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.
Motivation
euler_maruyama,adaptive) while preserving the historical execution path by default.Description
massive_corepackage that exposesScientificRuntimeConfig, scientific runners (run_scientific_simulation,run_energy_scientific_simulation,run_multilayer_scientific_simulation), diagnostics (build_scientific_report,ScientificReport), data-assimilation (EnsembleKalmanFilter, assimilation workflow), metalearning adapters (CfC dataset builders andMetaRegimeSelector) and canonical benchmarks.massive_core.numericsincludingsolvers(adaptive solver),steppers(EulerMaruyamaStepper,AdaptiveStepper,create_stepper) andstabilitydiagnostics, and wire them intoenergy_engine.pyandmultilayer_engine.pyvia an opt-inscientific_configthat selects a stepper.massive_core.physics,massive_core.dynamical_systems,massive_core.network_inference, andmassive_core.multiscaleto support entropy/free-energy, bifurcation detection, network reconstruction, multiscale engines and hydrodynamic/perturbation helpers.massive_core.__getattr__lazy-loading to preserve legacy exports (e.g.simular,resumen_historial) while promoting the new import surface.app.pyto optionally inject a raw analytics snippet via the newMASSIVE_ANALYTICS_SNIPPETenvironment variable and add the variable to.env.example.README.md, newdocs/*,math_physics_extension_plan_ES.md) and updatemkdocs.ymlandrequirements.txtto include docs theme; add.gitignoreentry forsite/.tests/covering data-assimilation workflows, diagnostics, numerics, engine integration and benchmarks.Testing
python -m pytest tests/and all tests intests/completed successfully.test_scientific_integration.pyto verifycreate_stepper('euler_maruyama')reproduces legacy deterministic paths and that numeric diagnostics are produced.test_scientific_report.py,test_data_assimilation_workflow.py) and benchmark/metalearning tests (test_scientific_benchmarks_and_cfc_data.py) which all passed.Codex Task
Summary by cubic
Introduces an opt-in scientific core
massive_corewith numerics, diagnostics, EnKF, steppers, benchmarks, and high-level scientific runners. Engines keep legacy behavior by default; enablingscientific_configactivates stable steppers and scientific reports.New Features
massive_core: scientific runners (run_scientific_simulation,run_energy_scientific_simulation,run_multilayer_scientific_simulation) andScientificRuntimeConfig.EulerMaruyama/Adaptivesteppers, stability diagnostics;create_stepperintegrated into energy/multilayer engines.build_scientific_report,ScientificReport, canonical benchmarks.EnsembleKalmanFilter,assimilate_history_observations; CfC dataset builders andMetaRegimeSelector.MASSIVE_ANALYTICS_SNIPPET; expanded docs and a full test suite.Migration
scientific_config={"solver": "euler_maruyama" | "adaptive", "enable_scientific_report": true}to engines or use the scientific runners.MASSIVE_ANALYTICS_SNIPPETin the environment.mkdocs-materialis installed.Written for commit e2aebaa. Summary will update on new commits.