Commit 78ece889 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Staggered: offset of 1.0 does not make sense, needs to be smaller

parent 766dbcaf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ StaggeredPixelDetectorModel::StaggeredPixelDetectorModel(std::string type,

    // Read tile offset - for now only possible along x, applied to odd rows
    offset_ = config.get<double>("pixel_offset");
    if(std::fabs(offset_) > 1.0) {
    if(std::fabs(offset_) >= 1.0) {
        throw InvalidValueError(config,
                                "pixel_offset",
                                "pixel offset should be provided in fractions of the pitch and cannot be larger than +-1.0");