Skip to content

Commit

Permalink
Bugfix (missing parentheses)
Browse files Browse the repository at this point in the history
  • Loading branch information
phyy-nx committed Aug 4, 2023
1 parent e132f70 commit 35cc9fa
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/dxtbx/nexus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,15 @@ def equipment_component_key(dependency):
A = nxmx.get_cumulative_transformation(dependency_chain)

origin = MCSTAS_TO_IMGCIF @ (
module.fast_pixel_direction.offset.to("mm").magnitude
if module.fast_pixel_direction.offset is not None
else np.array([0.0, 0.0, 0.0])
+ module.slow_pixel_direction.offset.to("mm").magnitude
if module.slow_pixel_direction.offset is not None
else np.array([0.0, 0.0, 0.0]) + A[0, :3, 3]
(
module.fast_pixel_direction.offset.to("mm").magnitude
if module.fast_pixel_direction.offset is not None
else np.array([0.0, 0.0, 0.0])
+ module.slow_pixel_direction.offset.to("mm").magnitude
if module.slow_pixel_direction.offset is not None
else np.array([0.0, 0.0, 0.0])
)
+ A[0, :3, 3]
)

if (
Expand Down

0 comments on commit 35cc9fa

Please sign in to comment.