fix: truncate chi metadata at 0 #192

Merged
perl_d merged 1 commits from fix/floor_chi_for_jfjoch into main 2026-09-02 10:14:20 +02:00
+1 -1
View File
@@ -174,7 +174,7 @@ class JFJochWrapper:
# build common dataset settings
if s.geom.smargon.phi_deg is not None and s.geom.smargon.chi_deg is not None:
smargon_phi_chi = DatasetSettingsSmargon(
phi_deg=s.geom.smargon.phi_deg, chi_deg=s.geom.smargon.chi_deg
phi_deg=s.geom.smargon.phi_deg, chi_deg=max(s.geom.smargon.chi_deg, 0)
)
else:
smargon_phi_chi = None