parameters: (array1, array2)
docstring: Implements element by element or (bitwise, | in C/C++) operation.
      If one of the arrays is a NoneArray, this will return the array
      that is not NoneArray, treating NoneArray as 0 in the or operation.
docstring_summary: Implements element by element or (bitwise, | in C/C++) operation.
      If one of the arrays is a NoneArray, this will return the array
      that is not NoneArray, treating NoneArray as 0 in the or operation.
docstring_tokens: Implements element by element or ( bitwise | in C / C ++ ) operation . If one of the arrays is a NoneArray this will return the array that is not NoneArray treating NoneArray as 0 in the or operation .
function: def bitwise_or(array1, array2):
      """Implements element by element or (bitwise, | in C/C++) operation.
      If one of the arrays is a NoneArray, this will return the array
      that is not NoneArray, treating NoneArray as 0 in the or operation."""
      if type(array1) == dsa.VTKCompositeDataArray and type(array2) == dsa.VTKCompositeDataArray:
          res = []
          for a1, a2 in izip(array1.Arrays, array2.Arrays):
              l = dsa.reshape_append_ones(a1, a2)
              res.append(bitwise_or(l[0], l[1]))
          return dsa.VTKCompositeDataArray(res, dataset = array1.DataSet)
      elif type(array1) == dsa.VTKCompositeDataArray:
          res = []
          for a in array1.Arrays :
              l = dsa.reshape_append_ones(a, array2)
              res.append(bitwise_or(l[0], l[1]))
          return dsa.VTKCompositeDataArray(res, dataset = array1.DataSet)
      elif array1 is dsa.NoneArray:
          return array2
      elif array2 is dsa.NoneArray:
          return array1
      else:
          l = dsa.reshape_append_ones(array1, array2)
          return numpy.bitwise_or(l[0], l[1])
function_tokens: def bitwise_or ( array1 , array2 ) : if type ( array1 ) == dsa . VTKCompositeDataArray and type ( array2 ) == dsa . VTKCompositeDataArray : res = [ ] for a1 , a2 in izip ( array1 . Arrays , array2 . Arrays ) : l = dsa . reshape_append_ones ( a1 , a2 ) res . append ( bitwise_or ( l [ 0 ] , l [ 1 ] ) ) return dsa . VTKCompositeDataArray ( res , dataset = array1 . DataSet ) elif type ( array1 ) == dsa . VTKCompositeDataArray : res = [ ] for a in array1 . Arrays : l = dsa . reshape_append_ones ( a , array2 ) res . append ( bitwise_or ( l [ 0 ] , l [ 1 ] ) ) return dsa . VTKCompositeDataArray ( res , dataset = array1 . DataSet ) elif array1 is dsa . NoneArray : return array2 elif array2 is dsa . NoneArray : return array1 else : l = dsa . reshape_append_ones ( array1 , array2 ) return numpy . bitwise_or ( l [ 0 ] , l [ 1 ] )