Ignore:
Timestamp:
Jun 16, 2014, 5:23:49 PM (10 years ago)
Author:
davies
Message:

Another Bug fix in Make_Geotif

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/utilities/plot_utils.py

    r9160 r9161  
    877877        yllcorner=p2.yllcorner
    878878
    879         if(myTimeStep=='all'):
     879        #if(myTimeStep=='all'):
     880        #    myTimeStep=range(len(p2.time))
     881        #elif(myTimeStep=='last'):
     882        #    # This is [0]!
     883        #    myTimeStep=[len(p2.time)-1]
     884
     885        # Now, myTimeStep just holds indices we want to plot in p2
     886        if(myTimeStep!='max'):
    880887            myTimeStep=range(len(p2.time))
    881         elif(myTimeStep=='last'):
    882             # This is [0]!
    883             myTimeStep=[len(p2.time)-1]
    884888
    885889        # Ensure myTimeStep is a list
Note: See TracChangeset for help on using the changeset viewer.