parameters: (workspace)
return_statement: return nx_pixels, ny_pixels, pixel_size_x, pixel_size_y
docstring: Get the pixel size and number of pixels from the workspace
          @param workspace: workspace to extract the pixel information from
docstring_summary: Get the pixel size and number of pixels from the workspace
docstring_tokens: Get the pixel size and number of pixels from the workspace
function: def _get_pixel_info(workspace):
      """
          Get the pixel size and number of pixels from the workspace
          @param workspace: workspace to extract the pixel information from
      """
      # # Number of detector pixels in X
      nx_pixels = int(workspace.getInstrument(
      ).getNumberParameter("number-of-x-pixels")[0])
      # # Number of detector pixels in Y
      ny_pixels = int(workspace.getInstrument(
      ).getNumberParameter("number-of-y-pixels")[0])
      # # Pixel size in mm
      pixel_size_x = workspace.getInstrument(
      ).getNumberParameter("x-pixel-size")[0]
      pixel_size_y = workspace.getInstrument(
      ).getNumberParameter("y-pixel-size")[0]
  
      return nx_pixels, ny_pixels, pixel_size_x, pixel_size_y
function_tokens: def _get_pixel_info ( workspace ) : # # Number of detector pixels in X nx_pixels = int ( workspace . getInstrument ( ) . getNumberParameter ( "number-of-x-pixels" ) [ 0 ] ) # # Number of detector pixels in Y ny_pixels = int ( workspace . getInstrument ( ) . getNumberParameter ( "number-of-y-pixels" ) [ 0 ] ) # # Pixel size in mm pixel_size_x = workspace . getInstrument ( ) . getNumberParameter ( "x-pixel-size" ) [ 0 ] pixel_size_y = workspace . getInstrument ( ) . getNumberParameter ( "y-pixel-size" ) [ 0 ] return nx_pixels , ny_pixels , pixel_size_x , pixel_size_y