Hi John,

Below is the traceback with the error. Thank you!

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[1], line 2
      1 import yt
----> 2 ds=yt.load("/Users/novita/Desktop/test_hdf5_chk_2396")

File 
~/Library/Python/3.12/lib/python/site-packages/yt/_maintenance/deprecation.py:69,
 in future_positional_only.<locals>.outer.<locals>.inner(*args, **kwargs)
     60     value = kwargs[name]
     61     issue_deprecation_warning(
     62         f"Using the {name!r} argument as keyword (on position {no}) "
     63         "is deprecated. "
   (...)
     67         **depr_kwargs,
     68     )
---> 69 return func(*args, **kwargs)

File ~/Library/Python/3.12/lib/python/site-packages/yt/loaders.py:144, in 
load(fn, hint, *args, **kwargs)
    136     if missing := cls._missing_load_requirements():
    137         warnings.warn(
    138             f"This dataset appears to be of type {cls.__name__}, "
    139             "but the following requirements are currently missing: "
   (...)
    142             stacklevel=3,
    143         )
--> 144     return cls(fn, *args, **kwargs)
    146 if len(candidates) > 1:
    147     raise YTAmbiguousDataType(_input_fn, candidates)

File 
~/Library/Python/3.12/lib/python/site-packages/yt/frontends/flash/data_structures.py:206,
 in FLASHDataset.__init__(self, filename, dataset_type, storage_filename, 
particle_filename, units_override, unit_system, default_species_fields)
    204 # Check if the particle file has the same time
    205 if self._particle_handle != self._handle:
--> 206     part_time = self._particle_handle.handle.get("real scalars")[0][1]
    207     plot_time = self._handle.handle.get("real scalars")[0][1]
    208     if not np.isclose(part_time, plot_time):

TypeError: 'NoneType' object is not subscriptable
_______________________________________________
yt-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/yt-users.python.org/
Member address: [email protected]

Reply via email to