title: convert numpy conditional to regular python 2.7 syntax
body: <p>I went onto one line of code, which I want to convert from numpy syntax to regular python 2.7 syntax:</p>
  
  <pre><code>SunAz=SunAz + (SunAz &lt; 0) * 360
  </code></pre>
  
  <p>source:
  <a href="https://github.com/Sandia-Labs/PVLIB_Python/blob/master/pvlib/pvl_ephemeris.py#L147" rel="nofollow">https://github.com/Sandia-Labs/PVLIB_Python/blob/master/pvlib/pvl_ephemeris.py#L147</a></p>
  
  <p>If we pretend that the numpy array is one dimensional, can it be translated to regular python 2.7 syntax like so:</p>
  
  <pre><code>newSunAz = []
  for item in SunAz:
      if item &lt; 0:
          newItem = item + item*360
          newSunAz.append(newItem)
      else:
          newSunAz.append(item)
  </code></pre>
  
  <p>??</p>
  
  <p>Thank you for the help.</p>