[yt-dev] Issue #1227: Cannot read in EAGLE derived_field_list (yt_analysis/yt)

Robert Thompson issues-reply at bitbucket.org
Sat May 28 19:52:06 PDT 2016


New issue 1227: Cannot read in EAGLE derived_field_list
https://bitbucket.org/yt_analysis/yt/issues/1227/cannot-read-in-eagle-derived_field_list

Robert Thompson:

I'm encountering the following error when trying to see the `derived_field_list` for the sample EAGLE dataset `snipshot_399_z000p000`:

```
#!shell

🐡  [bob @ KeplerOSX /Volumes/StorageOSX/Research/EAGLE/snipshot_399_z000p000]$ python test.py
yt : [INFO     ] 2016-05-28 21:46:35,818 Parameters: current_time              = 4.36142803605e+17 s
yt : [INFO     ] 2016-05-28 21:46:35,819 Parameters: domain_dimensions         = [2 2 2]
yt : [INFO     ] 2016-05-28 21:46:35,819 Parameters: domain_left_edge          = [ 0.  0.  0.]
yt : [INFO     ] 2016-05-28 21:46:35,819 Parameters: domain_right_edge         = [ 8.47125  8.47125  8.47125]
yt : [INFO     ] 2016-05-28 21:46:35,820 Parameters: cosmological_simulation   = 1
yt : [INFO     ] 2016-05-28 21:46:35,820 Parameters: current_redshift          = 2.22044604925e-16
yt : [INFO     ] 2016-05-28 21:46:35,820 Parameters: omega_lambda              = 0.693
yt : [INFO     ] 2016-05-28 21:46:35,820 Parameters: omega_matter              = 0.307
yt : [INFO     ] 2016-05-28 21:46:35,820 Parameters: hubble_constant           = 0.6777
yt : [INFO     ] 2016-05-28 21:46:35,826 Allocating for 1.329e+07 particles
yt : [INFO     ] 2016-05-28 21:46:37,919 Identified 8.646e+05 octs
yt : [INFO     ] 2016-05-28 21:46:38,021 Attempting to download ~ 30 Mb of owls ion data from http://yt-project.org/data to /Volumes/StorageOSX/Research/yt_test_data.
Traceback (most recent call last):
  File "test.py", line 4, in <module>
    print(ds.derived_field_list)
  File "/Users/bob/Dropbox/research/python/sphgr_yt/yt/data_objects/static_output.py", line 146, in ireq
    self.index
  File "/Users/bob/Dropbox/research/python/sphgr_yt/yt/data_objects/static_output.py", line 396, in index
    self.create_field_info()
  File "/Users/bob/Dropbox/research/python/sphgr_yt/yt/data_objects/static_output.py", line 443, in create_field_info
    self.field_info.setup_particle_fields(ptype)
  File "/Users/bob/Dropbox/research/python/sphgr_yt/yt/frontends/owls/fields.py", line 184, in setup_particle_fields
    self.find_dependencies(loaded)
  File "/Users/bob/Dropbox/research/python/sphgr_yt/yt/fields/field_info_container.py", line 292, in find_dependencies
    deps, unavailable = self.check_derived_fields(loaded)
  File "/Users/bob/Dropbox/research/python/sphgr_yt/yt/fields/field_info_container.py", line 359, in check_derived_fields
    if field not in self: raise RuntimeError
RuntimeError
```

via the following code:


```
#!python

import yt
ds = yt.load('snip_399_z000p000.0.hdf5')
print(ds.derived_field_list)
```

I am currently running a fork of yt which is up to date with the latest dev changes (`20374:b8a09cd382dd`).  I am downloading the EAGLE *snap*shot now to give that a go.




More information about the yt-dev mailing list