Repository navigation
Shrink PyPI sdist, mask observed NaNs before subtraction, and harden lint runner - #538
Merged
Merged
Conversation
…ore subtraction, and harden lint runner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.whland.tar.gzsdist): AddMANIFEST.inpruningtests/,reports/,benchmarks/,experiments/,docs/,examples/,ops/,scripts/, etc., shrinking the PyPI sdist from 1.7 MB (7.14 MB uncompressed) to ~343 KiB (~373 KiB wheel). Enforce< 600 KBsize gates and root allowlists on both artifacts in.github/workflows/tests.ymlandtests/test_public_package_imports.py.masked_mixture_nll: Maskobservedviatorch.where(mask.bool(), observed, 0.)before subtractingcomponents[None]so unobservedNaNentries cannot contaminate gradients whenobserved.requires_gradis True. Exportjoint_reconstruction_loss,masked_mixture_nll,NeuralComponentImputer, andmasked_quantile_transport_lossfrom top-levelparticlegan.shutil.which('ruff')whensys.executable -m ruffis unavailable and raise a clearRuntimeErrorinstead ofJSONDecodeErrorwhen Ruff exits with empty stdout.bispf_shape_gates=Falseablation readout (reports/prior-ablation-2026-10-25/README.md, Arm A4: 13/49 vs. 19/49 PASS) and linkdocs/bispf-input-domains.md(input_domain='continuous' | 'categorical') inREADME.md.