1. Matthew Turk
  2. yt-profiles

Commits

Nathan Goldbaum  committed fd71219

Reporting a more useful error message if one tries to directly create a nonexistent TimeSeries

  • Participants
  • Parent commits f83eb46
  • Branches yt

Comments (0)

Files changed (1)

File yt/data_objects/time_series.py

View file
 
         """
         if isinstance(filenames, types.StringTypes):
-            filenames = glob.glob(filenames)
-            if len(filenames) == 0:
+            pflist = glob.glob(filenames)
+            if len(pflist) == 0:
                 raise YTOutputNotIdentified(filenames, {})
-            filenames.sort()
-        obj = cls(filenames[:], parallel = parallel, **kwargs)
+            pflist.sort()
+        obj = cls(pflist[:], parallel = parallel, **kwargs)
         return obj
 
     @classmethod