shape paramEffect handling for TemplateSample #28
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.
Hi,
I encountered a apparently rare situation when building TemplateSamples with shape nuisances using histograms as up/down effect, where both the norm of the nominal and up/down hists is ~1.
First part is that paramEffectUp is saved even if the effect is nil (i.e.
np.all(effect_up==1)) whenever one gives also something notNoneas effect_down even ifnp.all(effect_down==1). Thats why I moved the lineself._paramEffectsUp[param] = effect_updown to the point where the check if the down-variation is different from 1 has been done.Second part is in the symmetrisation of the paramEffect if
effect_downis None for a parameter. In the functionsetParamEffecteffects for a shape param are stored as relatives but here it is handled as absolutes, if i understand this correctly.So whenever one would provide only the param up-effect the constructed down-effect could be some bogus negative array. Which happened to me before i fixed the first part.
Does it make sense to fix it like this, or am i missing something?