Skip to content

Commit

Permalink
Merge pull request #326 from jonwright/master
Browse files Browse the repository at this point in the history
frelon peaksearch refactor
  • Loading branch information
jonwright authored Sep 19, 2024
2 parents 8c895dd + f035726 commit 42c3acd
Show file tree
Hide file tree
Showing 12 changed files with 576 additions and 373 deletions.
13 changes: 11 additions & 2 deletions ImageD11/blobcorrector.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def __init__(self, argsplinefile, orientation="edf"):
"""
Argument is the name of a fit2d spline file
"""
import warnings
warnings.warn("For new data from ID11, better to use the dx,dy files instead of Fit2d spline", DeprecationWarning)
self.splinefile = argsplinefile
self.tolerance = 1e-5
self.orientation = orientation
Expand Down Expand Up @@ -341,12 +343,19 @@ def correct_cf_with_spline(cf, spline_file):
"""Creates a correctorclass from the spline file
Corrects the columnfile with the spline file
Returns the corrected columnfile"""

corrector = correctorclass(spline_file)
corrector.correct_px_lut(cf)

return cf

def correct_cf_with_dxdyfiles(cf, dxfile, dyfile):
"""Corrects the columnfile with the dx/dy file
Returns the corrected columnfile"""
es = eiger_spatial( dxfile, dyfile )
pkin = { 's_raw': cf['s_raw'], 'f_raw': cf['f_raw'] }
pkout = es( pkin )
cf.addcolumn( pkout['sc'], 'sc' )
cf.addcolumn( pkout['fc'], 'fc' )
return cf

#
#"""
Expand Down
Loading

0 comments on commit 42c3acd

Please sign in to comment.