<div dir="ltr">Hi Joseph,<div><br></div><div>I believe you're hitting this issue:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/issues/1330">https://bitbucket.org/yt_analysis/yt/issues/1330</a><br></div><div><br></div><div>Which was fixed here:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2541">https://bitbucket.org/yt_analysis/yt/pull-requests/2541</a><br></div><div><br></div><div>We haven't had a stable release since that was fixed. If you're running yt from a stable release, can you try installing the development version from source? If you're using conda you can also use the nightly binary builds:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/installing.html#nightly-conda-builds">http://yt-project.org/docs/dev/installing.html#nightly-conda-builds</a><br></div><div><br></div><div>If you are running a recent development version then Britton's fix might need to be eloborated upon. If so, can you create a self-contained, runnable example script that triggers the issue you're seeing (preferably making use of one of the public datasets on <a href="http://yt-project.org/data">yt-project.org/data</a>)?</div><div><br></div><div>Best,</div><div><br></div><div>Nathan Goldbaum</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 24, 2017 at 1:04 PM, Joseph Tomlinson <span dir="ltr"><<a href="mailto:jmtomlinson95@gmail.com" target="_blank">jmtomlinson95@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I am trying to use the single dataset LightRay module but I am running into an issue.</div><div>Whenever I use the data_filename parameter, which I believe is necessary for use with AbsorptionSpectrum, I receive the following error.</div><div><br></div><div>TypeError: Object dtype dtype('O') has no native HDF5 equivalent</div><div><br></div><div>This error does not occur when I run the cookbook example so I am a bit lost as to what to do.</div><div>I am running the latest stable version on anaconda and have tried both h5py 2.7 and 2.6.</div><div>The simulation is a cosmological Enzo simulation.</div><div><br></div><div>I have also tried using the nightly dev build which changes the error from being on write to being on load with the following error.</div><div><br></div><div>AttributeError: 'str' object has no attribute 'astype'</div><div>from line 326 in _restore_light_ray_solution</div><div>self.parameters[ksp3] = self.parameters[ksp3].astype(<wbr>str)</div><div><br></div><div>When using python 2.7 the error is the same but with 'unicode' instead of 'str'.</div><div><br></div><div>Any help would be greatly appreciated.</div><div><br></div><div>Thanks,</div><div><span style="font-size:12.8px">Joe Tomlinson</span><br style="font-size:12.8px"><span style="font-size:12.8px">Senior Undergraduate</span><br style="font-size:12.8px"><span style="font-size:12.8px">Department of Physics, Drexel University</span><br></div></div>
<br>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div>