Skip to content

Commit

Permalink
DOC: Add full affine transform to output logs
Browse files Browse the repository at this point in the history
  • Loading branch information
carterbox committed Jun 17, 2024
1 parent b24fd72 commit 39e8611
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tike/ptycho/ptycho.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ def reconstruct(
" Probably your estimate of photon energy and/or sample to detector "
"distance is off by that amount."
)
t = context.parameters.position_options.transform.asarray()
logger.info(f"""Affine transform parameters:
{t[0,0]: .3e}, {t[0,1]: .3e}
{t[1,0]: .3e}, {t[1,1]: .3e}
""")

return context.parameters

Expand Down Expand Up @@ -947,6 +953,12 @@ def reconstruct_multigrid(
" Probably your estimate of photon energy and/or sample to detector "
"distance is off by that amount."
)
t = context.parameters.position_options.transform.asarray()
logger.info(f"""Affine transform parameters:
{t[0,0]: .3e}, {t[0,1]: .3e}
{t[1,0]: .3e}, {t[1,1]: .3e}
""")
return context.parameters

# Upsample result to next grid
Expand Down

0 comments on commit 39e8611

Please sign in to comment.