Source code for ewoksbm29.tests.test_models
from ..models import dahu
from ..models import ispyb
[docs]
def test_integrate_parameters():
_ = dahu.IntegrateParameters(
plugin_name="bm29.integratemultiframe",
input_file="/tmp/sample_lima0000.h5",
poni_file="/tmp/test.poni",
energy=12.4,
)
[docs]
def test_subtract_parameters():
_ = dahu.SubtractParameters(
plugin_name="bm29.subtractbuffer",
sample_file="/tmp/sample_lima0000.h5",
buffer_files=["/tmp/buffer_lima0000.h5", "/tmp/buffer_lima0001.h5"],
)
[docs]
def test_hplc_summary_parameters():
_ = dahu.HplcSummaryParameters(
plugin_name="bm29.hplc",
integrated_files=["/tmp/sample_lima0000.h5", "/tmp/sample_lima0001.h5"],
)
[docs]
def test_mesh_rebuild_parameters():
_ = dahu.MeshRebuildParameters(
plugin_name="bm29.mesh",
integrated_files=["/tmp/sample_lima0000.h5", "/tmp/sample_lima0001.h5"],
scan={
"fast_motor_name": "chipz",
"fast_motor_start": -4,
"fast_motor_stop": -6,
"fast_motor_step": 10,
"slow_motor_name": "chipy",
"slow_motor_start": -7,
"slow_motor_stop": -11,
"slow_motor_step": 10,
"backnforth": True,
},
)