1. Matthew Turk
  2. yt


Britton Smith  committed 8fc6085 Merge

Merged in MatthewTurk/yt (pull request #363)

  • Participants
  • Parent commits 6bc289d, 147af3b
  • Branches yt

Comments (0)

Files changed (1)

File yt/convenience.py

View file
  • Ignore whitespace
     valid_file = [os.path.exists(arg) if isinstance(arg, types.StringTypes) 
             else False for arg in args]
     if not any(valid_file):
+        try:
+            from yt.data_objects.time_series import TimeSeriesData
+            ts = TimeSeriesData.from_filenames(*args, **kwargs)
+            return ts
+        except YTOutputNotIdentified:
+            pass
         mylog.error("None of the arguments provided to load() is a valid file")
         mylog.error("Please check that you have used a correct path")
         raise YTOutputNotIdentified(args, kwargs)