
Hello yt-users! I am using yt to analyze simulations performed with the latest version of FLASH4.7, and everything works fine. However, I am not able to load some old files performed with FLASH2.5. Do these old files require specific commands? Is FLASH2.5 incompatible with the newest version of yt? Thank you! Jordi

Hi Jordi, Could you send an example script with a traceback? It’d be easier to diagnose that way. Thanks, John ZuHone
On Jul 10, 2024, at 7:06 AM, Jordi <jcasanova@regis.edu> wrote:
Hello yt-users!
I am using yt to analyze simulations performed with the latest version of FLASH4.7, and everything works fine. However, I am not able to load some old files performed with FLASH2.5. Do these old files require specific commands? Is FLASH2.5 incompatible with the newest version of yt?
Thank you! Jordi _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: jzuhone@gmail.com

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

Enhance your career prospects with professional CV writing services in Dubai. Our expert writers create customized, impactful CVs that highlight your strengths and achievements. Stand out in the competitive job market and attract top employers. Choose our CV writing services in Dubai for a polished, professional resume today. https://hirecvwriters.ae/
participants (3)
-
Baneen Fatima
-
John ZuHone
-
Jordi