[yt-dev] reading tipsy files

Matteo Tomassetti mtomasse at ucsc.edu
Wed Sep 2 13:23:42 PDT 2015


Hi,
I'm trying to read Gasoline data with yT and I need to retrieve the oxygen
and iron mass fraction from the *.OxMassFrac and *.FeMassFrac for all the
stellar particles.
I try to read the oxygen mass fraction with this line of code

dd[("Stars", "OxMassFrac")].v

but then I get the following error
Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File
"/home/mtomas/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line
253, in __getitem__

    self.get_data(f)

  File
"/home/mtomas/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line
708, in get_data

    particles, self, self._current_chunk)

  File "/home/mtomas/yt-x86_64/src/yt-hg/yt/geometry/geometry_handler.py",
line 234, in _read_particle_fields

    fields_to_read)

  File "/home/mtomas/yt-x86_64/src/yt-hg/yt/utilities/io_handler.py", line
187, in _read_particle_selection

    rv[field_f][my_ind:my_ind + vals.shape[0],...] = vals

ValueError: could not broadcast input array from shape (8649900) into shape
(0)


Has this been seen before?

I'm using the stable version of yT.


Best,

Matteo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20150902/466285f6/attachment.htm>


More information about the yt-dev mailing list