Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. IOError Traceback (most recent call last)
  3. <ipython-input-4-dae11f5cbd87> in <module>()
  4. 1 fname = '001'
  5. ----> 2 ds = yt.load('ISOLATED_GALAXY_' + fname + '/ISOLATED_GALAXY_' + fname + '.block_list')
  6. 3 data = ds.all_data()
  7. 4
  8. 5
  9.  
  10. /home/aemerick/anaconda2/lib/python2.7/site-packages/yt/convenience.pyc in load(*args, **kwargs)
  11. 84 candidates = find_lowest_subclasses(candidates)
  12. 85 if len(candidates) == 1:
  13. ---> 86 return candidates[0](*args, **kwargs)
  14. 87 if len(candidates) == 0:
  15. 88 if ytcfg.get("yt", "enzo_db") != '' \
  16.  
  17. /home/aemerick/anaconda2/lib/python2.7/site-packages/yt/frontends/enzo_p/data_structures.pyc in __init__(self, filename, dataset_type, file_style, parameter_override, conversion_override, storage_filename, units_override, unit_system)
  18. 278 self.storage_filename = storage_filename
  19. 279 Dataset.__init__(self, filename, dataset_type, file_style=file_style,
  20. --> 280 units_override=units_override, unit_system=unit_system)
  21. 281
  22. 282 def _parse_parameter_file(self):
  23.  
  24. /home/aemerick/anaconda2/lib/python2.7/site-packages/yt/data_objects/static_output.pyc in __init__(self, filename, dataset_type, file_style, units_override, unit_system)
  25. 304 self._create_unit_registry()
  26. 305
  27. --> 306 self._parse_parameter_file()
  28. 307 self.set_units()
  29. 308 self._assign_unit_system(unit_system)
  30.  
  31. /home/aemerick/anaconda2/lib/python2.7/site-packages/yt/frontends/enzo_p/data_structures.pyc in _parse_parameter_file(self)
  32. 296 ensure_tuple(np.ones(self.dimensionality, dtype=bool))
  33. 297
  34. --> 298 fh = h5py.File(os.path.join(self.directory, fn0), "r")
  35. 299 self.domain_left_edge = fh.attrs["lower"]
  36. 300 self.domain_right_edge = fh.attrs["upper"]
  37.  
  38. /home/aemerick/anaconda2/lib/python2.7/site-packages/h5py/_hl/files.pyc in __init__(self, name, mode, driver, libver, userblock_size, swmr, **kwds)
  39. 267 with phil:
  40. 268 fapl = make_fapl(driver, libver, **kwds)
  41. --> 269 fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
  42. 270
  43. 271 if swmr_support:
  44.  
  45. /home/aemerick/anaconda2/lib/python2.7/site-packages/h5py/_hl/files.pyc in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
  46. 97 if swmr and swmr_support:
  47. 98 flags |= h5f.ACC_SWMR_READ
  48. ---> 99 fid = h5f.open(name, flags, fapl=fapl)
  49. 100 elif mode == 'r+':
  50. 101 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)
  51.  
  52. h5py/_objects.pyx in h5py._objects.with_phil.wrapper()
  53.  
  54. h5py/_objects.pyx in h5py._objects.with_phil.wrapper()
  55.  
  56. h5py/h5f.pyx in h5py.h5f.open()
  57.  
  58. IOError: Unable to open file (bad object header version number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement