Ignore:
Timestamp:
Nov 24, 2005, 1:05:20 PM (19 years ago)
Author:
ole
Message:

Found, unit tested, and fixed bug in outside polygon.
Then refactored sww2dem, to a more efficient way of assigning missing values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/utilities/polygon.py

    r1911 r2062  
    116116        return count != 1
    117117    else:
    118         return indices[count:][::-1]  #return reversed
     118        if count == len(indices):
     119            # No points are outside
     120            return []
     121        else:   
     122            return indices[count:][::-1]  #return reversed
    119123
    120124
Note: See TracChangeset for help on using the changeset viewer.