diff --git a/rugnux/Rugnux.cpp b/rugnux/Rugnux.cpp index c4a2c9b49..916cbfceb 100644 --- a/rugnux/Rugnux.cpp +++ b/rugnux/Rugnux.cpp @@ -129,6 +129,12 @@ RotationScaleWalk WalkRotationScale(double first_fit, return walk; } +namespace { + // Images the pre-scan reads when the beam-stop pre-pass is off and only the spot width is wanted; + // with it on, that pre-pass's image count is used and one sample serves both. + constexpr int BEAM_CENTER_PROJECTION_IMAGES = 60; +} + namespace rugnux_internal { // A CUDA out-of-memory, or a host allocation that failed, says nothing about the image that // happened to be in flight and everything about the machine - the next image will hit it too. @@ -145,9 +151,6 @@ namespace rugnux_internal { || jf->Category() == JFJochExceptionCategory::MemAllocFailed); } -} - -namespace rugnux_internal { // The longest cell axis assumed where no cell is known yet. It has to be LARGE: a long axis makes // the tolerance below small, and the ceiling is the larger of it and the flat bound above, so a // large default is the one that changes nothing. @@ -172,15 +175,6 @@ namespace rugnux_internal { / (experiment.GetPixelSize_mm() * a_max); } -} - -namespace { - // Images the pre-scan reads when the beam-stop pre-pass is off and only the spot width is wanted; - // with it on, that pre-pass's image count is used and one sample serves both. - constexpr int BEAM_CENTER_PROJECTION_IMAGES = 60; -} - -namespace rugnux_internal { // Pick up to requested_images ordinals spread evenly across [0, images_to_process) for the // first pass of two-pass rotation indexing. std::vector select_equally_spaced_image_ordinals(int images_to_process, int requested_images) {