Modifications after CristallinaMX beamtime

This commit is contained in:
2024-06-27 20:26:11 +02:00
parent 4e59930972
commit 1717e171b9
37 changed files with 1289 additions and 1140 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
#include "CPUSpotFinder.h"
#include "../common/DiffractionGeometry.h"
#include "Regression.h"
#include "../common/CUDAWrapper.h"
double stddev(const std::vector<float> &v) {
if (v.size() <= 1)
@@ -26,7 +27,7 @@ double stddev(const std::vector<float> &v) {
MXAnalyzer::MXAnalyzer(const DiffractionExperiment &in_experiment)
: experiment(in_experiment) {
auto uc = experiment.GetUnitCell();
if (uc) {
if (uc && (get_gpu_count() > 0)) {
try {
indexer = std::make_unique<IndexerWrapper>();
indexer->Setup(uc.value());