original_docstring: 
      Inputs:
          a = Upstream pressure
          b = Downstream pressure
          delP = Minimum required pressure gap between a and b
      
docstring: a = Upstream pressure
  b = Downstream pressure
  delP = Minimum required pressure gap between a and b
docstring_tokens: a = Upstream pressure b = Downstream pressure delP = Minimum required pressure gap between a and b
code: def DeltaP(a,b,delP):
      """
      Inputs:
          a = Upstream pressure
          b = Downstream pressure
          delP = Minimum required pressure gap between a and b
      """
      # If pressures a and b are not at least delP apart
      if (a-b) < delP:
          # Randomly increase a or decrease b
          if random.random() < 0.5:
              a = b + delP
          else:
              b = a - delP
      # Return gap-corrected pressures
      return a,b
code_tokens: def DeltaP ( a , b , delP ) : if ( a - b ) < delP : if random . random ( ) < 0.5 : a = b + delP else : b = a - delP return a , b
short_docstring: Inputs:
  a = Upstream pressure
  b = Downstream pressure
  delP = Minimum required pressure gap between a and b
short_docstring_tokens: Inputs : a = Upstream pressure b = Downstream pressure delP = Minimum required pressure gap between a and b
comment: """
      Inputs:
          a = Upstream pressure
          b = Downstream pressure
          delP = Minimum required pressure gap between a and b
      """$SEP$# If pressures a and b are not at least delP apart
  $SEP$# Randomly increase a or decrease b
  $SEP$# Return gap-corrected pressures
  