Loading src/lsst_inaf_agile/my_lsst.py +15 −1 Original line number Diff line number Diff line Loading @@ -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)) Loading Loading
src/lsst_inaf_agile/my_lsst.py +15 −1 Original line number Diff line number Diff line Loading @@ -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)) Loading