Revision: 7732
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7732&view=rev
Author:   jswhit
Date:     2009-09-10 11:39:23 +0000 (Thu, 10 Sep 2009)

Log Message:
-----------
change default calendar for date2index.

Modified Paths:
--------------
    trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py

Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py
===================================================================
--- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2009-09-10 
11:36:16 UTC (rev 7731)
+++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2009-09-10 
11:39:23 UTC (rev 7732)
@@ -3886,7 +3886,7 @@
     cdftime = netcdftime.utime(units,calendar=calendar)
     return cdftime.date2num(dates)
 
-def date2index(dates, nctime, calendar='proleptic_gregorian',select='exact'):
+def date2index(dates, nctime, calendar=None,select='exact'):
     """
     Return indices of a netCDF time variable corresponding to the given dates.
 
@@ -3915,10 +3915,10 @@
                      Valid calendars ``standard``, ``gregorian``,
                      ``proleptic_gregorian``, ``noleap``, ``365_day``,
                      ``julian``, ``all_leap``, ``366_day``.
-                     Default is ``proleptic_gregorian``.
                      If ``calendar=None``, will use ``calendar`` attribute
                      of ``nctime`` object, and if that attribute does 
                      not exist calendar is set to ``standard``. 
+                     Default is ``None``.
     select           The index selection method. ``exact`` will return the
                      indices perfectly matching the dates given. 
                      ``before`` and ``after`` will return the indices


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to