Changeset 433


Ignore:
Timestamp:
Nov 30, 2011, 6:45:41 PM (13 years ago)
Author:
acolaitis
Message:

PYTHON. Movies - added safety to avoid making a movie when forgetting --time. Sorry for the spam of commits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot.py

    r432 r433  
    335335               ##### simple 2D field and movies of 2D fields
    336336               if len(what_I_plot.shape) >= 2:
     337                 if (len(what_I_plot.shape) is 3 and mrate is None):
     338                    print "3D field in input but not rate specified for movie (use --rate RATE or specify --time TIME)"
     339                    print "Exiting now"
     340                    exit()
    337341                 istart=0
    338342                 if mrate is not None:iend=len(time)-1
Note: See TracChangeset for help on using the changeset viewer.