Unverified Commit 4369910c authored by Akke Viitanen's avatar Akke Viitanen
Browse files

fix failing doctest

parent 4ed7f0f5
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -170,12 +170,26 @@ def get_detector(detector: int) -> str:
    """
    Return the string representation of the detector.

    Refer to the detector layout in the imSim webpage.

    Parameters
    ----------
    detector: int
        Numerical value of the detector (0-189, inclusive).

    Examples
    --------
    >>> get_detector(94)
    'S22_R11'
    'R22_S11'

    Raises
    ------
    ValueError
        If detector is not within 0-189 (inclusive).

    """
    if not (0 <= detector <= 189):
        raise ValueError("detector must be in 0-189 (inclusive")
    R = (
        list(range(1, 4))
        + list(range(10, 15))