Hi Amelie, Thanks for the report! I think I have a fix for you. I've just issued this pull request:
https://github.com/yt-project/yt/pull/4815 If you're able to pull it and test, have a go, but otherwise, you can make the changes (which are small and self-contained) yourself to: /home/wkal2/ENTER/envs/ml/lib/python3.9/site-packages/yt/frontends/athena/data_structures.py If it works for you, please report on the pull request and we can have it included -- or update to fix it. -Matt On Sat, Feb 10, 2024 at 7:54 PM A. Lam <[email protected]> wrote: > Dear yt Dev Team, > > > > Hope this email finds you well! I am writing to seek assistance regarding > an issue I encountered while attempting to load vtk files. Specifically, I > am trying to extract data from vtk files generated by athena simulations > using the ds.load function. However, the code returned the following error > message, > > > > Traceback (most recent call last): > > File "/home/wkal2/rds/hpc-work/project/code/plot.py", line 13, in > <module> > > ds = yt.load(vtk_filename,parameters=parameters) > > File > "/home/wkal2/ENTER/envs/ml/lib/python3.9/site-packages/yt/_maintenance/deprecation.py", > line 69, in inner > > return func(*args, **kwargs) > > File > "/home/wkal2/ENTER/envs/ml/lib/python3.9/site-packages/yt/loaders.py", line > 144, in load > > return cls(fn, *args, **kwargs) > > File > "/home/wkal2/ENTER/envs/ml/lib/python3.9/site-packages/yt/frontends/athena/data_structures.py", > line 488, in __init__ > > Dataset.__init__( > > File > "/home/wkal2/ENTER/envs/ml/lib/python3.9/site-packages/yt/data_objects/static_output.py", > line 293, in __init__ > > self._parse_parameter_file() > > File > "/home/wkal2/ENTER/envs/ml/lib/python3.9/site-packages/yt/frontends/athena/data_structures.py", > line 572, in _parse_parameter_file > > self.domain_dimensions[2] = np.int32(1) > > ValueError: assignment destination is read-only > > > > I would greatly appreciate any insights you can provide on what might be > causing this issue with the code. For your reference, I am using yt version > 4.3.0. Thank you for your attention and I look forward to hearing from you! > > > > Best regards, > > Amelie Lam > _______________________________________________ > 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] >
_______________________________________________ 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]
