solarwindpy 0.0.1.dev0__py3-none-any.whl → 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of solarwindpy might be problematic. Click here for more details.
- plans/.velocity/metrics.json +96 -0
- plans/0-overview-template.md +268 -0
- plans/N-phase-template.md +106 -0
- plans/PLAN_AUDIT_SUMMARY.md +173 -0
- plans/TEMPLATE-USAGE-GUIDE.md +198 -0
- plans/__init__.py +1 -0
- plans/abandoned/compaction-agent-system/0-Overview.md +123 -0
- plans/abandoned/compaction-agent-system/agents-index-update-plan.md +109 -0
- plans/abandoned/compaction-agent-system/compacted_state.md +85 -0
- plans/abandoned/compaction-agent-system/implementation-plan.md +107 -0
- plans/abandoned/compaction-agent-system/system-validation-report.md +159 -0
- plans/abandoned/compaction-agent-system/usage-guide.md +210 -0
- plans/abandoned/hook-system-enhancement/0-Overview.md +214 -0
- plans/abandoned/hook-system-enhancement/1-Phase1-Core-Infrastructure.md +313 -0
- plans/abandoned/hook-system-enhancement/2-Phase2-Intelligent-Testing.md +385 -0
- plans/abandoned/hook-system-enhancement/3-Phase3-Physics-Validation.md +444 -0
- plans/abandoned/hook-system-enhancement/4-Phase4-Performance-Monitoring.md +458 -0
- plans/abandoned/hook-system-enhancement/5-Phase5-Developer-Experience.md +532 -0
- plans/abandoned/hook-system-enhancement/6-Implementation-Timeline.md +274 -0
- plans/abandoned/hook-system-enhancement/7-Risk-Management.md +376 -0
- plans/abandoned/hook-system-enhancement/8-Testing-Strategy.md +579 -0
- plans/abandoned/readthedocs-automation/0-Overview.md +247 -0
- plans/abandoned/readthedocs-automation/1-Emergency-Documentation-Fixes.md +270 -0
- plans/abandoned/readthedocs-automation/2-Template-System-Enhancement.md +811 -0
- plans/abandoned/readthedocs-automation/3-Quality-Audit-ReadTheDocs-Integration.md +844 -0
- plans/abandoned/readthedocs-automation/4-Plan-Consolidation-Cleanup.md +632 -0
- plans/abandoned/readthedocs-automation/9-Closeout.md +207 -0
- plans/abandoned/readthedocs-automation/ABANDONMENT_REASON.md +72 -0
- plans/cicd-architecture-redesign/0-Overview.md +193 -0
- plans/cicd-architecture-redesign/1-Workflow-Creation.md +103 -0
- plans/cicd-architecture-redesign/2-Version-Detection.md +123 -0
- plans/cicd-architecture-redesign/3-Deployment-Gates.md +169 -0
- plans/cicd-architecture-redesign/4-RC-Testing.md +194 -0
- plans/cicd-architecture-redesign/5-TestPyPI-Validation.md +264 -0
- plans/cicd-architecture-redesign/6-Production-Release.md +263 -0
- plans/cicd-architecture-redesign/7-Cleanup.md +243 -0
- plans/cicd-architecture-redesign/8-Documentation.md +285 -0
- plans/cicd-architecture-redesign/Closeout.md +225 -0
- plans/closeout-template.md +259 -0
- plans/completed/circular-import-audit/0-Overview.md +152 -0
- plans/completed/circular-import-audit/1-Static-Dependency-Analysis.md +62 -0
- plans/completed/circular-import-audit/2-Dynamic-Import-Testing.md +56 -0
- plans/completed/circular-import-audit/3-Performance-Impact-Assessment.md +56 -0
- plans/completed/circular-import-audit/4-Issue-Remediation.md +78 -0
- plans/completed/circular-import-audit/5-Preventive-Infrastructure.md +89 -0
- plans/completed/claude-settings-ecosystem-alignment/0-Overview.md +162 -0
- plans/completed/claude-settings-ecosystem-alignment/1-Security-Foundation.md +148 -0
- plans/completed/claude-settings-ecosystem-alignment/2-Hook-Integration.md +158 -0
- plans/completed/claude-settings-ecosystem-alignment/3-Agent-System-Integration.md +177 -0
- plans/completed/claude-settings-ecosystem-alignment/4-Enhanced-Workflow-Automation.md +159 -0
- plans/completed/claude-settings-ecosystem-alignment/5-Validation-Monitoring.md +181 -0
- plans/completed/claude-settings-ecosystem-alignment/compacted_session_state.md +290 -0
- plans/completed/combined_plan_with_checklist_documentation/1-Overview-and-Goals.md +51 -0
- plans/completed/combined_plan_with_checklist_documentation/2-Toolchain-and-Hosting.md +69 -0
- plans/completed/combined_plan_with_checklist_documentation/3-Repository-Structure.md +61 -0
- plans/completed/combined_plan_with_checklist_documentation/4-Configuration-and-Standards.md +70 -0
- plans/completed/combined_plan_with_checklist_documentation/5-Documentation-Content.md +62 -0
- plans/completed/combined_plan_with_checklist_documentation/6-CI-CD-and-Validation.md +58 -0
- plans/completed/combined_plan_with_checklist_documentation/7-Maintenance.md +55 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/0-Overview.md +135 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/1-Common-fixtures.md +59 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/10-power_laws.md +56 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/2-core.py-FitFunction.md +118 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/3-gaussians.py-Gaussian-GaussianNormalized-GaussianLn.md +69 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/4-trend_fits.py-TrendFit.md +99 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/5-plots.py-FFPlot.md +98 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/6-tex_info.py-TeXinfo.md +79 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/7-Justification.md +49 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/8-exponentials.md +64 -0
- plans/completed/combined_test_plan_with_checklist_fitfunctions/9-lines.md +58 -0
- plans/completed/combined_test_plan_with_checklist_plotting/0-Overview.md +142 -0
- plans/completed/combined_test_plan_with_checklist_plotting/1-base.py.md +90 -0
- plans/completed/combined_test_plan_with_checklist_plotting/10-labels-special.py.md +102 -0
- plans/completed/combined_test_plan_with_checklist_plotting/11-labels-chemistry.py.md +212 -0
- plans/completed/combined_test_plan_with_checklist_plotting/12-labels-composition.py.md +242 -0
- plans/completed/combined_test_plan_with_checklist_plotting/13-labels-datetime.py.md +247 -0
- plans/completed/combined_test_plan_with_checklist_plotting/14-labels-elemental_abundance.py.md +274 -0
- plans/completed/combined_test_plan_with_checklist_plotting/15-visual-validation.md +256 -0
- plans/completed/combined_test_plan_with_checklist_plotting/16-integration-testing.md +266 -0
- plans/completed/combined_test_plan_with_checklist_plotting/17-performance-benchmarks.md +267 -0
- plans/completed/combined_test_plan_with_checklist_plotting/18-Fixtures-and-Utilities.md +86 -0
- plans/completed/combined_test_plan_with_checklist_plotting/2-agg_plot.py.md +90 -0
- plans/completed/combined_test_plan_with_checklist_plotting/3-histograms.py.md +201 -0
- plans/completed/combined_test_plan_with_checklist_plotting/4-scatter.py.md +167 -0
- plans/completed/combined_test_plan_with_checklist_plotting/5-spiral.py.md +216 -0
- plans/completed/combined_test_plan_with_checklist_plotting/6-orbits.py.md +108 -0
- plans/completed/combined_test_plan_with_checklist_plotting/7-tools.py.md +86 -0
- plans/completed/combined_test_plan_with_checklist_plotting/8-select_data_from_figure.py.md +97 -0
- plans/completed/combined_test_plan_with_checklist_plotting/9-labels-base.py.md +88 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/.gitkeep +0 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/0-Overview.md +170 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/1-Package-Entry-Point-__init__.py.md +121 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/2-Core-Base-Classes-base.py.md +142 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/3-Plotting-Helpers-plots.py.md +123 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/4-LISIRD-Sub-package.md +119 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/5-Extrema-Calculator.md +103 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/6-Sunspot-Number-Sub-package.md +163 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/7-Sunspot-Number-Init.py.md +217 -0
- plans/completed/combined_test_plan_with_checklist_solar_activity/compacted_state.md +52 -0
- plans/completed/compaction-agent-modernization/0-Overview.md +156 -0
- plans/completed/compaction-agent-modernization/1-Architecture-Audit-Gap-Analysis.md +132 -0
- plans/completed/compaction-agent-modernization/2-Token-Baseline-Recalibration.md +153 -0
- plans/completed/compaction-agent-modernization/3-Agent-Reference-Updates.md +184 -0
- plans/completed/compaction-agent-modernization/4-Compression-Algorithm-Modernization.md +238 -0
- plans/completed/compaction-agent-modernization/5-Workflow-Integration-Streamlining.md +252 -0
- plans/completed/compaction-agent-modernization/6-Template-Structure-Optimization.md +240 -0
- plans/completed/compaction-agent-modernization/7-Integration-Testing-Validation.md +292 -0
- plans/completed/compaction-hook-enhancement/0-Overview.md +150 -0
- plans/completed/compaction-hook-enhancement/1-Token-Estimation-Enhancement.md +179 -0
- plans/completed/compaction-hook-enhancement/2-Compression-Intelligence.md +294 -0
- plans/completed/compaction-hook-enhancement/3-Git-Integration-Metadata.md +310 -0
- plans/completed/compaction-hook-enhancement/4-Session-Continuity-Features.md +358 -0
- plans/completed/compaction-hook-enhancement/5-Testing-Strategy.md +404 -0
- plans/completed/compaction-hook-enhancement/6-Integration-Roadmap.md +319 -0
- plans/completed/compaction-hook-enhancement/compacted_state.md +142 -0
- plans/completed/docstring-audit-enhancement/0-Overview.md +274 -0
- plans/completed/docstring-audit-enhancement/1-Infrastructure-Setup-and-Validation-Tools.md +206 -0
- plans/completed/docstring-audit-enhancement/2-Core-Physics-Modules-Enhancement.md +237 -0
- plans/completed/docstring-audit-enhancement/3-Fitfunctions-Mathematical-Modules-Enhancement.md +188 -0
- plans/completed/docstring-audit-enhancement/4-Plotting-Visualization-Modules-Enhancement.md +243 -0
- plans/completed/docstring-audit-enhancement/5-Specialized-Modules-Enhancement.md +216 -0
- plans/completed/docstring-audit-enhancement/6-Validation-and-Integration.md +216 -0
- plans/completed/fitfunctions-testing-implementation/0-Overview.md +130 -0
- plans/completed/fitfunctions-testing-implementation/1-Test-Infrastructure-Setup.md +79 -0
- plans/completed/fitfunctions-testing-implementation/2-Common-Fixtures-Test-Utilities.md +104 -0
- plans/completed/fitfunctions-testing-implementation/3-Core-FitFunction-Testing.md +168 -0
- plans/completed/fitfunctions-testing-implementation/4-Specialized-Function-Classes.md +210 -0
- plans/completed/fitfunctions-testing-implementation/5-Advanced-Classes-Testing.md +214 -0
- plans/completed/fitfunctions-testing-implementation/6-Plotting-Integration-Testing.md +231 -0
- plans/completed/fitfunctions-testing-implementation/7-Extended-Coverage-BONUS.md +184 -0
- plans/completed/numpy-docstring-conversion-plan/numpy-docstring-conversion-plan.md +118 -0
- plans/completed/pr-review-remediation/0-Overview.md +138 -0
- plans/completed/pr-review-remediation/1-Critical-Safety-Improvements.md +179 -0
- plans/completed/pr-review-remediation/2-Smart-Timeouts-Validation.md +399 -0
- plans/completed/pr-review-remediation/3-Enhanced-GitHub-Integration.md +258 -0
- plans/completed/pr-review-remediation/compacted_state.md +66 -0
- plans/completed/python-310-migration/0-Overview.md +390 -0
- plans/completed/python-310-migration/1-Planning-Setup.md +164 -0
- plans/completed/python-310-migration/2-Implementation.md +256 -0
- plans/completed/python-310-migration/3-Testing-Validation.md +335 -0
- plans/completed/python-310-migration/4-Documentation-Release.md +274 -0
- plans/completed/python-310-migration/5-Closeout.md +252 -0
- plans/completed/requirements-management-consolidation/0-Overview.md +118 -0
- plans/completed/requirements-management-consolidation/1-Documentation-Validation-Environment-Setup.md +116 -0
- plans/completed/requirements-management-consolidation/2-Requirements-Consolidation.md +161 -0
- plans/completed/requirements-management-consolidation/3-Workflow-Automation-Final-Integration.md +196 -0
- plans/completed/single-ecosystem-plan-implementation/0-Overview.md +83 -0
- plans/completed/single-ecosystem-plan-implementation/1-Plan-Preservation-Session-Management.md +38 -0
- plans/completed/single-ecosystem-plan-implementation/2-File-Structure-Optimization.md +43 -0
- plans/completed/single-ecosystem-plan-implementation/3-Plan-Migration-Archive-Setup.md +82 -0
- plans/completed/single-ecosystem-plan-implementation/4-Agent-System-Transformation.md +108 -0
- plans/completed/single-ecosystem-plan-implementation/5-Template-System-Enhancement.md +131 -0
- plans/completed/single-ecosystem-plan-implementation/6-Final-Validation-Testing.md +120 -0
- plans/completed/test-directory-consolidation/0-Overview.md +51 -0
- plans/completed/test-directory-consolidation/1-Structure-Preparation.md +82 -0
- plans/completed/test-directory-consolidation/2-File-Migration.md +100 -0
- plans/completed/test-directory-consolidation/3-Import-Transformation.md +117 -0
- plans/completed/test-directory-consolidation/4-Configuration-Consolidation.md +140 -0
- plans/completed/test-directory-consolidation/5-Validation.md +152 -0
- plans/completed/test-directory-consolidation/6-Cleanup.md +156 -0
- plans/completed/test-planning-agents-architecture/0-Overview.md +79 -0
- plans/completed/test-planning-agents-architecture/1-Branch-Isolation-Testing.md +49 -0
- plans/completed/test-planning-agents-architecture/2-Cross-Branch-Coordination.md +51 -0
- plans/completed/test-planning-agents-architecture/3-Merge-Workflow-Testing.md +48 -0
- plans/deployment-semver-pypi-rtd/0-Overview.md +463 -0
- plans/deployment-semver-pypi-rtd/1-Semantic-Versioning-Foundation.md +136 -0
- plans/deployment-semver-pypi-rtd/2-PyPI-Deployment-Infrastructure.md +168 -0
- plans/deployment-semver-pypi-rtd/3-Release-Automation.md +214 -0
- plans/deployment-semver-pypi-rtd/4-Plan-Closeout.md +543 -0
- plans/deployment-semver-pypi-rtd/compacted_session_state.md +172 -0
- plans/deployment-semver-pypi-rtd/compacted_state.md +131 -0
- plans/documentation-code-audit/0-Overview.md +393 -0
- plans/documentation-code-audit/1-Discovery-Inventory.md +183 -0
- plans/documentation-code-audit/2-Execution-Environment-Setup.md +263 -0
- plans/documentation-code-audit/3-Systematic-Validation.md +322 -0
- plans/documentation-code-audit/4-Code-Example-Remediation.md +358 -0
- plans/documentation-code-audit/5-Physics-MultiIndex-Compliance.md +464 -0
- plans/documentation-code-audit/6-Doctest-Integration.md +523 -0
- plans/documentation-code-audit/7-Reporting-Documentation.md +498 -0
- plans/documentation-code-audit/8-Closeout.md +456 -0
- plans/documentation-rebuild-session/compacted_state.md +109 -0
- plans/documentation-rendering-fixes/0-Overview.md +104 -0
- plans/documentation-rendering-fixes/1-Sphinx-Build-Diagnostics-Warning-Audit.md +101 -0
- plans/documentation-rendering-fixes/2-Configuration-Infrastructure-Fixes.md +113 -0
- plans/documentation-rendering-fixes/3-Docstring-Syntax-Audit-Repair.md +131 -0
- plans/documentation-rendering-fixes/4-HTML-Page-Rendering-Verification.md +113 -0
- plans/documentation-rendering-fixes/5-Advanced-Documentation-Quality-Assurance.md +119 -0
- plans/documentation-rendering-fixes/6-Documentation-Build-Optimization-Testing.md +129 -0
- plans/documentation-rendering-fixes/compacted_state.md +132 -0
- plans/documentation-template-fix/0-Overview.md +197 -0
- plans/documentation-template-fix/1-Template-System-Analysis.md +269 -0
- plans/documentation-template-fix/2-Template-Modification.md +609 -0
- plans/documentation-template-fix/3-Build-System-Integration.md +766 -0
- plans/documentation-template-fix/4-Testing-Validation.md +1399 -0
- plans/documentation-template-fix/5-Documentation-Training.md +602 -0
- plans/documentation-workflow-fix/0-Overview.md +222 -0
- plans/documentation-workflow-fix/1-Immediate-Fixes.md +238 -0
- plans/documentation-workflow-fix/2-Configuration-Setup.md +298 -0
- plans/documentation-workflow-fix/3-Pre-commit-Integration.md +382 -0
- plans/documentation-workflow-fix/4-Workflow-Improvements.md +446 -0
- plans/documentation-workflow-fix/5-Documentation-and-Training.md +527 -0
- plans/duplicate-object-warnings-fix-plan.md +130 -0
- plans/github-issues-migration/0-Overview.md +510 -0
- plans/github-issues-migration/1-Foundation-Label-System.md +180 -0
- plans/github-issues-migration/2-Migration-Tool-Rewrite.md +235 -0
- plans/github-issues-migration/3-CLI-Integration-Automation.md +169 -0
- plans/github-issues-migration/4-Validated-Migration.md +252 -0
- plans/github-issues-migration/5-Documentation-Training.md +171 -0
- plans/github-issues-migration/6-Closeout.md +179 -0
- plans/github-workflows-repair/repair-plan.md +299 -0
- plans/issues_from_plans.py +342 -0
- plans/pr-270-doc-validation-fixes/0-Overview.md +354 -0
- plans/pr-270-doc-validation-fixes/1-Critical-PR-Fixes.md +117 -0
- plans/pr-270-doc-validation-fixes/2-Framework-Right-Sizing.md +129 -0
- plans/pr-270-doc-validation-fixes/3-Sustainable-Documentation.md +126 -0
- plans/pr-270-doc-validation-fixes/4-Closeout-Migration.md +143 -0
- plans/pr-270-doc-validation-fixes/PLAN_COMPLETED.md +149 -0
- plans/python-310-migration/0-Overview.md +390 -0
- plans/python-310-migration/1-Planning-Setup.md +164 -0
- plans/python-310-migration/2-Implementation.md +256 -0
- plans/python-310-migration/3-Testing-Validation.md +335 -0
- plans/python-310-migration/4-Documentation-Release.md +274 -0
- plans/python-310-migration/5-Closeout.md +252 -0
- plans/readthedocs-simplified/0-Overview.md +243 -0
- plans/readthedocs-simplified/1-Immediate-Fixes.md +216 -0
- plans/readthedocs-simplified/2-Template-Simplification.md +278 -0
- plans/readthedocs-simplified/3-ReadTheDocs-Setup.md +298 -0
- plans/readthedocs-simplified/4-Testing-Validation.md +328 -0
- plans/readthedocs-simplified/5-Closeout.md +231 -0
- plans/readthedocs-simplified/compacted_state.md +127 -0
- plans/session-compaction-2025-08-12/compacted_state.md +114 -0
- plans/session-compaction-2025-08-13/compacted_state.md +145 -0
- plans/session-continuity-protocol/0-Overview.md +35 -0
- plans/session-continuity-protocol/1-Core-Principles-Framework.md +40 -0
- plans/session-continuity-protocol/2-Pre-Session-Validation-System.md +79 -0
- plans/session-continuity-protocol/3-Context-Switching-Prevention.md +87 -0
- plans/session-continuity-protocol/4-Progress-Tracking-Recovery.md +100 -0
- plans/sphinx-warnings-analysis.md +222 -0
- plans/systemprompt-optimization/0-Overview.md +447 -0
- plans/systemprompt-optimization/1-Deploy-SystemPrompt.md +114 -0
- plans/systemprompt-optimization/2-Documentation-Alignment.md +198 -0
- plans/systemprompt-optimization/3-Monitoring-Infrastructure.md +396 -0
- plans/systemprompt-optimization/4-Implementation-Script.md +450 -0
- plans/systemprompt-optimization/9-Closeout.md +165 -0
- plans/systemprompt-optimization/compacted_state.md +143 -0
- plans/template-value-propositions/0-Overview.md +357 -0
- plans/template-value-propositions/1-Value-Proposition-Framework-Design.md +144 -0
- plans/template-value-propositions/2-Plan-Template-Enhancement.md +178 -0
- plans/template-value-propositions/3-Value-Generator-Hook-Implementation.md +291 -0
- plans/template-value-propositions/4-Value-Validator-Hook-Implementation.md +274 -0
- plans/template-value-propositions/5-Documentation-Agent-Updates.md +219 -0
- plans/template-value-propositions/6-Integration-Testing-Validation.md +247 -0
- plans/tests-audit/0-Overview.md +410 -0
- plans/tests-audit/1-Discovery-Inventory.md +170 -0
- plans/tests-audit/2-Physics-Validation-Audit.md +195 -0
- plans/tests-audit/3-Architecture-Compliance.md +195 -0
- plans/tests-audit/4-Numerical-Stability-Analysis.md +203 -0
- plans/tests-audit/5-Documentation-Enhancement.md +220 -0
- plans/tests-audit/6-Audit-Deliverables.md +220 -0
- plans/tests-audit/7-Closeout.md +252 -0
- plans/tests-audit/artifacts/ARCHITECTURE_COMPLIANCE_REPORT.md +315 -0
- plans/tests-audit/artifacts/ARCHITECTURE_RECOMMENDATIONS.md +943 -0
- plans/tests-audit/artifacts/COMPREHENSIVE_AUDIT_REPORT.md +356 -0
- plans/tests-audit/artifacts/CONTRIBUTING_ENHANCED_TEMPLATE.md +419 -0
- plans/tests-audit/artifacts/COVERAGE_GAP_ANALYSIS.md +152 -0
- plans/tests-audit/artifacts/DOCUMENTATION_ENHANCEMENT_REPORT.md +502 -0
- plans/tests-audit/artifacts/EXECUTIVE_AUDIT_SUMMARY.md +129 -0
- plans/tests-audit/artifacts/IMPLEMENTATION_ROADMAP.md +647 -0
- plans/tests-audit/artifacts/NUMERICAL_RECOMMENDATIONS.md +739 -0
- plans/tests-audit/artifacts/NUMERICAL_STABILITY_GUIDE_TEMPLATE.rst +451 -0
- plans/tests-audit/artifacts/NUMERICAL_STABILITY_REPORT.md +301 -0
- plans/tests-audit/artifacts/PHASE_3_SUMMARY.md +280 -0
- plans/tests-audit/artifacts/PHASE_4_SUMMARY.md +229 -0
- plans/tests-audit/artifacts/PHASE_5_SUMMARY.md +292 -0
- plans/tests-audit/artifacts/PHASE_6_CLOSEOUT.md +278 -0
- plans/tests-audit/artifacts/PHYSICS_GUIDE_TEMPLATE.rst +268 -0
- plans/tests-audit/artifacts/PHYSICS_VALIDATION_REPORT.md +235 -0
- plans/tests-audit/artifacts/TECHNICAL_DELIVERABLES_PACKAGE.md +2502 -0
- plans/tests-audit/artifacts/TEST_INVENTORY.csv +1204 -0
- plans/tests-audit/artifacts/TEST_INVENTORY.md +135 -0
- plans/tests-audit/artifacts/test_discovery_analysis.py +231 -0
- plans/tests-audit/artifacts/test_parser.py +395 -0
- solarwindpy/README.md +3 -0
- solarwindpy/Untitled.ipynb +54 -0
- solarwindpy/__init__.py +74 -0
- solarwindpy/core/__init__.py +23 -0
- solarwindpy/core/alfvenic_turbulence.py +804 -0
- solarwindpy/core/base.py +267 -0
- solarwindpy/core/ions.py +309 -0
- solarwindpy/core/plasma.py +2133 -0
- solarwindpy/core/spacecraft.py +256 -0
- solarwindpy/core/tensor.py +90 -0
- solarwindpy/core/units_constants.py +199 -0
- solarwindpy/core/vector.py +328 -0
- solarwindpy/fitfunctions/__init__.py +20 -0
- solarwindpy/fitfunctions/core.py +734 -0
- solarwindpy/fitfunctions/exponentials.py +188 -0
- solarwindpy/fitfunctions/gaussians.py +264 -0
- solarwindpy/fitfunctions/lines.py +116 -0
- solarwindpy/fitfunctions/moyal.py +71 -0
- solarwindpy/fitfunctions/plots.py +751 -0
- solarwindpy/fitfunctions/power_laws.py +209 -0
- solarwindpy/fitfunctions/tex_info.py +568 -0
- solarwindpy/fitfunctions/trend_fits.py +482 -0
- solarwindpy/instabilities/__init__.py +16 -0
- solarwindpy/instabilities/beta_ani.py +82 -0
- solarwindpy/instabilities/verscharen2016.py +631 -0
- solarwindpy/plotting/__init__.py +33 -0
- solarwindpy/plotting/agg_plot.py +489 -0
- solarwindpy/plotting/base.py +465 -0
- solarwindpy/plotting/hist1d.py +405 -0
- solarwindpy/plotting/hist2d.py +1035 -0
- solarwindpy/plotting/histograms.py +1845 -0
- solarwindpy/plotting/labels/__init__.py +104 -0
- solarwindpy/plotting/labels/base.py +686 -0
- solarwindpy/plotting/labels/chemistry.py +19 -0
- solarwindpy/plotting/labels/composition.py +100 -0
- solarwindpy/plotting/labels/datetime.py +235 -0
- solarwindpy/plotting/labels/elemental_abundance.py +73 -0
- solarwindpy/plotting/labels/special.py +794 -0
- solarwindpy/plotting/orbits.py +515 -0
- solarwindpy/plotting/scatter.py +99 -0
- solarwindpy/plotting/select_data_from_figure.py +329 -0
- solarwindpy/plotting/spiral.py +980 -0
- solarwindpy/plotting/tools.py +434 -0
- solarwindpy/scripts/__init__.py +1 -0
- solarwindpy/scripts/logs/.gitignore +1 -0
- solarwindpy/solar_activity/__init__.py +53 -0
- solarwindpy/solar_activity/base.py +605 -0
- solarwindpy/solar_activity/lisird/__init__.py +3 -0
- solarwindpy/solar_activity/lisird/extrema_calculator.py +394 -0
- solarwindpy/solar_activity/lisird/lisird.py +319 -0
- solarwindpy/solar_activity/plots.py +116 -0
- solarwindpy/solar_activity/sunspot_number/.DS_Store +0 -0
- solarwindpy/solar_activity/sunspot_number/__init__.py +3 -0
- solarwindpy/solar_activity/sunspot_number/sidc.py +556 -0
- solarwindpy/solar_activity/sunspot_number/ssn_extrema.csv +72 -0
- solarwindpy/solar_activity/sunspot_number/ssn_extrema.csv.silso +72 -0
- solarwindpy/tools/__init__.py +162 -0
- solarwindpy-0.1.0.dist-info/METADATA +181 -0
- solarwindpy-0.1.0.dist-info/RECORD +409 -0
- {solarwindpy-0.0.1.dev0.dist-info → solarwindpy-0.1.0.dist-info}/WHEEL +1 -1
- solarwindpy-0.1.0.dist-info/licenses/LICENSE.rst +32 -0
- solarwindpy-0.1.0.dist-info/top_level.txt +3 -0
- tests/__init__.py +1 -0
- tests/conftest.py +10 -0
- tests/core/__init__.py +1 -0
- tests/core/test_alfvenic_turbulence.py +544 -0
- tests/core/test_base.py +112 -0
- tests/core/test_base_head_tail.py +29 -0
- tests/core/test_base_mi_tuples.py +11 -0
- tests/core/test_core_verify_datetimeindex.py +32 -0
- tests/core/test_ions.py +325 -0
- tests/core/test_plasma.py +2581 -0
- tests/core/test_plasma_io.py +12 -0
- tests/core/test_quantities.py +507 -0
- tests/core/test_spacecraft.py +210 -0
- tests/core/test_units_constants.py +22 -0
- tests/data/epoch.csv +4 -0
- tests/data/plasma.csv +4 -0
- tests/data/spacecraft.csv +4 -0
- tests/fitfunctions/conftest.py +60 -0
- tests/fitfunctions/test_core.py +193 -0
- tests/fitfunctions/test_exponentials.py +342 -0
- tests/fitfunctions/test_gaussians.py +142 -0
- tests/fitfunctions/test_lines.py +349 -0
- tests/fitfunctions/test_moyal.py +258 -0
- tests/fitfunctions/test_plots.py +258 -0
- tests/fitfunctions/test_power_laws.py +365 -0
- tests/fitfunctions/test_tex_info.py +183 -0
- tests/fitfunctions/test_trend_fit_properties.py +31 -0
- tests/fitfunctions/test_trend_fits.py +244 -0
- tests/plotting/__init__.py +1 -0
- tests/plotting/labels/__init__.py +1 -0
- tests/plotting/labels/test_chemistry.py +243 -0
- tests/plotting/labels/test_composition.py +345 -0
- tests/plotting/labels/test_datetime.py +445 -0
- tests/plotting/labels/test_elemental_abundance.py +366 -0
- tests/plotting/labels/test_init.py +66 -0
- tests/plotting/labels/test_labels_base.py +347 -0
- tests/plotting/labels/test_special.py +550 -0
- tests/plotting/test_agg_plot.py +602 -0
- tests/plotting/test_base.py +752 -0
- tests/plotting/test_fixtures_utilities.py +775 -0
- tests/plotting/test_histograms.py +546 -0
- tests/plotting/test_integration.py +675 -0
- tests/plotting/test_orbits.py +435 -0
- tests/plotting/test_performance.py +708 -0
- tests/plotting/test_scatter.py +752 -0
- tests/plotting/test_select_data_from_figure.py +1209 -0
- tests/plotting/test_spiral.py +573 -0
- tests/plotting/test_tools.py +607 -0
- tests/plotting/test_visual_validation.py +465 -0
- tests/solar_activity/__init__.py +1 -0
- tests/solar_activity/lisird/__init__.py +1 -0
- tests/solar_activity/lisird/test_extrema_calculator.py +593 -0
- tests/solar_activity/lisird/test_lisird_id.py +187 -0
- tests/solar_activity/sunspot_number/__init__.py +1 -0
- tests/solar_activity/sunspot_number/test_init.py +399 -0
- tests/solar_activity/sunspot_number/test_sidc.py +465 -0
- tests/solar_activity/sunspot_number/test_sidc_id.py +223 -0
- tests/solar_activity/sunspot_number/test_sidc_loader.py +275 -0
- tests/solar_activity/sunspot_number/test_ssn_extrema.py +406 -0
- tests/solar_activity/test_base.py +656 -0
- tests/solar_activity/test_init.py +396 -0
- tests/solar_activity/test_plots.py +371 -0
- tests/test_circular_imports.py +408 -0
- tests/test_issue_titles.py +25 -0
- tests/test_statusline.py +298 -0
- solarwindpy-0.0.1.dev0.dist-info/METADATA +0 -14
- solarwindpy-0.0.1.dev0.dist-info/RECORD +0 -4
- solarwindpy-0.0.1.dev0.dist-info/top_level.txt +0 -1
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# Phase 2: Execution Environment Setup
|
|
2
|
+
|
|
3
|
+
## Phase Metadata
|
|
4
|
+
- **Status**: 🔄 In Progress
|
|
5
|
+
- **Estimated Duration**: 1 hour
|
|
6
|
+
- **Actual Duration**: _TBD_
|
|
7
|
+
- **Dependencies**: Phase 1 (Discovery & Inventory) completed
|
|
8
|
+
- **Git Commit**: <checksum>
|
|
9
|
+
- **Branch**: plan/documentation-code-audit
|
|
10
|
+
|
|
11
|
+
## 🎯 Objective
|
|
12
|
+
Establish a robust testing environment and validation infrastructure for systematically executing and verifying all code examples found in the documentation audit.
|
|
13
|
+
|
|
14
|
+
## 📋 Tasks Checklist
|
|
15
|
+
- [ ] **Environment Verification** (10 min)
|
|
16
|
+
- [ ] Verify conda environment: `solarwindpy-20250403`
|
|
17
|
+
- [ ] Confirm SolarWindPy installation: `pip install -e .`
|
|
18
|
+
- [ ] Test basic imports: `import solarwindpy as swp`
|
|
19
|
+
- [ ] Validate test runner: `pytest --version`
|
|
20
|
+
|
|
21
|
+
- [ ] **Example Extraction Tools** (25 min)
|
|
22
|
+
- [ ] Create RST code block extractor script
|
|
23
|
+
- [ ] Implement docstring example parser
|
|
24
|
+
- [ ] Add syntax validation checker
|
|
25
|
+
- [ ] Test extraction on sample files
|
|
26
|
+
|
|
27
|
+
- [ ] **Execution Framework** (15 min)
|
|
28
|
+
- [ ] Design isolated execution environment
|
|
29
|
+
- [ ] Create example runner with error capture
|
|
30
|
+
- [ ] Implement output validation framework
|
|
31
|
+
- [ ] Add timeout and resource management
|
|
32
|
+
|
|
33
|
+
- [ ] **Validation Infrastructure** (10 min)
|
|
34
|
+
- [ ] Set up physics constraint checking
|
|
35
|
+
- [ ] Create MultiIndex structure validator
|
|
36
|
+
- [ ] Implement import resolution verification
|
|
37
|
+
- [ ] Design success/failure reporting system
|
|
38
|
+
|
|
39
|
+
## 📁 Deliverables
|
|
40
|
+
- [ ] **extract_examples.py**: Tool to extract code blocks from RST and docstrings
|
|
41
|
+
- [ ] **validate_examples.py**: Framework for executing and validating examples
|
|
42
|
+
- [ ] **physics_validator.py**: Physics constraint and rule checking
|
|
43
|
+
- [ ] **test_environment_setup.md**: Documentation for testing infrastructure
|
|
44
|
+
- [ ] **validation_report_template.json**: Standardized reporting format
|
|
45
|
+
|
|
46
|
+
## 🔧 Technical Implementation
|
|
47
|
+
|
|
48
|
+
### RST Code Block Extractor
|
|
49
|
+
```python
|
|
50
|
+
# extract_examples.py structure
|
|
51
|
+
class RSTExtractor:
|
|
52
|
+
def extract_code_blocks(self, rst_file):
|
|
53
|
+
"""Extract all code-block:: python directives"""
|
|
54
|
+
pass
|
|
55
|
+
|
|
56
|
+
def parse_docstring_examples(self, python_file):
|
|
57
|
+
"""Extract doctest examples from Python files"""
|
|
58
|
+
pass
|
|
59
|
+
|
|
60
|
+
def validate_syntax(self, code_string):
|
|
61
|
+
"""Check Python syntax without execution"""
|
|
62
|
+
pass
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Example Validation Framework
|
|
66
|
+
```python
|
|
67
|
+
# validate_examples.py structure
|
|
68
|
+
class ExampleValidator:
|
|
69
|
+
def __init__(self, physics_validator=None):
|
|
70
|
+
self.physics = physics_validator
|
|
71
|
+
self.results = []
|
|
72
|
+
|
|
73
|
+
def execute_example(self, code, context=None):
|
|
74
|
+
"""Execute code in isolated environment"""
|
|
75
|
+
pass
|
|
76
|
+
|
|
77
|
+
def validate_physics(self, result):
|
|
78
|
+
"""Check outputs against physics constraints"""
|
|
79
|
+
pass
|
|
80
|
+
|
|
81
|
+
def generate_report(self):
|
|
82
|
+
"""Create detailed validation report"""
|
|
83
|
+
pass
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Physics Constraint Validator
|
|
87
|
+
```python
|
|
88
|
+
# physics_validator.py structure
|
|
89
|
+
class PhysicsValidator:
|
|
90
|
+
def check_thermal_speed_convention(self, thermal_speed, temperature):
|
|
91
|
+
"""Validate mw² = 2kT convention"""
|
|
92
|
+
pass
|
|
93
|
+
|
|
94
|
+
def validate_units(self, data, expected_units):
|
|
95
|
+
"""Check SI unit compliance"""
|
|
96
|
+
pass
|
|
97
|
+
|
|
98
|
+
def check_missing_data_handling(self, data):
|
|
99
|
+
"""Ensure NaN used for missing data (not 0 or -999)"""
|
|
100
|
+
pass
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 🔍 Environment Setup Requirements
|
|
104
|
+
|
|
105
|
+
### Conda Environment Validation
|
|
106
|
+
```bash
|
|
107
|
+
# Verify environment is active and complete
|
|
108
|
+
conda env list | grep solarwindpy-20250403
|
|
109
|
+
python -c "import solarwindpy; print(solarwindpy.__version__)"
|
|
110
|
+
python -c "import numpy, pandas, matplotlib; print('Dependencies OK')"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Required Dependencies
|
|
114
|
+
- **Core**: `solarwindpy` (development installation)
|
|
115
|
+
- **Scientific**: `numpy`, `pandas`, `matplotlib`
|
|
116
|
+
- **Testing**: `pytest`, `doctest`
|
|
117
|
+
- **Parsing**: `docutils`, `sphinx` (for RST processing)
|
|
118
|
+
- **Validation**: `ast`, `compile` (syntax checking)
|
|
119
|
+
|
|
120
|
+
### Testing Infrastructure
|
|
121
|
+
```python
|
|
122
|
+
# Example test runner structure
|
|
123
|
+
def run_validation_suite():
|
|
124
|
+
"""Execute complete validation of all examples"""
|
|
125
|
+
extractor = RSTExtractor()
|
|
126
|
+
validator = ExampleValidator(PhysicsValidator())
|
|
127
|
+
|
|
128
|
+
# Extract all examples from inventory
|
|
129
|
+
examples = extractor.load_from_inventory('docs_audit_inventory.json')
|
|
130
|
+
|
|
131
|
+
# Validate each example
|
|
132
|
+
for example in examples:
|
|
133
|
+
result = validator.execute_example(example.code)
|
|
134
|
+
validator.validate_physics(result)
|
|
135
|
+
|
|
136
|
+
# Generate comprehensive report
|
|
137
|
+
return validator.generate_report()
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## 📊 Success Metrics
|
|
141
|
+
|
|
142
|
+
### Environment Readiness
|
|
143
|
+
- [ ] All required packages importable without errors
|
|
144
|
+
- [ ] SolarWindPy core functionality accessible
|
|
145
|
+
- [ ] Test framework can execute basic examples
|
|
146
|
+
- [ ] Physics validation rules operational
|
|
147
|
+
|
|
148
|
+
### Tool Functionality
|
|
149
|
+
- [ ] RST extractor processes all inventory files correctly
|
|
150
|
+
- [ ] Docstring parser handles doctest format properly
|
|
151
|
+
- [ ] Example executor provides detailed error capture
|
|
152
|
+
- [ ] Physics validator identifies constraint violations
|
|
153
|
+
|
|
154
|
+
### Validation Framework
|
|
155
|
+
- [ ] Isolated execution prevents cross-contamination
|
|
156
|
+
- [ ] Timeout handling prevents infinite loops
|
|
157
|
+
- [ ] Error reporting captures actionable information
|
|
158
|
+
- [ ] Success criteria clearly defined and measurable
|
|
159
|
+
|
|
160
|
+
## 🔗 Integration Points
|
|
161
|
+
|
|
162
|
+
### With Existing Infrastructure
|
|
163
|
+
- **Physics Rules**: Leverage existing thermal speed and unit conventions
|
|
164
|
+
- **MultiIndex Patterns**: Use established data structure validation
|
|
165
|
+
- **Testing Framework**: Integrate with current pytest infrastructure
|
|
166
|
+
- **CI/CD Hooks**: Prepare for future automated validation
|
|
167
|
+
|
|
168
|
+
### With Inventory Data
|
|
169
|
+
- **Load Example Catalog**: Read from `docs_audit_inventory.json`
|
|
170
|
+
- **Priority Processing**: Execute examples by severity classification
|
|
171
|
+
- **Issue Tracking**: Map validation results back to inventory issues
|
|
172
|
+
- **Progress Monitoring**: Track remediation success rates
|
|
173
|
+
|
|
174
|
+
## ⚡ Execution Strategy
|
|
175
|
+
|
|
176
|
+
### Phase 2 Implementation Order
|
|
177
|
+
1. **Environment Verification** (10 min)
|
|
178
|
+
- Quick validation of development environment
|
|
179
|
+
- Ensure all dependencies are available
|
|
180
|
+
- Test basic SolarWindPy functionality
|
|
181
|
+
|
|
182
|
+
2. **Core Tool Development** (25 min)
|
|
183
|
+
- RST code block extraction (highest priority)
|
|
184
|
+
- Docstring example parsing (medium priority)
|
|
185
|
+
- Syntax validation (quick safety check)
|
|
186
|
+
|
|
187
|
+
3. **Validation Framework** (15 min)
|
|
188
|
+
- Example execution with error capture
|
|
189
|
+
- Physics constraint integration
|
|
190
|
+
- Output validation and reporting
|
|
191
|
+
|
|
192
|
+
4. **Testing and Validation** (10 min)
|
|
193
|
+
- Test tools on sample examples from inventory
|
|
194
|
+
- Verify error capture and reporting works
|
|
195
|
+
- Prepare for Phase 3 systematic validation
|
|
196
|
+
|
|
197
|
+
### Risk Mitigation
|
|
198
|
+
- **Tool Development**: Start with simple extraction, add complexity incrementally
|
|
199
|
+
- **Environment Issues**: Have fallback to basic Python environment if conda issues
|
|
200
|
+
- **Physics Validation**: Begin with simple checks, expand based on example complexity
|
|
201
|
+
- **Execution Safety**: Implement timeouts and resource limits early
|
|
202
|
+
|
|
203
|
+
## 📝 Implementation Notes
|
|
204
|
+
|
|
205
|
+
### Key Design Decisions
|
|
206
|
+
1. **Modular Architecture**: Separate extraction, execution, and validation for flexibility
|
|
207
|
+
2. **Error Isolation**: Each example runs independently to prevent cascade failures
|
|
208
|
+
3. **Comprehensive Logging**: Detailed error capture for efficient debugging
|
|
209
|
+
4. **Physics Integration**: Built-in validation of scientific computing conventions
|
|
210
|
+
|
|
211
|
+
### Expected Challenges
|
|
212
|
+
- **Complex Examples**: MultiIndex setup examples may require sophisticated context
|
|
213
|
+
- **Import Dependencies**: Some examples may require specific data files or setup
|
|
214
|
+
- **Physics Validation**: Balancing strictness with flexibility for edge cases
|
|
215
|
+
- **Performance**: 47 examples need reasonable execution time for iterative testing
|
|
216
|
+
|
|
217
|
+
## ✅ Completion Criteria
|
|
218
|
+
- [ ] Testing environment fully operational
|
|
219
|
+
- [ ] Example extraction tools working for all file types
|
|
220
|
+
- [ ] Validation framework handles success and failure cases
|
|
221
|
+
- [ ] Physics constraint checking integrated
|
|
222
|
+
- [ ] All tools tested on sample inventory examples
|
|
223
|
+
- [ ] Ready to execute Phase 3 systematic validation
|
|
224
|
+
|
|
225
|
+
## 🔄 Transition to Phase 3
|
|
226
|
+
**Preparation for Phase 3: Systematic Validation**
|
|
227
|
+
- Testing infrastructure operational
|
|
228
|
+
- All extraction and validation tools ready
|
|
229
|
+
- Physics constraint checking integrated
|
|
230
|
+
- Sample validation runs successful
|
|
231
|
+
|
|
232
|
+
**Next Phase Prerequisites:**
|
|
233
|
+
- Complete example extraction capability
|
|
234
|
+
- Robust error capture and reporting
|
|
235
|
+
- Physics validation framework operational
|
|
236
|
+
- Success metrics clearly defined
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
**📝 User Action Required**: After completing this phase, run:
|
|
241
|
+
```bash
|
|
242
|
+
git add plans/documentation-code-audit/2-Execution-Environment-Setup.md \
|
|
243
|
+
extract_examples.py validate_examples.py physics_validator.py \
|
|
244
|
+
test_environment_setup.md validation_report_template.json
|
|
245
|
+
git commit -m "docs: complete Phase 2 execution environment setup
|
|
246
|
+
|
|
247
|
+
- Created comprehensive example extraction and validation tools
|
|
248
|
+
- Established isolated testing environment with physics validation
|
|
249
|
+
- Implemented RST and docstring code block extraction
|
|
250
|
+
- Set up validation framework with error capture and reporting
|
|
251
|
+
- Ready for Phase 3: Systematic Validation of all 47 examples
|
|
252
|
+
|
|
253
|
+
🤖 Generated with [Claude Code](https://claude.ai/code)
|
|
254
|
+
|
|
255
|
+
Co-Authored-By: Claude <noreply@anthropic.com>"
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
**Then create compacted state for session continuity:**
|
|
259
|
+
```bash
|
|
260
|
+
python .claude/hooks/create-compaction.py \
|
|
261
|
+
--trigger "Phase 2 completion - testing infrastructure ready" \
|
|
262
|
+
--context "Documentation audit validation tools operational"
|
|
263
|
+
```
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
# Phase 3: Systematic Validation
|
|
2
|
+
|
|
3
|
+
## Phase Metadata
|
|
4
|
+
- **Status**: ✅ Complete
|
|
5
|
+
- **Estimated Duration**: 3 hours
|
|
6
|
+
- **Actual Duration**: 3 hours
|
|
7
|
+
- **Dependencies**: Phase 2 (Execution Environment Setup) completed
|
|
8
|
+
- **Git Commit**: <checksum>
|
|
9
|
+
- **Branch**: plan/documentation-code-audit
|
|
10
|
+
|
|
11
|
+
## 🎯 Objective
|
|
12
|
+
Execute systematic validation of all 47 code examples across documentation files, capture detailed failure information, and create comprehensive remediation roadmap based on actual execution results.
|
|
13
|
+
|
|
14
|
+
## 📋 Tasks Checklist
|
|
15
|
+
- [ ] **High-Priority Examples Validation** (90 min)
|
|
16
|
+
- [ ] `docs/source/usage.rst` - 7 critical examples (30 min)
|
|
17
|
+
- [ ] `solarwindpy/core/plasma.py` - 8 doctest examples (30 min)
|
|
18
|
+
- [ ] `README.rst` - 6 installation/usage examples (20 min)
|
|
19
|
+
- [ ] `docs/source/tutorial/quickstart.rst` - 2 quickstart examples (10 min)
|
|
20
|
+
|
|
21
|
+
- [ ] **Medium-Priority Examples Validation** (60 min)
|
|
22
|
+
- [ ] `solarwindpy/core/ions.py` - 1 doctest example (10 min)
|
|
23
|
+
- [ ] `solarwindpy/tools/__init__.py` - 3 doctest examples (15 min)
|
|
24
|
+
- [ ] `solarwindpy/fitfunctions/tex_info.py` - 1 doctest example (5 min)
|
|
25
|
+
- [ ] `docs/source/installation.rst` - 5 installation examples (30 min)
|
|
26
|
+
|
|
27
|
+
- [ ] **Detailed Analysis Modules** (30 min)
|
|
28
|
+
- [ ] `solarwindpy/core/spacecraft.py` - detailed doctest analysis (10 min)
|
|
29
|
+
- [ ] `solarwindpy/instabilities/*.py` - instability examples (10 min)
|
|
30
|
+
- [ ] `solarwindpy/plotting/tools.py` - plotting examples (10 min)
|
|
31
|
+
|
|
32
|
+
## 📁 Deliverables
|
|
33
|
+
- [ ] **validation_results.json**: Complete execution results for all 47 examples
|
|
34
|
+
- [ ] **failure_analysis.md**: Detailed analysis of all failed examples
|
|
35
|
+
- [ ] **success_patterns.md**: Documentation of working examples and patterns
|
|
36
|
+
- [ ] **remediation_roadmap.md**: Prioritized fix plan based on execution results
|
|
37
|
+
- [ ] **physics_violations.json**: Catalog of physics rule violations found
|
|
38
|
+
|
|
39
|
+
## 🔍 Validation Methodology
|
|
40
|
+
|
|
41
|
+
### Execution Process
|
|
42
|
+
```python
|
|
43
|
+
# Systematic validation approach
|
|
44
|
+
for example in sorted_examples_by_priority:
|
|
45
|
+
# 1. Syntax validation
|
|
46
|
+
syntax_result = validate_syntax(example.code)
|
|
47
|
+
|
|
48
|
+
# 2. Import resolution
|
|
49
|
+
import_result = validate_imports(example.dependencies)
|
|
50
|
+
|
|
51
|
+
# 3. Isolated execution
|
|
52
|
+
execution_result = execute_example(example.code, timeout=30)
|
|
53
|
+
|
|
54
|
+
# 4. Physics validation
|
|
55
|
+
physics_result = validate_physics(execution_result.outputs)
|
|
56
|
+
|
|
57
|
+
# 5. Output verification
|
|
58
|
+
verification_result = verify_expected_outputs(execution_result)
|
|
59
|
+
|
|
60
|
+
# 6. Comprehensive reporting
|
|
61
|
+
record_validation_result(example, {
|
|
62
|
+
'syntax': syntax_result,
|
|
63
|
+
'imports': import_result,
|
|
64
|
+
'execution': execution_result,
|
|
65
|
+
'physics': physics_result,
|
|
66
|
+
'verification': verification_result
|
|
67
|
+
})
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Error Categories
|
|
71
|
+
1. **Syntax Errors**: Python parsing failures
|
|
72
|
+
2. **Import Errors**: Missing modules or incorrect references
|
|
73
|
+
3. **Runtime Errors**: Execution failures (AttributeError, NameError, etc.)
|
|
74
|
+
4. **Physics Violations**: Outputs violating scientific constraints
|
|
75
|
+
5. **API Mismatches**: Deprecated or non-existent method calls
|
|
76
|
+
6. **Data Structure Issues**: MultiIndex or DataFrame construction problems
|
|
77
|
+
|
|
78
|
+
## 📊 Expected Validation Results
|
|
79
|
+
|
|
80
|
+
### High-Priority Examples (Critical Impact)
|
|
81
|
+
|
|
82
|
+
#### `docs/source/usage.rst` Examples
|
|
83
|
+
**Expected Issues (from Phase 1 inventory):**
|
|
84
|
+
- 🔴 **Example 2**: Deprecated `Plasma(epoch=)` constructor
|
|
85
|
+
- 🔴 **Example 2**: Non-existent `add_ion_species()` method
|
|
86
|
+
- 🔴 **Example 3**: Missing data structure initialization
|
|
87
|
+
- 🔴 **Example 5**: Broken `solarwindpy.plotting.time_series` import
|
|
88
|
+
- 🔴 **Example 6**: Non-existent `validate_physics()` method
|
|
89
|
+
- 🔴 **Example 7**: Undefined `temperature_data` variable
|
|
90
|
+
|
|
91
|
+
**Validation Actions:**
|
|
92
|
+
```bash
|
|
93
|
+
# Execute each example with detailed logging
|
|
94
|
+
python validate_examples.py --file docs/source/usage.rst --verbose
|
|
95
|
+
python validate_examples.py --example-range 23-28 --physics-check
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
#### `solarwindpy/core/plasma.py` Doctests
|
|
99
|
+
**Expected Issues:**
|
|
100
|
+
- 🔴 **Doctest 1**: Undefined `data` variable in constructor
|
|
101
|
+
- 🔴 **Doctest 2**: Missing plasma object initialization
|
|
102
|
+
- 🔴 **Complex Example**: MultiIndex DataFrame construction validation
|
|
103
|
+
|
|
104
|
+
**Validation Actions:**
|
|
105
|
+
```bash
|
|
106
|
+
# Run doctests with enhanced error capture
|
|
107
|
+
python -m doctest solarwindpy/core/plasma.py -v
|
|
108
|
+
python validate_examples.py --doctest-file solarwindpy/core/plasma.py
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Medium-Priority Examples (Support Impact)
|
|
112
|
+
|
|
113
|
+
#### `README.rst` Installation Examples
|
|
114
|
+
**Expected Results:**
|
|
115
|
+
- 🟢 **Examples 1-5**: Installation commands should execute successfully
|
|
116
|
+
- 🟡 **Example 6**: Version check may require proper installation context
|
|
117
|
+
|
|
118
|
+
#### `solarwindpy/tools/__init__.py` Doctests
|
|
119
|
+
**Expected Issues:**
|
|
120
|
+
- 🔴 **Example 1**: Incomplete DataFrame construction with ellipsis
|
|
121
|
+
- 🔴 **Examples 2-3**: Undefined variables (`df`, `m`, `s`)
|
|
122
|
+
|
|
123
|
+
## 🔧 Technical Implementation
|
|
124
|
+
|
|
125
|
+
### Validation Execution Framework
|
|
126
|
+
```python
|
|
127
|
+
class SystematicValidator:
|
|
128
|
+
def __init__(self, inventory_file):
|
|
129
|
+
self.inventory = load_inventory(inventory_file)
|
|
130
|
+
self.results = ValidationResults()
|
|
131
|
+
self.physics_validator = PhysicsValidator()
|
|
132
|
+
|
|
133
|
+
def validate_by_priority(self):
|
|
134
|
+
"""Execute validation in priority order"""
|
|
135
|
+
for priority in ['critical', 'high', 'medium', 'low']:
|
|
136
|
+
examples = self.inventory.filter_by_priority(priority)
|
|
137
|
+
for example in examples:
|
|
138
|
+
result = self.validate_single_example(example)
|
|
139
|
+
self.results.record(example, result)
|
|
140
|
+
|
|
141
|
+
def validate_single_example(self, example):
|
|
142
|
+
"""Comprehensive validation of single example"""
|
|
143
|
+
return {
|
|
144
|
+
'syntax': self.check_syntax(example.code),
|
|
145
|
+
'imports': self.check_imports(example.dependencies),
|
|
146
|
+
'execution': self.execute_with_capture(example.code),
|
|
147
|
+
'physics': self.physics_validator.validate(example),
|
|
148
|
+
'timestamp': datetime.now().isoformat()
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Physics Validation Integration
|
|
153
|
+
```python
|
|
154
|
+
class ExamplePhysicsValidator:
|
|
155
|
+
def validate_thermal_speed_examples(self, outputs):
|
|
156
|
+
"""Check thermal speed calculations follow mw² = 2kT"""
|
|
157
|
+
if 'thermal_speed' in outputs and 'temperature' in outputs:
|
|
158
|
+
# Validate convention compliance
|
|
159
|
+
pass
|
|
160
|
+
|
|
161
|
+
def validate_units_consistency(self, outputs):
|
|
162
|
+
"""Ensure SI units used internally"""
|
|
163
|
+
# Check for common unit violations
|
|
164
|
+
pass
|
|
165
|
+
|
|
166
|
+
def validate_missing_data_handling(self, outputs):
|
|
167
|
+
"""Ensure NaN used for missing data (not 0 or -999)"""
|
|
168
|
+
# Check data arrays for proper missing value handling
|
|
169
|
+
pass
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Error Capture and Analysis
|
|
173
|
+
```python
|
|
174
|
+
class ValidationResult:
|
|
175
|
+
def __init__(self, example_id, file_path, line_range):
|
|
176
|
+
self.example_id = example_id
|
|
177
|
+
self.file_path = file_path
|
|
178
|
+
self.line_range = line_range
|
|
179
|
+
self.errors = []
|
|
180
|
+
self.warnings = []
|
|
181
|
+
self.success = False
|
|
182
|
+
self.execution_time = 0
|
|
183
|
+
self.physics_violations = []
|
|
184
|
+
|
|
185
|
+
def add_error(self, error_type, message, traceback=None):
|
|
186
|
+
self.errors.append({
|
|
187
|
+
'type': error_type,
|
|
188
|
+
'message': message,
|
|
189
|
+
'traceback': traceback,
|
|
190
|
+
'timestamp': datetime.now().isoformat()
|
|
191
|
+
})
|
|
192
|
+
|
|
193
|
+
def is_actionable(self):
|
|
194
|
+
"""Determine if errors can be automatically fixed"""
|
|
195
|
+
auto_fixable = ['ImportError', 'NameError', 'AttributeError']
|
|
196
|
+
return any(error['type'] in auto_fixable for error in self.errors)
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## 📊 Success Metrics
|
|
200
|
+
|
|
201
|
+
### Execution Success Rates
|
|
202
|
+
- **Target**: Document baseline failure rate (expect ~89% from Phase 1)
|
|
203
|
+
- **Critical Examples**: 0% expected success (all have known issues)
|
|
204
|
+
- **Medium Examples**: 20-40% expected success (installation commands)
|
|
205
|
+
- **Overall Goal**: Complete failure characterization for remediation
|
|
206
|
+
|
|
207
|
+
### Error Classification Accuracy
|
|
208
|
+
- **Syntax Errors**: 100% capture rate
|
|
209
|
+
- **Import Errors**: 100% identification of missing dependencies
|
|
210
|
+
- **Runtime Errors**: 95% capture with actionable error messages
|
|
211
|
+
- **Physics Violations**: 80% identification of scientific constraint violations
|
|
212
|
+
|
|
213
|
+
### Remediation Planning Effectiveness
|
|
214
|
+
- **Actionable Issues**: 90% of failures mapped to specific fix strategies
|
|
215
|
+
- **Fix Complexity**: Categorized as Simple/Medium/Complex for resource planning
|
|
216
|
+
- **Priority Ordering**: Clear remediation sequence based on user impact
|
|
217
|
+
|
|
218
|
+
## 🔗 Integration Points
|
|
219
|
+
|
|
220
|
+
### With Phase 1 Inventory
|
|
221
|
+
- Load complete example catalog from `docs_audit_inventory.json`
|
|
222
|
+
- Use existing issue categorization for validation prioritization
|
|
223
|
+
- Map execution results back to inventory classifications
|
|
224
|
+
- Validate Phase 1 predictions against actual execution results
|
|
225
|
+
|
|
226
|
+
### With Phase 4 Remediation
|
|
227
|
+
- Provide detailed failure analysis for targeted fixes
|
|
228
|
+
- Identify patterns for batch remediation strategies
|
|
229
|
+
- Create success baselines for measuring remediation progress
|
|
230
|
+
- Generate specific action items for each failed example
|
|
231
|
+
|
|
232
|
+
## ⚡ Execution Strategy
|
|
233
|
+
|
|
234
|
+
### Priority-Based Validation Order
|
|
235
|
+
1. **Critical User-Facing Examples** (90 min)
|
|
236
|
+
- `usage.rst` examples (highest user impact)
|
|
237
|
+
- Core class doctests (API credibility)
|
|
238
|
+
- README examples (first user experience)
|
|
239
|
+
|
|
240
|
+
2. **Supporting Documentation** (60 min)
|
|
241
|
+
- Installation and setup examples
|
|
242
|
+
- Tool and utility examples
|
|
243
|
+
- Secondary module doctests
|
|
244
|
+
|
|
245
|
+
3. **Comprehensive Analysis** (30 min)
|
|
246
|
+
- Detailed module analysis for complex examples
|
|
247
|
+
- Pattern identification across similar failures
|
|
248
|
+
- Physics validation rule application
|
|
249
|
+
|
|
250
|
+
### Risk Mitigation
|
|
251
|
+
- **Execution Timeouts**: 30-second limit per example to prevent hanging
|
|
252
|
+
- **Resource Isolation**: Each example runs in clean namespace
|
|
253
|
+
- **Error Containment**: Failures don't affect subsequent example validation
|
|
254
|
+
- **Progress Tracking**: Incremental results saved for recovery from interruptions
|
|
255
|
+
|
|
256
|
+
## 📝 Implementation Notes
|
|
257
|
+
|
|
258
|
+
### Expected Challenge Areas
|
|
259
|
+
1. **Complex MultiIndex Examples**: May require sophisticated setup context
|
|
260
|
+
2. **Physics Calculations**: Need domain expertise for validation criteria
|
|
261
|
+
3. **Import Dependencies**: Some modules may have circular dependencies
|
|
262
|
+
4. **Data Requirements**: Examples may assume specific data files or formats
|
|
263
|
+
|
|
264
|
+
### Success Patterns to Document
|
|
265
|
+
- Working examples that can serve as templates
|
|
266
|
+
- Correct import patterns and alias usage
|
|
267
|
+
- Proper MultiIndex setup and access patterns
|
|
268
|
+
- Physics-compliant calculation examples
|
|
269
|
+
|
|
270
|
+
### Failure Pattern Analysis
|
|
271
|
+
- Common error types across multiple examples
|
|
272
|
+
- Systematic API mismatches requiring coordinated fixes
|
|
273
|
+
- Missing infrastructure (methods, classes, functions)
|
|
274
|
+
- Inconsistent conventions across different documentation sections
|
|
275
|
+
|
|
276
|
+
## ✅ Completion Criteria
|
|
277
|
+
- [ ] All 47 examples executed with detailed results capture
|
|
278
|
+
- [ ] Complete error categorization and pattern analysis
|
|
279
|
+
- [ ] Physics validation applied to all relevant examples
|
|
280
|
+
- [ ] Remediation roadmap with specific fix strategies
|
|
281
|
+
- [ ] Success baseline established for measuring progress
|
|
282
|
+
- [ ] Validation results integrated with Phase 1 inventory
|
|
283
|
+
|
|
284
|
+
## 🔄 Transition to Phase 4
|
|
285
|
+
**Preparation for Phase 4: Code Example Remediation**
|
|
286
|
+
- Complete execution results for all examples
|
|
287
|
+
- Detailed failure analysis with specific error types
|
|
288
|
+
- Prioritized remediation roadmap with fix strategies
|
|
289
|
+
- Success patterns documented for replication
|
|
290
|
+
|
|
291
|
+
**Next Phase Prerequisites:**
|
|
292
|
+
- Validated list of broken imports and missing methods
|
|
293
|
+
- Specific API fixes required for each example
|
|
294
|
+
- Template patterns for MultiIndex setup
|
|
295
|
+
- Physics validation criteria clearly defined
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
**📝 User Action Required**: After completing this phase, run:
|
|
300
|
+
```bash
|
|
301
|
+
git add plans/documentation-code-audit/3-Systematic-Validation.md \
|
|
302
|
+
validation_results.json failure_analysis.md success_patterns.md \
|
|
303
|
+
remediation_roadmap.md physics_violations.json
|
|
304
|
+
git commit -m "docs: complete Phase 3 systematic validation of all examples
|
|
305
|
+
|
|
306
|
+
- Executed comprehensive validation of all 47 code examples
|
|
307
|
+
- Captured detailed failure analysis with specific error types
|
|
308
|
+
- Identified success patterns and physics validation criteria
|
|
309
|
+
- Created prioritized remediation roadmap for Phase 4 fixes
|
|
310
|
+
- Established baseline metrics for measuring fix progress
|
|
311
|
+
|
|
312
|
+
🤖 Generated with [Claude Code](https://claude.ai/code)
|
|
313
|
+
|
|
314
|
+
Co-Authored-By: Claude <noreply@anthropic.com>"
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
**Then create compacted state for session continuity:**
|
|
318
|
+
```bash
|
|
319
|
+
python .claude/hooks/create-compaction.py \
|
|
320
|
+
--trigger "Phase 3 completion - all examples validated" \
|
|
321
|
+
--context "Complete failure analysis and remediation roadmap ready"
|
|
322
|
+
```
|