Hi Matt,

Many thanks for your help! I tried using the pull request, however, it is 
giving me another error message, which I have quoted below,

Traceback (most recent call last):
  File "/home/wkal2/rds/hpc-work/project/code/plot_full_output.py", line 17, in 
<module>
    ds = yt.load(vtk_filename,parameters=parameters)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/wkal2/yt/yt/_maintenance/deprecation.py", line 69, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/wkal2/yt/yt/loaders.py", line 145, in load
    return cls(fn, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/wkal2/yt/yt/frontends/athena/data_structures.py", line 502, in 
__init__
    self.index
  File "/home/wkal2/yt/yt/data_objects/static_output.py", line 606, in index
    self._instantiated_index = self._index_class(
                               ^^^^^^^^^^^^^^^^^^
  File "/home/wkal2/yt/yt/frontends/athena/data_structures.py", line 134, in 
__init__
    GridIndex.__init__(self, ds, dataset_type)
  File "/home/wkal2/yt/yt/geometry/geometry_handler.py", line 39, in __init__
    self._setup_geometry()
  File "/home/wkal2/yt/yt/geometry/grid_geometry_handler.py", line 41, in 
_setup_geometry
    self._parse_index()
  File "/home/wkal2/yt/yt/frontends/athena/data_structures.py", line 335, in 
_parse_index
    self.dataset.domain_dimensions[2] = 1
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
ValueError: assignment destination is read-only
Exception ignored in: <function GridIndex.__del__ at 0x1466b3fdb420>
Traceback (most recent call last):
  File "/home/wkal2/yt/yt/geometry/grid_geometry_handler.py", line 67, in 
__del__
    del self.grids
        ^^^^^^^^^^
AttributeError: 'AthenaHierarchy' object has no attribute 'grids'

Thanks,
Amelie
_______________________________________________
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