Changeset 1979


Ignore:
Timestamp:
Oct 26, 2005, 5:12:57 AM (19 years ago)
Author:
ole
Message:

Enforced compliance with "comparisons to singletons" as per PEP 8 style guide

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/least_squares.py

    r1975 r1979  
    329329        # Change the point co-ords to conform to the
    330330        # mesh co-ords early in the code
    331         if mesh_origin == None:
     331        if mesh_origin is None:
    332332            geo = None
    333333        else:
     
    606606                #Currently pmesh is producing these.
    607607                #this should be stopped,
    608                 if None == self.mesh.vertexlist[v]:
     608                if self.mesh.vertexlist[v] is None:
    609609                    continue
    610610                #for each triangle id (k) which has v as a vertex
     
    12071207            #Replicate q according to x and y
    12081208            #This is e.g used for Wind_stress
    1209             if x == None or y == None:
     1209            if x is None or y is None:
    12101210                return q
    12111211            else:
Note: See TracChangeset for help on using the changeset viewer.