[Yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Thu Mar 24 13:24:47 PDT 2011


2 new changesets in yt:

http://bitbucket.org/yt_analysis/yt/changeset/1ae9a96a60ae/
changeset:   r3885:1ae9a96a60ae
branch:      yt
user:        MatthewTurk
date:        2011-03-24 21:23:11
summary:     Adding a warning in the install script about old fontList.cache entries.
affected #:  1 file (507 bytes)

--- a/doc/install_script.sh	Wed Mar 23 19:53:53 2011 -0400
+++ b/doc/install_script.sh	Thu Mar 24 16:23:11 2011 -0400
@@ -522,6 +522,20 @@
     cd $MY_PWD
 fi
 
+if [ -e $HOME/.matplotlib/fontList.cache ] && \
+   ( grep -q python2.6 $HOME/.matplotlib/fontList.cache )
+then
+    echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
+    echo "*******************************************************"
+    echo
+    echo "  You likely need to remove your old fontList.cache!"
+    echo "  You can do this with this command:"
+    echo ""
+    echo "  rm $HOME/.matplotlib/fontList.cache"
+    echo
+    echo "*******************************************************"
+fi
+
 function print_afterword
 {
     echo


http://bitbucket.org/yt_analysis/yt/changeset/357c40d23dbc/
changeset:   r3886:357c40d23dbc
branch:      yt
user:        MatthewTurk
date:        2011-03-24 21:24:36
summary:     Adding getboolean check of "yt.serialize" for enzo-specific .harrays file.
affected #:  1 file (103 bytes)

--- a/yt/frontends/enzo/data_structures.py	Thu Mar 24 16:23:11 2011 -0400
+++ b/yt/frontends/enzo/data_structures.py	Thu Mar 24 16:24:36 2011 -0400
@@ -137,7 +137,7 @@
         self.hierarchy_filename = os.path.abspath(
             "%s.hierarchy" % (pf.parameter_filename))
         harray_fn = self.hierarchy_filename[:-9] + "harrays"
-        if os.path.exists(harray_fn):
+        if ytcfg.getboolean("yt","serialize") and os.path.exists(harray_fn):
             try:
                 harray_fp = h5py.File(harray_fn)
                 self.num_grids = harray_fp["/Level"].len()
@@ -286,6 +286,7 @@
     _bn = "%s.cpu%%04i"
     def _parse_binary_hierarchy(self):
         mylog.info("Getting the binary hierarchy")
+        if not ytcfg.getboolean("yt","serialize"): return False
         try:
             f = h5py.File(self.hierarchy_filename[:-9] + "harrays")
         except h5py.h5.H5Error:

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list