def move(self, particle, u, v, w, modelTimestep, **kwargs):
        """ I'm dead, so no behaviors should act on me """

        # Kill the particle if it isn't settled and isn't already dead.
        if not particle.settled and not particle.dead:
            particle.die()

        # Still save the temperature and salinity for the model output
        temp = kwargs.get('temperature', None)
        if temp is not None and math.isnan(temp):
            temp = None
        particle.temp = temp

        salt = kwargs.get('salinity', None)
        if salt is not None and math.isnan(salt):
            salt = None
        particle.salt = salt

        u = 0
        v = 0
        w = 0

        # Do the calculation to determine the new location
        result = AsaTransport.distance_from_location_using_u_v_w(u=u, v=v, w=w, timestep=modelTimestep, location=particle.location)
        result['u'] = u
        result['v'] = v
        result['w'] = w
        return result
def move ( self , particle , u , v , w , modelTimestep , ** kwargs ) : if not particle . settled and not particle . dead : particle . die ( ) temp = kwargs . get ( 'temperature' , None ) if temp is not None and math . isnan ( temp ) : temp = None particle . temp = temp salt = kwargs . get ( 'salinity' , None ) if salt is not None and math . isnan ( salt ) : salt = None particle . salt = salt u = 0 v = 0 w = 0 result = AsaTransport . distance_from_location_using_u_v_w ( u = u , v = v , w = w , timestep = modelTimestep , location = particle . location ) result [ 'u' ] = u result [ 'v' ] = v result [ 'w' ] = w return result
I'm dead, so no behaviors should act on me