[yt-svn] commit/yt: MatthewTurk: Minor change to only set the basename for the chunks in image collections.

Bitbucket commits-noreply at bitbucket.org
Tue May 8 15:00:06 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/c196ec212134/
changeset:   c196ec212134
branch:      yt
user:        MatthewTurk
date:        2012-05-08 23:59:56
summary:     Minor change to only set the basename for the chunks in image collections.
affected #:  1 file

diff -r db3f6890e9a256a289dc740002aee72f2dbeb54e -r c196ec2121348e38845b0cdc1893c27c1f665ff2 yt/visualization/plot_collection.py
--- a/yt/visualization/plot_collection.py
+++ b/yt/visualization/plot_collection.py
@@ -27,6 +27,7 @@
 import shutil
 import tempfile
 import numpy as na
+import os
 
 from yt.funcs import *
 
@@ -74,7 +75,7 @@
 
     def add_image(self, fn, descr):
         self.image_metadata.append(descr)
-        self.images.append((fn, na.fromfile(fn, dtype='c')))
+        self.images.append((os.path.basename(fn), na.fromfile(fn, dtype='c')))
 
 class PlotCollection(object):
     __id_counter = 0

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