xpsi-group / xpsi

X-PSI: X-ray Pulse Simulation and Inference
Other
34 stars 21 forks source link

Possible bug in module generator #380

Closed sguillot closed 4 months ago

sguillot commented 4 months ago

The if evaluation in the module generator

for name in likelihood.names:
    if 'phase_shift' or 'azimuth' in name:
        wrapped_params[likelihood.index(name)] = 1

should probably be replaced by

if ('phase_shift' in name) or ('azimuth' in name):