[yt-dev] Issue #622: problem with covering_grid for Nyx data sets (yt_analysis/yt)

Anonymous issues-reply at bitbucket.org
Thu Aug 8 05:51:00 PDT 2013


New issue 622: problem with covering_grid for Nyx data sets
https://bitbucket.org/yt_analysis/yt/issue/622/problem-with-covering_grid-for-nyx-data

Anonymous:

Hi,

this is triggered by a discussion with Nathan. I have troubles with reading in Nyx
data with covering_grid up to a certain level (0 or higher, it doesn't matter). My script is attached (it's actually for the computation of power spectra).

With the current (yesterday's) development version of yt I get the following error:

Searching grids for values 100% ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| Time: 00:00:00 
yt : [ERROR    ] 2013-08-08 14:39:24,635 Covering problem: 16777216 cells are uncovered
Traceback (most recent call last):
  File "/usr/users/wschmid2/scripts/spect_demo.py", line 59, in <module>
    velx_hat = na.fft.fftn( cg['xmom']/cg['density'] )/cg['xmom'].size
  File "/home/uni05/wschmid2/yt-i686/src/yt-hg/yt/data_objects/data_containers.py", line 332, in __getitem__
    self.get_data(key)
  File "/home/uni05/wschmid2/yt-i686/src/yt-hg/yt/data_objects/data_containers.py", line 3776, in get_data
    raise KeyError(n_bad)
KeyError: 16777216

With an older version of yt (8dce70a9c689 from April), which happened to be installed on one of the machines I am using for data analysis, I don't have this problem (after I made the fix in yt/frontends/nyx/data_structures.py suggested by Nathan) and the script runs through.

The data set loaded by the script isn't too big, so I could share it if you don't have some Nyx data available. Just let me know.

Cheers,
Wolfram





More information about the yt-dev mailing list