[Yt-svn] yt-commit r1672 - branches/yt-1.6/yt/raven

joishi at wrangler.dreamhost.com joishi at wrangler.dreamhost.com
Tue Mar 23 17:00:47 PDT 2010


Author: joishi
Date: Tue Mar 23 17:00:46 2010
New Revision: 1672
URL: http://yt.enzotools.org/changeset/1672

Log:
backported algae change to 1.6

Modified:
   branches/yt-1.6/yt/raven/ColorMaps.py

Modified: branches/yt-1.6/yt/raven/ColorMaps.py
==============================================================================
--- branches/yt-1.6/yt/raven/ColorMaps.py	(original)
+++ branches/yt-1.6/yt/raven/ColorMaps.py	Tue Mar 23 17:00:46 2010
@@ -40,6 +40,10 @@
         cc.LinearSegmentedColormap(name,cdict,256)
     mcm.datad[name] = cdict
     mcm.__dict__[name] = cdict
+    try: # API compatibility
+        mcm.register_cmap(name, raven_colormaps[name])
+    except AttributeError:
+        pass
     
 
 # The format is as follows:
@@ -68,6 +72,7 @@
                    (1.0, 0.0, 0.0))}
 
 add_cmap('bds_highcontrast', cdict)
+add_cmap('algae', cdict)
 
 
 # This next colormap was designed by Tune Kamae and converted here by Matt



More information about the yt-svn mailing list