本文整理汇总了Python中pyFAI.azimuthalIntegrator.AzimuthalIntegrator.saxs方法的典型用法代码示例。如果您正苦于以下问题:Python AzimuthalIntegrator.saxs方法的具体用法?Python AzimuthalIntegrator.saxs怎么用?Python AzimuthalIntegrator.saxs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyFAI.azimuthalIntegrator.AzimuthalIntegrator
的用法示例。
在下文中一共展示了AzimuthalIntegrator.saxs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from pyFAI.azimuthalIntegrator import AzimuthalIntegrator [as 别名]
# 或者: from pyFAI.azimuthalIntegrator.AzimuthalIntegrator import saxs [as 别名]
if wavelength is not None:
integrator.wavelength = wavelength
print integrator
if mask is not None:
mask = 1 - fabio.open(mask).data
for oneFile in processFile:
t0 = time.time()
fabioFile = fabio.open(oneFile)
if fabioFile.nframes > 1:
for meth in ["BBox", "cython", "numpy"]:
outFile = os.path.splitext(oneFile)[0] + "_" + meth + ".dat"
integrator.saxs(
data=fabioFile.data.astype("float32"),
nbPt=min(fabioFile.data.shape),
dummy=dummy,
delta_dummy=delta_dummy,
mask=mask,
variance=fabioFile.next().data.astype("float32"),
filename=outFile,
method=meth,
)
else:
for meth in ["BBox", "cython", "numpy"]:
outFile = os.path.splitext(oneFile)[0] + "_" + meth + ".dat"
integrator.saxs(
data=fabioFile.data,
nbPt=min(fabioFile.data.shape),
dummy=dummy,
delta_dummy=delta_dummy,
mask=mask,
filename=outFile,
method=meth,