bump narf (variable axis fix)#6
Merged
Merged
Conversation
lucalavezzo
added a commit
to lucalavezzo/WRemnants
that referenced
this pull request
Jun 23, 2026
Carry the reco x gen response matrix R (and the gen-total N_gen) through the setupRabbit datacard instead of a separate file, so the fit is self-contained and R is always consistent with the run that built the card (review comment WMass#6). - setupRabbit: after the input loop, extract R + N_gen once from the unfolding histmaker output and embed them in the fit input via rabbit add_auxiliary (the "scetlib_np" group). Presence-based lenient guard (response_matrix.has_response): embed only when an input carries both the response hist and the prefsr gen-total; raise if more than one qualifies. - response_matrix: add has_response() (cheap both-present check, never raises). - param_model: read R only from indata.auxiliary["scetlib_np"]; drop the unfolding_hdf5_path argument and the sigma_gen(lambda_c) N_gen fallback (raise if N_gen is absent -- the proxy made the central closure circular). - scetlib_np package __init__: import SCETlibNPParamModel lazily (PEP 562) so response_matrix can be imported by setupRabbit without pulling in TensorFlow. Requires a rabbit with TensorWriter.add_auxiliary (WMass/rabbit#145); the submodule bump is a follow-up. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
No description provided.