Skip to content

Commit

Permalink
Merge pull request #320 from carterbox/log-affine
Browse files Browse the repository at this point in the history
DOC: Add full affine transform to output logs
  • Loading branch information
carterbox authored Jun 17, 2024
2 parents b24fd72 + 39e8611 commit 6c6e1ce
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 6c6e1ce

Please sign in to comment.