class_docstr: The Frequency range class.
  
  The elements of the range are central and bandwidth values, and optionally
  a unit (defaults to GHz). No clever unit conversion is done here, it's just
  used for checking that two ranges are comparable.
  
  This type is used for passive microwave sensors.
class_docstr_tok: ["The","Frequency","range","class",".","The","elements","of","the","range","are","central","and","bandwidth","values",",","and","optionally","a","unit","(","defaults","to","GHz",")",".","No","clever","unit","conversion","is","done","here",",","it","'s","just","used","for","checking","that","two","ranges","are","comparable",".","This","type","is","used","for","passive","microwave","sensors","."]
docstr: Check if this range contains *other*.
docstr_tok: ["Check","if","this","range","contains","*","other","*","."]
code: def __contains__(self, other):
      """Check if this range contains *other*."""
      if other is None:
          return False
      if isinstance(other, numbers.Number):
          return (
              self.central - self.bandwidth / 2.0
              <= other
              <= self.central + self.bandwidth / 2.0
          )
  
      with suppress(AttributeError):
          if self.unit != other.unit:
              raise NotImplementedError(
                  "Can't compare frequency ranges with different units."
              )
          return (
              self.central - self.bandwidth / 2.0
              <= other.central - other.bandwidth / 2.0
              and self.central + self.bandwidth / 2.0
              >= other.central + other.bandwidth / 2.0
          )
      return False
  
imports: import numbers
  from contextlib import suppress
  from typing import NamedTuple
  import numpy
label_desc: Use image node_id 4 for calling the FrequencyRange obj's underlying member method code with example usage: obj.__contains__(other) and returns: False, False, unknown, unknown