Detector Geometry customization
This commit is contained in:
@@ -117,7 +117,8 @@ TEST_CASE("HDF5File_Delete", "[HDF5][Unit]") {
|
||||
TEST_CASE("HDF5MasterFile", "[HDF5][Full]") {
|
||||
{
|
||||
RegisterHDF5Filter();
|
||||
DiffractionExperiment x(2, {4,4}, 8, 36);
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
|
||||
x.FilePrefix("test01").ImagesPerTrigger(950);
|
||||
|
||||
StartMessage start_message;
|
||||
@@ -139,7 +140,7 @@ TEST_CASE("HDF5MasterFile", "[HDF5][Full]") {
|
||||
TEST_CASE("HDF5Writer", "[HDF5][Full]") {
|
||||
{
|
||||
RegisterHDF5Filter();
|
||||
DiffractionExperiment x(2, {4,4}, 8, 36);
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
std::vector<SpotToSave> spots;
|
||||
|
||||
x.FilePrefix("test02_1p10").ImagesPerTrigger(5).DataFileCount(2).Compression(JFJochProtoBuf::NO_COMPRESSION);
|
||||
@@ -166,7 +167,7 @@ TEST_CASE("HDF5Writer", "[HDF5][Full]") {
|
||||
TEST_CASE("HDF5Writer_Spots", "[HDF5][Full]") {
|
||||
{
|
||||
RegisterHDF5Filter();
|
||||
DiffractionExperiment x(2, {4,4}, 8, 36);
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
std::vector<SpotToSave> spots;
|
||||
|
||||
spots.push_back({10,10,7});
|
||||
@@ -195,7 +196,8 @@ TEST_CASE("HDF5Writer_Spots", "[HDF5][Full]") {
|
||||
}
|
||||
|
||||
TEST_CASE("HDF5Writer_VDS", "[HDF5][Full]") {
|
||||
DiffractionExperiment x(1, {1});
|
||||
DiffractionExperiment x(DetectorGeometry(1));
|
||||
|
||||
x.ImagesPerTrigger(5).DataFileCount(5)
|
||||
.Compression(JFJochProtoBuf::NO_COMPRESSION).FilePrefix("vds");
|
||||
|
||||
@@ -250,9 +252,8 @@ TEST_CASE("HDF5Writer_VDS", "[HDF5][Full]") {
|
||||
}
|
||||
|
||||
TEST_CASE("HDF5Writer_VDS_missing", "[HDF5][Full]") {
|
||||
DiffractionExperiment x(1, {1});
|
||||
x.ImagesPerTrigger(5).DataFileCount(5)
|
||||
.Compression(JFJochProtoBuf::NO_COMPRESSION).FilePrefix("vds_missing");
|
||||
DiffractionExperiment x(DetectorGeometry(1));
|
||||
x.ImagesPerTrigger(5).DataFileCount(5).Compression(JFJochProtoBuf::NO_COMPRESSION).FilePrefix("vds_missing");
|
||||
|
||||
{
|
||||
RegisterHDF5Filter();
|
||||
@@ -307,9 +308,8 @@ TEST_CASE("HDF5Writer_VDS_missing", "[HDF5][Full]") {
|
||||
|
||||
|
||||
TEST_CASE("HDF5Writer_VDS_zero_images", "[HDF5][Full]") {
|
||||
DiffractionExperiment x(1, {1});
|
||||
x.ImagesPerTrigger(5).DataFileCount(5)
|
||||
.Compression(JFJochProtoBuf::NO_COMPRESSION).FilePrefix("vds_zero");
|
||||
DiffractionExperiment x(DetectorGeometry(1));
|
||||
x.ImagesPerTrigger(5).DataFileCount(5).Compression(JFJochProtoBuf::NO_COMPRESSION).FilePrefix("vds_zero");
|
||||
|
||||
{
|
||||
RegisterHDF5Filter();
|
||||
|
||||
Reference in New Issue
Block a user