Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions 999-load.py
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
from xpdan.startup.analysis import start_analysis
from pyFAI.geometry import Geometry
from xpdtools.calib import _save_calib_param
from xpdan.pipelines.pipeline_utils import _timestampstr
import time

def calib_from_fit2d(directDist, centerX, centerY,
tilt=0.0, tiltPlanRotation=0.0,
pixelX=200, pixelY=200, splineFile=None):
g = Geometry()
g = g.setFit2D(directDist, centerX, centerY, tilt, tiltPlanRotation,
pixelX, pixelY, splineFile)
_save_calib_param(g, _timestampstr(time.time()),
os.path.join(glbl_dict['config_base'], glbl_dict['calib_config_name']))