[yt-dev] Issue #800: expected 'int64_t' but got 'int' (yt_analysis/yt)

Anonymous issues-reply at bitbucket.org
Fri Mar 7 13:56:07 PST 2014


New issue 800: expected 'int64_t' but got 'int'
https://bitbucket.org/yt_analysis/yt/issue/800/expected-int64_t-but-got-int

Anonymous:

Trying to execute the (pretty basic) script

```
#!python

from yt.mods import *

pf = load("DD0020/sb_L2x2_0020")

my_sphere=pf.h.sphere([0.53,0.53,0.53], (1, "pc"))

plot=ProfilePlot(my_sphere, "Density", ["CellMassMsun"], weight_field=None)

plot.save()
```

produces

```
#!bash

  File "slice.py", line 7, in <module>
    plot=ProfilePlot(my_sphere, "Density", ["CellMassMsun"], weight_field=None)
  File "/home/daniel/Desktop/Uni/Enzo/yt-i686/src/yt-hg/yt/visualization/profile_plotter.py", line 210, in __init__
    fractional=fractional)]
  File "/home/daniel/Desktop/Uni/Enzo/yt-i686/src/yt-hg/yt/data_objects/profiles.py", line 999, in create_profile
    obj.add_fields(fields)
  File "/home/daniel/Desktop/Uni/Enzo/yt-i686/src/yt-hg/yt/data_objects/profiles.py", line 763, in add_fields
    self._bin_chunk(chunk, fields, temp_storage)
  File "/home/daniel/Desktop/Uni/Enzo/yt-i686/src/yt-hg/yt/data_objects/profiles.py", line 841, in _bin_chunk
    storage.used)
  File "misc_utilities.pyx", line 28, in yt.utilities.lib.misc_utilities.new_bin_profile1d (yt/utilities/lib/misc_utilities.c:1950)
ValueError: Buffer dtype mismatch, expected 'int64_t' but got 'int'

```

I've used install_script.sh for version 3.0 (earlier attempts with 2.7 produced the same errors), which is why changing variable types in misc_utilities.pyx doesn't help.





More information about the yt-dev mailing list