parameters: (spectrum_number, instrument)
return_statement: return detector
docstring: This is not very nice since we have to hard-code some instrument information here. But at the moment there is no
      other (efficient and easy) way to check on which detector the spectrum is living.
  
      The solution here is ugly and should be improved in the future. It is uses the same approach as in the old
      framework.
      :param spectrum_number: The spectrum number to check
      :param instrument: the SANS instrument
      :returns: either LAB or HAB
docstring_summary: This is not very nice since we have to hard-code some instrument information here. But at the moment there is no
      other (efficient and easy) way to check on which detector the spectrum is living.
docstring_tokens: This is not very nice since we have to hard - code some instrument information here . But at the moment there is no other ( efficient and easy ) way to check on which detector the spectrum is living .
function: def get_bank_for_spectrum_number(spectrum_number, instrument):
      """
      This is not very nice since we have to hard-code some instrument information here. But at the moment there is no
      other (efficient and easy) way to check on which detector the spectrum is living.
  
      The solution here is ugly and should be improved in the future. It is uses the same approach as in the old
      framework.
      :param spectrum_number: The spectrum number to check
      :param instrument: the SANS instrument
      :returns: either LAB or HAB
      """
      detector = DetectorType.LAB
  
      if instrument is SANSInstrument.LOQ:
          if 16387 <= spectrum_number <= 17784:
              detector = DetectorType.HAB
      elif instrument is SANSInstrument.LOQ:
          if 36873 <= spectrum_number <= 73736:
              detector = DetectorType.HAB
      return detector
function_tokens: def get_bank_for_spectrum_number ( spectrum_number , instrument ) : detector = DetectorType . LAB if instrument is SANSInstrument . LOQ : if 16387 <= spectrum_number <= 17784 : detector = DetectorType . HAB elif instrument is SANSInstrument . LOQ : if 36873 <= spectrum_number <= 73736 : detector = DetectorType . HAB return detector