def read_detector(filename):
detector = Detector()<EOL>detector.read(filename=filename)<EOL>return detector<EOL>
Read detector from a filename.

:type filename: str
:param filename: Filename to save the detector to.

:return: Detector object
:rtype: eqcorrscan.core.subspace.Detector