parameters: (units: str = 'pixels')
return_statement: return wire_pixel_positions
docstring: r"""
      Vertical positions of the standar set of 16 wires. It's assumed that the center of the 16 wires
      coincides with the center of a tube.
  
      :param units: either one of 'pixels' or 'meters'. If pixels, the bottom of the tube correspons
      to pixel 1. If 'meters', the center of the tube corresponds to the origin of coordinates.
  
      :raises: AssertionError when incorrect units are passed
docstring_summary: r"""
      Vertical positions of the standar set of 16 wires. It's assumed that the center of the 16 wires
      coincides with the center of a tube.
docstring_tokens: r Vertical positions of the standar set of 16 wires . It s assumed that the center of the 16 wires coincides with the center of a tube .
function: def wire_positions(units: str = 'pixels') -> np.ndarray:
      r"""
      Vertical positions of the standar set of 16 wires. It's assumed that the center of the 16 wires
      coincides with the center of a tube.
  
      :param units: either one of 'pixels' or 'meters'. If pixels, the bottom of the tube correspons
      to pixel 1. If 'meters', the center of the tube corresponds to the origin of coordinates.
  
      :raises: AssertionError when incorrect units are passed
      """
      units_valid = ('meters', 'pixels')
      assert units in units_valid, f'units {units} must be one of {units_valid}'
      wire_gap = (2 * 25.4 + 2) / 1000  # gap along the Y-coordinate between consecutive wire centers
      # the center of the 16 wires is aligned with the center of the tube, set to Y == 0
      wire_meters_positions = np.arange(-7.5 * wire_gap, 8.5 * wire_gap, wire_gap)
      if units == 'meters':
          return wire_meters_positions
      wire_pixel_positions = (PIXELS_PER_TUBE / TUBE_LENGTH) * wire_meters_positions + PIXELS_PER_TUBE / 2
      return wire_pixel_positions
function_tokens: def wire_positions ( units : str = 'pixels' ) -> np . ndarray : units_valid = ( 'meters' , 'pixels' ) assert units in units_valid , f'units {units} must be one of {units_valid}' wire_gap = ( 2 * 25.4 + 2 ) / 1000 # gap along the Y-coordinate between consecutive wire centers # the center of the 16 wires is aligned with the center of the tube, set to Y == 0 wire_meters_positions = np . arange ( - 7.5 * wire_gap , 8.5 * wire_gap , wire_gap ) if units == 'meters' : return wire_meters_positions wire_pixel_positions = ( PIXELS_PER_TUBE / TUBE_LENGTH ) * wire_meters_positions + PIXELS_PER_TUBE / 2 return wire_pixel_positions