code: def _optimal_orientation_from_detector(detector_name, tc):
      
  
      d = Detector(detector_name)
      ra, dec = d.optimal_orientation(tc)
  
      return ra, dec
docs: Low-level function to be called from _optimal_dec_from_detector
      and _optimal_ra_from_detector