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 Jul 1, 2024
1 parent bb1e013 commit 3a00a34
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 @@ -241,6 +241,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 @@ -949,6 +955,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 3a00a34

Please sign in to comment.