solarwindpy 0.0.1.dev0__py3-none-any.whl → 0.1.1__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.1.dist-info/METADATA +181 -0
- solarwindpy-0.1.1.dist-info/RECORD +409 -0
- {solarwindpy-0.0.1.dev0.dist-info → solarwindpy-0.1.1.dist-info}/WHEEL +1 -1
- solarwindpy-0.1.1.dist-info/licenses/LICENSE.rst +32 -0
- solarwindpy-0.1.1.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,393 @@
|
|
|
1
|
+
# Documentation Code Audit - Overview
|
|
2
|
+
|
|
3
|
+
## Plan Metadata
|
|
4
|
+
- **Plan Name**: Documentation Code Audit
|
|
5
|
+
- **Created**: 2025-08-21
|
|
6
|
+
- **Branch**: plan/documentation-code-audit
|
|
7
|
+
- **Implementation Branch**: feature/documentation-code-audit
|
|
8
|
+
- **PlanManager**: UnifiedPlanCoordinator
|
|
9
|
+
- **PlanImplementer**: UnifiedPlanCoordinator
|
|
10
|
+
- **Structure**: Multi-Phase
|
|
11
|
+
- **Total Phases**: 8
|
|
12
|
+
- **Dependencies**: None
|
|
13
|
+
- **Affects**: docs/source/*.rst, README.rst, all Python module docstrings, doctests, examples
|
|
14
|
+
- **Estimated Duration**: 12-16 hours
|
|
15
|
+
- **Status**: In Progress
|
|
16
|
+
|
|
17
|
+
## Phase Overview
|
|
18
|
+
- [x] **Phase 1: Discovery & Inventory** (Est: 2h) - Complete code example inventory across docs
|
|
19
|
+
- [ ] **Phase 2: Execution Environment Setup** (Est: 1h) - Test environment and validation tools
|
|
20
|
+
- [ ] **Phase 3: Systematic Validation** (Est: 3h) - Execute all examples and capture failures
|
|
21
|
+
- [ ] **Phase 4: Code Example Remediation** (Est: 4h) - Fix broken imports, deprecated APIs, missing data
|
|
22
|
+
- [ ] **Phase 5: Physics & MultiIndex Compliance** (Est: 2h) - Ensure examples follow physics rules and data patterns
|
|
23
|
+
- [ ] **Phase 6: Doctest Integration** (Est: 2h) - Enable automated doctest validation
|
|
24
|
+
- [ ] **Phase 7: Reporting & Documentation** (Est: 1h) - Create audit report and guidelines
|
|
25
|
+
- [ ] **Phase 8: Closeout** (Est: 1h) - Final validation and plan completion
|
|
26
|
+
|
|
27
|
+
## Phase Files
|
|
28
|
+
1. [1-Discovery-Inventory.md](./1-Discovery-Inventory.md)
|
|
29
|
+
2. [2-Execution-Environment-Setup.md](./2-Execution-Environment-Setup.md)
|
|
30
|
+
3. [3-Systematic-Validation.md](./3-Systematic-Validation.md)
|
|
31
|
+
4. [4-Code-Example-Remediation.md](./4-Code-Example-Remediation.md)
|
|
32
|
+
5. [5-Physics-MultiIndex-Compliance.md](./5-Physics-MultiIndex-Compliance.md)
|
|
33
|
+
6. [6-Doctest-Integration.md](./6-Doctest-Integration.md)
|
|
34
|
+
7. [7-Reporting-Documentation.md](./7-Reporting-Documentation.md)
|
|
35
|
+
8. [8-Closeout.md](./8-Closeout.md)
|
|
36
|
+
|
|
37
|
+
## 🎯 Objective
|
|
38
|
+
Audit, validate, and remediate all code examples across SolarWindPy documentation to ensure they are executable, scientifically accurate, and follow established physics rules and data patterns. Establish automated validation to prevent future regressions.
|
|
39
|
+
|
|
40
|
+
## 🧠 Context
|
|
41
|
+
Phase 1 discovery identified 47 code examples across 13 files with critical issues:
|
|
42
|
+
- Deprecated Plasma constructor API (`Plasma(epoch=)`)
|
|
43
|
+
- Non-existent methods (`add_ion_species`, `validate_physics`)
|
|
44
|
+
- Missing imports and undefined variables in 80% of examples
|
|
45
|
+
- Inconsistent import aliases (`sw` vs `swp`)
|
|
46
|
+
- MultiIndex data structure examples without proper setup
|
|
47
|
+
- Broken plotting and instability function references
|
|
48
|
+
|
|
49
|
+
These issues undermine user confidence and create barriers to adoption. The audit will establish comprehensive validation and automated testing to maintain example quality.
|
|
50
|
+
|
|
51
|
+
## 🔧 Technical Requirements
|
|
52
|
+
- **Python Environment**: solarwindpy-20250403 conda environment
|
|
53
|
+
- **Testing**: pytest with doctest integration
|
|
54
|
+
- **Validation**: Physics constraint checking, MultiIndex structure verification
|
|
55
|
+
- **Documentation**: Sphinx with code-block execution validation
|
|
56
|
+
- **Tools**: Custom validation scripts for physics rules and data patterns
|
|
57
|
+
- **Quality**: All examples must execute successfully and produce expected outputs
|
|
58
|
+
|
|
59
|
+
## 📂 Affected Areas
|
|
60
|
+
**RST Documentation Files:**
|
|
61
|
+
- `docs/source/usage.rst` (7 broken examples)
|
|
62
|
+
- `docs/source/tutorial/quickstart.rst` (2 examples)
|
|
63
|
+
- `docs/source/installation.rst` (5 examples)
|
|
64
|
+
- `README.rst` (6 examples)
|
|
65
|
+
|
|
66
|
+
**Python Module Docstrings:**
|
|
67
|
+
- `solarwindpy/core/plasma.py` (8 doctest examples)
|
|
68
|
+
- `solarwindpy/core/ions.py` (1 doctest example)
|
|
69
|
+
- `solarwindpy/fitfunctions/tex_info.py` (1 doctest example)
|
|
70
|
+
- `solarwindpy/tools/__init__.py` (3 doctest examples)
|
|
71
|
+
- `solarwindpy/core/spacecraft.py` (requires analysis)
|
|
72
|
+
- `solarwindpy/instabilities/*.py` (multiple files require analysis)
|
|
73
|
+
- `solarwindpy/plotting/tools.py` (requires analysis)
|
|
74
|
+
|
|
75
|
+
## ✅ Acceptance Criteria
|
|
76
|
+
- [ ] All 47+ identified code examples execute successfully
|
|
77
|
+
- [ ] All doctests pass automated validation
|
|
78
|
+
- [ ] Examples follow physics rules (SI units, thermal speed convention, NaN for missing data)
|
|
79
|
+
- [ ] MultiIndex data structure examples include proper setup
|
|
80
|
+
- [ ] Import aliases standardized to `swp` convention
|
|
81
|
+
- [ ] Deprecated API usage eliminated
|
|
82
|
+
- [ ] Automated validation integrated into CI/CD pipeline
|
|
83
|
+
- [ ] Documentation guidelines updated with example standards
|
|
84
|
+
- [ ] Test coverage maintained ≥ 95%
|
|
85
|
+
- [ ] All phase deliverables completed and documented
|
|
86
|
+
|
|
87
|
+
## 🧪 Testing Strategy
|
|
88
|
+
**Multi-Layer Validation Approach:**
|
|
89
|
+
1. **Syntax Validation**: Parse all code blocks for Python syntax errors
|
|
90
|
+
2. **Import Resolution**: Verify all imports resolve correctly
|
|
91
|
+
3. **Execution Testing**: Run examples in isolated environments
|
|
92
|
+
4. **Physics Validation**: Check outputs against physics constraints
|
|
93
|
+
5. **Doctest Integration**: Enable automated docstring example testing
|
|
94
|
+
6. **Regression Prevention**: CI/CD hooks to validate new examples
|
|
95
|
+
|
|
96
|
+
**Testing Tools:**
|
|
97
|
+
- Custom script to extract and execute RST code blocks
|
|
98
|
+
- Modified doctest runner with physics constraint checking
|
|
99
|
+
- Physics validation hooks for thermal speed, units, and data patterns
|
|
100
|
+
- MultiIndex structure validation utilities
|
|
101
|
+
|
|
102
|
+
## 📊 Value Proposition Analysis
|
|
103
|
+
|
|
104
|
+
### Scientific Software Development Value
|
|
105
|
+
**Research Efficiency Improvements:**
|
|
106
|
+
- **Eliminates user frustration**: 47 broken examples currently create adoption barriers
|
|
107
|
+
- **Accelerates onboarding**: New users can follow working examples immediately
|
|
108
|
+
- **Improves scientific reproducibility**: Validated examples ensure consistent results
|
|
109
|
+
- **Enhances research velocity**: Researchers spend time on science, not debugging examples
|
|
110
|
+
|
|
111
|
+
**Development Quality Enhancements:**
|
|
112
|
+
- **Automated validation**: CI/CD integration prevents regression of example quality
|
|
113
|
+
- **Physics compliance**: Examples follow established thermal speed and unit conventions
|
|
114
|
+
- **Data structure consistency**: MultiIndex examples include proper setup patterns
|
|
115
|
+
- **Documentation reliability**: Users can trust examples will work as shown
|
|
116
|
+
|
|
117
|
+
### Developer Productivity Value
|
|
118
|
+
**Planning Efficiency:**
|
|
119
|
+
- **Systematic approach**: 8-phase structure ensures comprehensive coverage
|
|
120
|
+
- **Automated discovery**: Inventory process scales to future documentation additions
|
|
121
|
+
- **Standardized validation**: Reusable testing patterns for ongoing maintenance
|
|
122
|
+
- **Quality gates**: Prevents accumulation of broken examples over time
|
|
123
|
+
|
|
124
|
+
**Resource Optimization:**
|
|
125
|
+
- **Reduced support burden**: Working examples decrease user support requests
|
|
126
|
+
- **Faster issue resolution**: Automated validation identifies problems early
|
|
127
|
+
- **Improved contributor experience**: Clear example standards for new contributors
|
|
128
|
+
- **Enhanced package reputation**: Professional documentation quality
|
|
129
|
+
|
|
130
|
+
## 💰 Resource & Cost Analysis
|
|
131
|
+
|
|
132
|
+
### Development Investment
|
|
133
|
+
**Implementation Time Breakdown:**
|
|
134
|
+
- **Discovery & Setup**: 3 hours (completed inventory + environment)
|
|
135
|
+
- **Validation & Remediation**: 7 hours (systematic testing + fixes)
|
|
136
|
+
- **Integration & Documentation**: 4 hours (CI/CD + guidelines)
|
|
137
|
+
- **Total Investment**: 14 hours
|
|
138
|
+
|
|
139
|
+
**Maintenance Considerations:**
|
|
140
|
+
- **Ongoing validation**: Automated via CI/CD hooks (minimal overhead)
|
|
141
|
+
- **Example updates**: Clear patterns established for future additions
|
|
142
|
+
- **Documentation reviews**: Integrated into existing PR workflow
|
|
143
|
+
- **User support reduction**: Working examples decrease support load
|
|
144
|
+
|
|
145
|
+
### Token Usage Economics
|
|
146
|
+
**Current vs Enhanced Token Usage:**
|
|
147
|
+
- **Manual debugging sessions**: 500-1000 tokens per broken example issue
|
|
148
|
+
- **User support responses**: 200-400 tokens per documentation question
|
|
149
|
+
- **Automated validation**: 50-100 tokens for CI/CD integration
|
|
150
|
+
- **Net savings**: 75-85% reduction in documentation-related support tokens
|
|
151
|
+
|
|
152
|
+
**Break-Even Analysis:**
|
|
153
|
+
- **Investment**: ~3500 tokens for comprehensive plan execution
|
|
154
|
+
- **Savings per issue**: 400-800 tokens (debugging + support)
|
|
155
|
+
- **Break-even**: 5-10 prevented issues (achieved within first month)
|
|
156
|
+
- **Annual benefit**: 15,000-25,000 tokens saved from reduced support burden
|
|
157
|
+
|
|
158
|
+
## ⚠️ Risk Assessment & Mitigation
|
|
159
|
+
|
|
160
|
+
### Technical Implementation Risks
|
|
161
|
+
**Risk Matrix:**
|
|
162
|
+
|
|
163
|
+
| Risk | Probability | Impact | Mitigation Strategy |
|
|
164
|
+
|------|-------------|--------|-----------------|
|
|
165
|
+
| API breaking changes during fixes | Medium | High | Use deprecation warnings, maintain backward compatibility |
|
|
166
|
+
| Physics validation false positives | Low | Medium | Comprehensive test suite with known-good examples |
|
|
167
|
+
| Documentation build failures | Low | High | Isolated testing environment, rollback procedures |
|
|
168
|
+
| Performance impact from validation | Low | Low | Optimize validation scripts, run in CI only |
|
|
169
|
+
|
|
170
|
+
**Technical Mitigation Strategies:**
|
|
171
|
+
- **Incremental deployment**: Fix examples in phases to isolate issues
|
|
172
|
+
- **Rollback procedures**: Git branch structure enables quick reversion
|
|
173
|
+
- **Comprehensive testing**: Validate fixes against full test suite
|
|
174
|
+
- **Physics expert review**: Ensure scientific accuracy of corrected examples
|
|
175
|
+
|
|
176
|
+
### Project Management Risks
|
|
177
|
+
**Timeline and Resource Risks:**
|
|
178
|
+
- **Scope creep**: Additional examples discovered during validation (20% buffer included)
|
|
179
|
+
- **Dependency delays**: External package updates affecting examples (version pinning)
|
|
180
|
+
- **Review bottlenecks**: Physics validation requiring expert input (parallel review process)
|
|
181
|
+
- **Integration complexity**: CI/CD hook integration (phased rollout approach)
|
|
182
|
+
|
|
183
|
+
### Scientific Workflow Risks
|
|
184
|
+
**Research Impact Assessment:**
|
|
185
|
+
- **User confusion**: Temporary inconsistency during remediation (clear communication plan)
|
|
186
|
+
- **Research disruption**: Changes to example patterns (maintain backward compatibility)
|
|
187
|
+
- **Adoption barriers**: Stricter validation requirements (comprehensive documentation)
|
|
188
|
+
- **Scientific accuracy**: Risk of introducing physics errors (expert validation process)
|
|
189
|
+
|
|
190
|
+
## 🔒 Security Proposition
|
|
191
|
+
|
|
192
|
+
### Code-Level Security Assessment
|
|
193
|
+
**Dependency Vulnerability Analysis:**
|
|
194
|
+
- **Documentation dependencies**: Sphinx, docutils, and related packages
|
|
195
|
+
- **Testing dependencies**: pytest, doctest integration tools
|
|
196
|
+
- **No new external dependencies**: Remediation uses existing SolarWindPy stack
|
|
197
|
+
- **Validation scripts**: Custom Python code with standard library usage
|
|
198
|
+
|
|
199
|
+
**Authentication and Access Control Impacts:**
|
|
200
|
+
- **No authentication changes**: Documentation remains publicly accessible
|
|
201
|
+
- **CI/CD integration**: Uses existing GitHub Actions security model
|
|
202
|
+
- **Development workflow**: Maintains current branch protection and review requirements
|
|
203
|
+
- **No sensitive data exposure**: Examples use synthetic or public scientific data
|
|
204
|
+
|
|
205
|
+
**Attack Surface Assessment:**
|
|
206
|
+
- **Documentation endpoints**: No changes to web service attack surface
|
|
207
|
+
- **Code execution**: Validation scripts run in isolated CI environment
|
|
208
|
+
- **Input validation**: Examples use controlled, validated scientific data
|
|
209
|
+
- **No external integrations**: Self-contained validation within existing infrastructure
|
|
210
|
+
|
|
211
|
+
### Scientific Computing Environment Security
|
|
212
|
+
**Development Workflow Security:**
|
|
213
|
+
- **Automated validation**: Reduces human error in example verification
|
|
214
|
+
- **Code review process**: Physics validation requires expert review
|
|
215
|
+
- **Version control**: All changes tracked through established git workflow
|
|
216
|
+
- **Isolation**: Testing occurs in dedicated conda environments
|
|
217
|
+
|
|
218
|
+
**CI/CD Pipeline Considerations:**
|
|
219
|
+
- **Validation hooks**: Integrate with existing pre-commit and GitHub Actions
|
|
220
|
+
- **No secret management**: Examples use synthetic data, no credentials required
|
|
221
|
+
- **Environment isolation**: Each validation runs in clean environment
|
|
222
|
+
- **Audit trail**: All validation results logged and tracked
|
|
223
|
+
|
|
224
|
+
**Note**: This security assessment covers code-level security only. FAIR data compliance is explicitly excluded and not implemented in this system.
|
|
225
|
+
|
|
226
|
+
## 💾 Token Usage Optimization
|
|
227
|
+
|
|
228
|
+
### Current Token Usage Patterns
|
|
229
|
+
**Manual Documentation Debugging:**
|
|
230
|
+
- **Issue identification**: 200-400 tokens per broken example discovery
|
|
231
|
+
- **Root cause analysis**: 300-600 tokens for complex API mismatches
|
|
232
|
+
- **Fix implementation**: 400-800 tokens per remediation session
|
|
233
|
+
- **Validation testing**: 200-400 tokens per example verification
|
|
234
|
+
- **Total per issue**: 1100-2200 tokens for complete resolution
|
|
235
|
+
|
|
236
|
+
**Inefficiency Sources:**
|
|
237
|
+
- **Repetitive debugging**: Similar issues across multiple examples
|
|
238
|
+
- **Context rebuilding**: Starting from scratch for each documentation issue
|
|
239
|
+
- **Manual validation**: Human-driven testing of example correctness
|
|
240
|
+
- **Support overhead**: User questions about broken examples
|
|
241
|
+
|
|
242
|
+
### Optimized Token Usage Strategy
|
|
243
|
+
**Hook-Based Generation and Validation:**
|
|
244
|
+
- **Automated discovery**: Systematic inventory with minimal token overhead
|
|
245
|
+
- **Batch processing**: Fix similar issues across multiple examples simultaneously
|
|
246
|
+
- **Pattern recognition**: Reuse solutions for common problems (import fixes, API updates)
|
|
247
|
+
- **Continuous validation**: Prevent future issues through automated testing
|
|
248
|
+
|
|
249
|
+
**Context Preservation Benefits:**
|
|
250
|
+
- **Persistent state**: Maintain context across validation phases
|
|
251
|
+
- **Knowledge transfer**: Document patterns for future maintenance
|
|
252
|
+
- **Automated reporting**: Generate summaries without manual analysis
|
|
253
|
+
- **Scaling efficiency**: Handle large documentation sets with consistent approach
|
|
254
|
+
|
|
255
|
+
**Token Savings Metrics:**
|
|
256
|
+
- **Per-issue reduction**: 70-80% fewer tokens through systematic approach
|
|
257
|
+
- **Prevention value**: Eliminate recurring support and debugging sessions
|
|
258
|
+
- **Maintenance efficiency**: Future documentation updates require minimal validation overhead
|
|
259
|
+
|
|
260
|
+
## ⏱️ Time Investment Analysis
|
|
261
|
+
|
|
262
|
+
### Implementation Time Breakdown
|
|
263
|
+
**Phase-by-Phase Estimates (with confidence intervals):**
|
|
264
|
+
|
|
265
|
+
| Phase | Estimated Time | Confidence | Key Activities |
|
|
266
|
+
|-------|----------------|------------|----------------|
|
|
267
|
+
| 1. Discovery & Inventory | 2h (completed) | 95% | Systematic code example discovery |
|
|
268
|
+
| 2. Environment Setup | 1h ± 0.5h | 90% | Testing infrastructure preparation |
|
|
269
|
+
| 3. Systematic Validation | 3h ± 1h | 80% | Execute all examples, capture failures |
|
|
270
|
+
| 4. Code Remediation | 4h ± 1.5h | 75% | Fix imports, APIs, data setup |
|
|
271
|
+
| 5. Physics Compliance | 2h ± 0.5h | 85% | Validate scientific accuracy |
|
|
272
|
+
| 6. Doctest Integration | 2h ± 1h | 80% | Automated testing setup |
|
|
273
|
+
| 7. Reporting | 1h ± 0.25h | 95% | Documentation and guidelines |
|
|
274
|
+
| 8. Closeout | 1h ± 0.25h | 90% | Final validation and completion |
|
|
275
|
+
|
|
276
|
+
**Total Estimated Duration**: 16h ± 3h (13-19 hour range)
|
|
277
|
+
|
|
278
|
+
### Time Savings Analysis
|
|
279
|
+
**Per-Plan Time Savings:**
|
|
280
|
+
- **Immediate user support reduction**: 5-8 hours/month
|
|
281
|
+
- **Faster new user onboarding**: 2-3 hours saved per new contributor
|
|
282
|
+
- **Reduced debugging overhead**: 10-15 hours/year for development team
|
|
283
|
+
- **Documentation maintenance efficiency**: 3-5 hours/quarter
|
|
284
|
+
|
|
285
|
+
**Long-Term Efficiency Gains:**
|
|
286
|
+
- **Prevented regression time**: 20-30 hours/year through automated validation
|
|
287
|
+
- **Improved contributor efficiency**: 5-10% faster documentation updates
|
|
288
|
+
- **Enhanced user adoption**: Reduced friction leads to faster community growth
|
|
289
|
+
- **Scientific productivity**: Researchers spend more time on science, less on setup
|
|
290
|
+
|
|
291
|
+
### Break-Even Calculation
|
|
292
|
+
**Investment vs Returns Analysis:**
|
|
293
|
+
- **Initial investment**: 16 hours development time
|
|
294
|
+
- **Monthly savings**: 5-8 hours in reduced support and debugging
|
|
295
|
+
- **Break-even timeline**: 2-3 months
|
|
296
|
+
- **Annual ROI**: 300-400% (48-60 hours saved vs 16 hour investment)
|
|
297
|
+
|
|
298
|
+
**Payback Timeline:**
|
|
299
|
+
- **Month 1**: 20-30% payback through immediate user support reduction
|
|
300
|
+
- **Month 3**: Full payback achieved
|
|
301
|
+
- **Year 1**: 3-4x return on investment
|
|
302
|
+
- **Ongoing**: Compound benefits through improved documentation quality
|
|
303
|
+
|
|
304
|
+
## 🎯 Usage & Adoption Metrics
|
|
305
|
+
|
|
306
|
+
### Target Use Cases
|
|
307
|
+
**Primary Applications:**
|
|
308
|
+
- **New user onboarding**: Working examples reduce adoption barriers
|
|
309
|
+
- **Scientific research**: Reliable examples accelerate research workflows
|
|
310
|
+
- **Educational materials**: Teachers and students can trust documentation
|
|
311
|
+
- **Developer contributions**: Clear example standards guide new contributors
|
|
312
|
+
|
|
313
|
+
**Secondary Applications:**
|
|
314
|
+
- **Package documentation standards**: Template for other scientific Python packages
|
|
315
|
+
- **Community building**: Professional documentation enhances package reputation
|
|
316
|
+
- **Research reproducibility**: Validated examples ensure consistent scientific results
|
|
317
|
+
- **Support infrastructure**: Reduced burden through self-service documentation
|
|
318
|
+
|
|
319
|
+
### Adoption Strategy
|
|
320
|
+
**Phased Rollout Approach:**
|
|
321
|
+
1. **Phase 1**: Core usage examples (highest impact, immediate user benefit)
|
|
322
|
+
2. **Phase 2**: Advanced scientific features (research community value)
|
|
323
|
+
3. **Phase 3**: Developer and contributor documentation (community growth)
|
|
324
|
+
4. **Phase 4**: Automated validation integration (long-term sustainability)
|
|
325
|
+
|
|
326
|
+
**Success Factors:**
|
|
327
|
+
- **User feedback integration**: Responsive to community needs and issues
|
|
328
|
+
- **Scientific accuracy**: Physics expert validation ensures credibility
|
|
329
|
+
- **Maintenance sustainability**: Automated validation prevents regression
|
|
330
|
+
- **Clear documentation**: Guidelines enable community contributions
|
|
331
|
+
|
|
332
|
+
### Success Metrics
|
|
333
|
+
**Quantitative Indicators:**
|
|
334
|
+
- **Example execution rate**: Target 100% successful execution
|
|
335
|
+
- **User support reduction**: 60-80% decrease in documentation-related issues
|
|
336
|
+
- **Documentation build time**: <5% increase despite enhanced validation
|
|
337
|
+
- **Community contributions**: 25-40% increase in documentation-related PRs
|
|
338
|
+
- **New user retention**: 15-25% improvement in first-month engagement
|
|
339
|
+
|
|
340
|
+
**Qualitative Indicators:**
|
|
341
|
+
- **User satisfaction**: Positive feedback on documentation reliability
|
|
342
|
+
- **Scientific community adoption**: Citations and academic usage
|
|
343
|
+
- **Developer experience**: Contributor feedback on documentation standards
|
|
344
|
+
- **Package reputation**: Recognition as high-quality scientific software
|
|
345
|
+
- **Educational impact**: Adoption in academic courses and tutorials
|
|
346
|
+
|
|
347
|
+
**Measurement Timeline:**
|
|
348
|
+
- **Immediate (1 month)**: Example execution success rate
|
|
349
|
+
- **Short-term (3 months)**: User support ticket reduction
|
|
350
|
+
- **Medium-term (6 months)**: Community contribution metrics
|
|
351
|
+
- **Long-term (12 months)**: User retention and satisfaction scores
|
|
352
|
+
|
|
353
|
+
## 📊 Progress Tracking
|
|
354
|
+
|
|
355
|
+
### Overall Status
|
|
356
|
+
- **Phases Completed**: 1/8
|
|
357
|
+
- **Tasks Completed**: 8/45 (estimated)
|
|
358
|
+
- **Time Invested**: 2h of 16h
|
|
359
|
+
- **Last Updated**: 2025-08-21
|
|
360
|
+
|
|
361
|
+
### Implementation Notes
|
|
362
|
+
**Phase 1 Completion (Discovery & Inventory):**
|
|
363
|
+
- Comprehensive inventory completed: 47 examples across 13 files
|
|
364
|
+
- Critical issues identified: deprecated APIs, broken imports, missing data setup
|
|
365
|
+
- Inventory JSON created with detailed issue categorization
|
|
366
|
+
- Next phase priorities established
|
|
367
|
+
|
|
368
|
+
**Current Status:**
|
|
369
|
+
- Branch: plan/documentation-code-audit (active)
|
|
370
|
+
- Inventory file: docs_audit_inventory.json (comprehensive)
|
|
371
|
+
- Ready to proceed with Phase 2: Execution Environment Setup
|
|
372
|
+
|
|
373
|
+
## 🔗 Related Plans
|
|
374
|
+
- **readthedocs-customization-enhancement**: Complementary documentation improvements
|
|
375
|
+
- **api-documentation-overhaul**: Future plan for comprehensive API docs
|
|
376
|
+
- **testing-infrastructure-enhancement**: Related automated testing improvements
|
|
377
|
+
|
|
378
|
+
## 💬 Notes & Considerations
|
|
379
|
+
**Key Insights from Phase 1:**
|
|
380
|
+
- 80% of examples lack proper setup/imports - systemic issue requiring standardized patterns
|
|
381
|
+
- Deprecated Plasma constructor appears in multiple critical examples
|
|
382
|
+
- MultiIndex examples assume complex data structure without initialization
|
|
383
|
+
- Physics validation requirements not currently enforced in examples
|
|
384
|
+
- Inconsistent import alias usage creates user confusion
|
|
385
|
+
|
|
386
|
+
**Strategic Considerations:**
|
|
387
|
+
- Prioritize high-impact usage.rst fixes for immediate user benefit
|
|
388
|
+
- Establish example standards to prevent future regressions
|
|
389
|
+
- Integrate physics validation into example testing workflow
|
|
390
|
+
- Consider automated example generation for complex data structures
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
*This multi-phase plan uses the plan-per-branch architecture where implementation occurs on feature/documentation-code-audit branch with progress tracked via commit checksums across phase files.*
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# Phase 1: Discovery & Inventory
|
|
2
|
+
|
|
3
|
+
## Phase Metadata
|
|
4
|
+
- **Status**: ✅ Completed
|
|
5
|
+
- **Estimated Duration**: 2 hours
|
|
6
|
+
- **Actual Duration**: 2 hours
|
|
7
|
+
- **Completion Date**: 2025-08-21
|
|
8
|
+
- **Git Commit**: <checksum>
|
|
9
|
+
- **Branch**: plan/documentation-code-audit
|
|
10
|
+
|
|
11
|
+
## 🎯 Objective
|
|
12
|
+
Conduct comprehensive discovery and inventory of all code examples across SolarWindPy documentation to identify broken examples, deprecated APIs, missing imports, and compliance issues.
|
|
13
|
+
|
|
14
|
+
## 📋 Tasks Checklist
|
|
15
|
+
- [x] **Scan RST documentation files** (45 min)
|
|
16
|
+
- [x] `docs/source/usage.rst` - 7 code blocks identified
|
|
17
|
+
- [x] `docs/source/tutorial/quickstart.rst` - 2 code blocks identified
|
|
18
|
+
- [x] `docs/source/installation.rst` - 5 code blocks identified
|
|
19
|
+
- [x] `README.rst` - 6 code blocks identified
|
|
20
|
+
|
|
21
|
+
- [x] **Analyze Python module docstrings** (60 min)
|
|
22
|
+
- [x] `solarwindpy/core/plasma.py` - 8 doctest examples
|
|
23
|
+
- [x] `solarwindpy/core/ions.py` - 1 doctest example
|
|
24
|
+
- [x] `solarwindpy/fitfunctions/tex_info.py` - 1 doctest example
|
|
25
|
+
- [x] `solarwindpy/tools/__init__.py` - 3 doctest examples
|
|
26
|
+
- [x] Additional modules requiring detailed analysis identified
|
|
27
|
+
|
|
28
|
+
- [x] **Categorize issues by severity** (10 min)
|
|
29
|
+
- [x] Critical: Deprecated API usage (Plasma constructor)
|
|
30
|
+
- [x] Critical: Non-existent methods (add_ion_species, validate_physics)
|
|
31
|
+
- [x] High: Missing imports and undefined variables (80% of examples)
|
|
32
|
+
- [x] Medium: Inconsistent import aliases (sw vs swp)
|
|
33
|
+
- [x] Medium: Missing MultiIndex data structure setup
|
|
34
|
+
|
|
35
|
+
- [x] **Create comprehensive inventory document** (5 min)
|
|
36
|
+
- [x] JSON format with detailed issue categorization
|
|
37
|
+
- [x] Line-by-line tracking of all code examples
|
|
38
|
+
- [x] Dependencies and issue classification
|
|
39
|
+
- [x] Priority recommendations for remediation
|
|
40
|
+
|
|
41
|
+
## 📁 Deliverables
|
|
42
|
+
- ✅ **docs_audit_inventory.json**: Comprehensive inventory of 47 examples across 13 files
|
|
43
|
+
- ✅ **Issue categorization**: Critical, High, Medium, Low severity classifications
|
|
44
|
+
- ✅ **Pattern analysis**: Common import patterns, data access patterns, operations
|
|
45
|
+
- ✅ **Next phase priorities**: Actionable priority list for systematic remediation
|
|
46
|
+
|
|
47
|
+
## 🔍 Key Findings
|
|
48
|
+
|
|
49
|
+
### Critical Issues Discovered
|
|
50
|
+
1. **Deprecated Plasma Constructor**: `Plasma(epoch=)` usage in usage.rst
|
|
51
|
+
2. **Non-existent Methods**: `add_ion_species()`, `validate_physics()` referenced but don't exist
|
|
52
|
+
3. **Broken Import References**: `solarwindpy.plotting.time_series`, `solarwindpy.instabilities.beta_ani_inst`
|
|
53
|
+
|
|
54
|
+
### High-Impact Issues
|
|
55
|
+
4. **Missing Data Setup**: 80% of examples assume complex MultiIndex data without initialization
|
|
56
|
+
5. **Undefined Variables**: `data`, `df`, `temperature_data` variables used without definition
|
|
57
|
+
6. **Incomplete Examples**: Ellipsis (`...`) in DataFrame construction examples
|
|
58
|
+
|
|
59
|
+
### Consistency Issues
|
|
60
|
+
7. **Import Alias Inconsistency**: Mixed usage of `import solarwindpy as sw` vs `import solarwindpy as swp`
|
|
61
|
+
8. **Missing Dependencies**: Examples reference modules without proper imports
|
|
62
|
+
|
|
63
|
+
### Statistics Summary
|
|
64
|
+
- **Total Examples Found**: 47
|
|
65
|
+
- **Files with Examples**: 13
|
|
66
|
+
- **Examples with Issues**: 42 (89%)
|
|
67
|
+
- **Critical Issues**: 8
|
|
68
|
+
- **High-Impact Issues**: 15
|
|
69
|
+
- **Medium Issues**: 19
|
|
70
|
+
|
|
71
|
+
## 🔄 Impact Analysis
|
|
72
|
+
|
|
73
|
+
### User Experience Impact
|
|
74
|
+
- **New User Friction**: Broken examples create immediate adoption barriers
|
|
75
|
+
- **Documentation Credibility**: 89% failure rate undermines package reliability
|
|
76
|
+
- **Support Burden**: Broken examples generate user support requests
|
|
77
|
+
- **Research Productivity**: Scientists waste time debugging instead of doing research
|
|
78
|
+
|
|
79
|
+
### Development Impact
|
|
80
|
+
- **Maintenance Overhead**: Manual validation required for all documentation changes
|
|
81
|
+
- **Quality Assurance**: No automated validation of example correctness
|
|
82
|
+
- **Contributor Confusion**: Inconsistent patterns make contribution difficult
|
|
83
|
+
- **Technical Debt**: Accumulated broken examples require systematic remediation
|
|
84
|
+
|
|
85
|
+
## 📊 Remediation Priority Matrix
|
|
86
|
+
|
|
87
|
+
### Phase 2 Immediate Priorities
|
|
88
|
+
1. **Environment Setup**: Create testing infrastructure for example validation
|
|
89
|
+
2. **Critical API Fixes**: Address deprecated Plasma constructor immediately
|
|
90
|
+
3. **Import Standardization**: Establish consistent `swp` alias usage
|
|
91
|
+
|
|
92
|
+
### Phase 3-4 Core Remediation
|
|
93
|
+
4. **Data Structure Examples**: Create reusable MultiIndex setup patterns
|
|
94
|
+
5. **Method Validation**: Verify all referenced methods exist and work correctly
|
|
95
|
+
6. **Missing Imports**: Systematic addition of required imports to all examples
|
|
96
|
+
|
|
97
|
+
### Phase 5-6 Quality Assurance
|
|
98
|
+
7. **Physics Compliance**: Ensure examples follow thermal speed and unit conventions
|
|
99
|
+
8. **Automated Testing**: Integrate doctest and example validation into CI/CD
|
|
100
|
+
|
|
101
|
+
## 🔗 Dependencies for Next Phase
|
|
102
|
+
- **Testing Environment**: Conda environment with full SolarWindPy installation
|
|
103
|
+
- **Validation Scripts**: Tools to extract and execute RST code blocks
|
|
104
|
+
- **Physics Validation**: Integration with existing physics constraint checking
|
|
105
|
+
- **CI/CD Integration**: Hooks for automated example testing
|
|
106
|
+
|
|
107
|
+
## 📝 Implementation Notes
|
|
108
|
+
|
|
109
|
+
### Discovery Process
|
|
110
|
+
1. **Systematic File Scanning**: Used grep and manual analysis to identify all code blocks
|
|
111
|
+
2. **Issue Classification**: Categorized issues by type and severity for prioritization
|
|
112
|
+
3. **Pattern Recognition**: Identified common problems for batch remediation strategies
|
|
113
|
+
4. **Dependency Mapping**: Tracked import requirements and missing dependencies
|
|
114
|
+
|
|
115
|
+
### Documentation Structure Analysis
|
|
116
|
+
- **RST Files**: Mix of `code-block:: python` and `code-block:: bash` directives
|
|
117
|
+
- **Docstring Examples**: Standard Python doctest format with `>>>` prompts
|
|
118
|
+
- **Complexity Range**: From simple imports to complex MultiIndex data manipulation
|
|
119
|
+
- **Scientific Domain**: Physics calculations, data analysis, visualization examples
|
|
120
|
+
|
|
121
|
+
### Key Patterns Identified
|
|
122
|
+
```python
|
|
123
|
+
# Common import patterns found:
|
|
124
|
+
import solarwindpy as swp # Preferred standard
|
|
125
|
+
import solarwindpy as sw # Inconsistent usage
|
|
126
|
+
import solarwindpy.plotting as swpp
|
|
127
|
+
from solarwindpy.fitfunctions import Gaussian
|
|
128
|
+
from solarwindpy.instabilities import beta_ani_inst # Broken
|
|
129
|
+
|
|
130
|
+
# Common data access patterns:
|
|
131
|
+
plasma.data.xs('n', level='M') # Number density
|
|
132
|
+
plasma.data.xs('v', level='M') # Velocity
|
|
133
|
+
plasma.p1.n # Proton density shorthand
|
|
134
|
+
plasma.get_ion('p1') # Ion access method
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## ✅ Completion Criteria Met
|
|
138
|
+
- ✅ All documentation files systematically analyzed
|
|
139
|
+
- ✅ Complete inventory with line-by-line tracking
|
|
140
|
+
- ✅ Issues categorized by severity and type
|
|
141
|
+
- ✅ Remediation priorities established
|
|
142
|
+
- ✅ Next phase dependencies identified
|
|
143
|
+
- ✅ Comprehensive JSON inventory document created
|
|
144
|
+
|
|
145
|
+
## 🔄 Transition to Phase 2
|
|
146
|
+
**Ready for Phase 2: Execution Environment Setup**
|
|
147
|
+
- Inventory complete with 47 examples catalogued
|
|
148
|
+
- Critical issues identified and prioritized
|
|
149
|
+
- Testing infrastructure requirements defined
|
|
150
|
+
- Validation strategy framework established
|
|
151
|
+
|
|
152
|
+
**Next Actions:**
|
|
153
|
+
1. Set up isolated testing environment
|
|
154
|
+
2. Create example extraction and execution tools
|
|
155
|
+
3. Establish validation criteria and success metrics
|
|
156
|
+
4. Begin systematic validation of highest-priority examples
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
**📝 User Action Required**: After reviewing this completed phase, run:
|
|
161
|
+
```bash
|
|
162
|
+
git add plans/documentation-code-audit/1-Discovery-Inventory.md docs_audit_inventory.json
|
|
163
|
+
git commit -m "docs: complete Phase 1 discovery and inventory for documentation code audit
|
|
164
|
+
|
|
165
|
+
- Comprehensive inventory of 47 examples across 13 files
|
|
166
|
+
- Identified critical issues: deprecated APIs, broken imports, missing data
|
|
167
|
+
- Categorized issues by severity with remediation priorities
|
|
168
|
+
- Created docs_audit_inventory.json with detailed findings
|
|
169
|
+
- Ready for Phase 2: Execution Environment Setup
|
|
170
|
+
|
|
171
|
+
🤖 Generated with [Claude Code](https://claude.ai/code)
|
|
172
|
+
|
|
173
|
+
Co-Authored-By: Claude <noreply@anthropic.com>"
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Then create compacted state for session continuity:**
|
|
177
|
+
```bash
|
|
178
|
+
python .claude/hooks/create-compaction.py \
|
|
179
|
+
--trigger "Phase 1 completion - comprehensive discovery and inventory complete" \
|
|
180
|
+
--context "47 examples catalogued, ready for Phase 2 environment setup"
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
**Phase 1 Complete** ✅
|