Skip to content

Commit

Permalink
Merge pull request #2392 from EdgarGF93/fix_pilx_shapekey
Browse files Browse the repository at this point in the history
[diffmap-view] fix shape key
  • Loading branch information
kif authored Jan 24, 2025
2 parents ee734f1 + 7259a44 commit 157b4e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pyFAI/gui/pilx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ def compute_radial_values(pyFAI_config_as_str: str) -> numpy.ndarray:
"splineFile": pyFAI_config.get("splineFile"),
"max_shape": pyFAI_config.get("max_shape")})

scaled_values = ai.center_array(pyFAI_config["shape"],
shape = pyFAI_config.get("shape")
if shape is None:
shape = ai.detector.shape
scaled_values = ai.center_array(shape,
pyFAI_config["unit"])
return scaled_values

Expand Down

0 comments on commit 157b4e3

Please sign in to comment.