Indexer: Add more general Run() call with reciprocal coordinates to accommodate more demanding schemes
This commit is contained in:
@@ -36,11 +36,11 @@ TEST_CASE("FFTIndexer") {
|
||||
logger.Info("Spots {}", vec.size());
|
||||
|
||||
auto start = std::chrono::high_resolution_clock::now();
|
||||
auto result = indexer->Run(vec, vec.size());
|
||||
auto result = indexer->Run(vec);
|
||||
auto end = std::chrono::high_resolution_clock::now();
|
||||
|
||||
REQUIRE(result.size() == 1);
|
||||
auto uc_out = result[0].GetUnitCell();
|
||||
REQUIRE(result.lattice.size() == 1);
|
||||
auto uc_out = result.lattice[0].GetUnitCell();
|
||||
CHECK(uc_out.a == Catch::Approx(uc.a));;
|
||||
CHECK(uc_out.b == Catch::Approx(uc.b));;
|
||||
CHECK(uc_out.c == Catch::Approx(uc.c));;
|
||||
|
||||
Reference in New Issue
Block a user