Skip to content

chore: slim wheel/sdist, drop stale Chaverot Earth LW tables#209

Merged
JoyMonteiro merged 1 commit into
feature/picket-fence-radiationfrom
chore/wheel-slim-and-stale-tables
Jun 15, 2026
Merged

chore: slim wheel/sdist, drop stale Chaverot Earth LW tables#209
JoyMonteiro merged 1 commit into
feature/picket-fence-radiationfrom
chore/wheel-slim-and-stale-tables

Conversation

@JoyMonteiro

Copy link
Copy Markdown
Member

Summary

  • Wheel size: Replace include_package_data=True with explicit package_data in setup.py, covering only the runtime _data/ assets (ozone profile, TOML configs, correlated-k .nc/.npz). Fortran sources, .pyx files, PDFs, graphify-out/, etc. are no longer bundled in the wheel.
  • sdist size: Update MANIFEST.in to include only *.py from tests/, dropping ~59 MB of binary NetCDF cache files.
  • Deleted 6 stale/defective Chaverot-sourced Earth LW tables and all code referencing them:
    • earth_hifi_lw.nc — byte-copy of earth_low_res_lw.nc (identical SHA256), added for temporary CI use
    • earth_low_res_lw_4gpt.nc, earth_low_res_lw_8gpt.nc — resolution-convergence variants; superseded by 14-band linepyline table
    • earth_low_res_lw_co2refined.nc — had 54× far-wing defect in 500–630 cm⁻¹ CO₂ band
    • earth_low_res_lw_hotmoist.nc — molar-mass calibration defect at high H₂O (τ_code/τ_true = M_mix/M_dry, ~20% underestimate at x_H₂O=50%)
    • earth_low_res_lw_4band_ngpt2_before.nc — pre-refinement intermediate artifact
  • Removed tests/test_resolution_convergence.py (tested deleted 4gpt/8gpt tables), benchmarks/benchmark_hotmoist_window_closure.py (used deleted hotmoist table), and lw_convergence() function from benchmarks/benchmark_picket_fence_vs_rrtmg.py.
  • Updated scripts/regenerate_shipped_picket_fence_tables.py docstring and RECIPES to reflect that Earth LW now comes from linepyline, not Chaverot.
  • Fixed default table name in scripts/experiments/eval_co2_interp_accuracy.py (earth_hifi_lwearth_low_res_lw).

Test plan

  • tests/test_picket_fence_lw.py — all 10 tests pass; earth_hifi_lw parametrize removed, earth_low_res_lw tested directly
  • Full test suite passes (15 files changed, 273 deletions, 39 insertions)
  • Verify wheel contents after python setup.py bdist_wheel (manual, not blocking CI)

🤖 Generated with Claude Code

Wheel: replace include_package_data=True with explicit package_data
covering only the runtime _data/ assets (ozone, TOML configs, correlated-k
.nc/.npz). Fortran sources, .pyx, PDFs, graphify-out/, etc. are no longer
bundled.

sdist: change MANIFEST.in to include only *.py from tests/, dropping ~59 MB
of binary NetCDF caches.

Delete 6 stale/defective Chaverot-sourced Earth LW tables and all code that
referenced them (test_resolution_convergence.py, benchmark_hotmoist_window_closure.py,
lw_convergence() in benchmark_picket_fence_vs_rrtmg.py). The 4-band/8-gpt
options are superseded by the 14-band linepyline table; the hotmoist table
has a molar-mass calibration defect at high H2O.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JoyMonteiro JoyMonteiro changed the base branch from develop to feature/picket-fence-radiation June 15, 2026 17:23
@JoyMonteiro JoyMonteiro merged commit d1d481d into feature/picket-fence-radiation Jun 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant