docs: def to_det_id(self, det_id_or_det_oid):
          """Convert det ID or OID to det ID"""
          try:
              int(det_id_or_det_oid)
          except ValueError:
              return self.get_det_id(det_id_or_det_oid)
          else:
              return det_id_or_det_oid