<div dir="ltr">Nathan,<div><br></div><div>That issue is very likely the problem that I was having with the stable version.</div><div><br></div><div>I tried to recreate the issue I am having with the dev version but the issue does not occur for any of the public enzo datasets.</div><div><br></div><div>The error occurs after the ray data has been saved and it reloads it . The saved file is able to be read in h5py and seems correct.</div><div>A few layers down the error occurs in _parse_parameter_file() and I think this may be the difference between the data I was given and the public sets.</div><div>I can't really see the difference between the two myself. I've uploaded the file here <a href="http://paste.yt-project.org/show/7129/">http://paste.yt-project.org/show/7129/</a> if it becomes relevant.</div><div><br></div><div>The script to generate the error is extremely basic, I didn't upload it because its just two lines, making the LightRay then calling make_light_ray.</div><div>The error should be reproducible by simply trying to load the resultant hdf5 file, is there somewhere you would prefer me to upload it? It's not too large, less than 1MB.</div><div>Is there anything else I could provide to help diagnose the issue?<br></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><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 24, 2017 at 2:09 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@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 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" target="_blank">https://bitbucket.org/yt_<wbr>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" target="_blank">https://bitbucket.org/yt_<wbr>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" target="_blank">http://yt-project.org/docs/<wbr>dev/installing.html#nightly-<wbr>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" target="_blank">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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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(s<wbr>tr)</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></div></div>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br>
<br></blockquote></div><br></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>