Skip to content

Commit

Permalink
parse shape
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar1993a committed Jan 23, 2025
1 parent ee734f1 commit fef933e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pyFAI/gui/pilx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ def compute_radial_values(pyFAI_config_as_str: str) -> numpy.ndarray:
"pixel2": pyFAI_config.get("pixel2"),
"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 fef933e

Please sign in to comment.