<div dir="ltr"><div>Hi Britton,</div><div><br></div><div>Jose created an issue and I made a pull request to fix this:</div><div><br></div><div><a href="https://github.com/yt-project/yt/pull/1567">https://github.com/yt-project/yt/pull/1567</a></div><div><br></div><div>-Nathan<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 27, 2017 at 11:36 AM, Britton Smith <span dir="ltr"><<a href="mailto:brittonsmith@gmail.com" target="_blank">brittonsmith@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 Jose,<div><br></div><div>If I missed an update to this, please disregard.  In any case, I am pretty sure this is happening because the "x", "y", and "z" fields get written automatically and so when you specify them, it is trying to write them twice.  This is definitely a bug and should be easily fixed, but in the mean time you should be able to get around this by removing those fields from your field list.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Britton </div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 22, 2017 at 10:18 AM, 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><div dir="auto">Hi Jose,</div><div dir="auto"><br></div><div dir="auto">This feels like a bug.</div><div dir="auto"><br></div><div dir="auto">Any chance you can make a runnable example that triggers this error? Please use one of the sample datasets at <a href="http://yt-project.org/data" target="_blank">yt-project.org/data</a> or if that’s not possible one of your own datasets, which you can share with us using the yt curldrop (see <a href="http://docs.hub.yt" target="_blank">docs.hub.yt</a>).</div><div dir="auto"><br></div><div dir="auto">Once we have a way to reproduce the error, please go ahead and file an issue about this on yt’s github so we don’t lose track.</div><div dir="auto"><br></div><div dir="auto">Nathan</div><br><div class="gmail_quote"><div><div class="m_-2092553598074965101h5"><div>On Fri, Sep 22, 2017 at 8:32 AM José Mauricio Utreras <<a href="mailto:jutreras@ug.uchile.cl" target="_blank">jutreras@ug.uchile.cl</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-2092553598074965101h5"><div>Hello yt users,<br><br>I have tried to save a clump dataset but I'm getting the following error:<div><br></div><div><b><i>Code:</i></b></div><div><b><i>...</i></b></div><div><b><i><br></i></b></div><div><div><b><i>find_clumps(master_clump, cmin, cmax, step)</i></b></div><div><b><i><br></i></b></div><div><b><i>fn=master_clump.save_as_datase<wbr>t(fields=["cell_mass", "total","x","y","z","velocity_<wbr>x","velocity_y","velocity_z"])</i></b></div><div><b><i>print(fn)</i></b></div><div><b><i><br></i></b></div><div><b><i>...</i></b></div><div><b><i><br></i></b></div><div><b><i>Error</i></b></div><div><b><i><br></i></b></div><div><div><b><i>yt : [INFO     ] 2017-09-22 10:34:12,164 Saving field data to yt dataset: G-0001_clump_0.h5.</i></b></div><div><b><i>Traceback (most recent call last):</i></b></div><div><b><i>  File "Save_Clumps.py", line 43, in <module></i></b></div><div><b><i>    master_clump.save_as_dataset(f<wbr>ields=["cell_mass", "total","x","y","z","velocity_<wbr>x","velocity_y","velocity_z"])</i></b></div><div><b><i>  File "/home/jutreras/miniconda3/lib<wbr>/python3.6/site-packages/yt/<wbr>analysis_modules/level_sets/<wbr>clump_handling.py", line 365, in save_as_dataset</i></b></div><div><b><i>    extra_attrs=extra_attrs)</i></b></div><div><b><i>  File "/home/jutreras/miniconda3/lib<wbr>/python3.6/site-packages/yt/<wbr>frontends/ytdata/utilities.py"<wbr>, line 149, in save_as_dataset</i></b></div><div><b><i>    _yt_array_hdf5(fh[field_type], field_name, data[field])</i></b></div><div><b><i>  File "/home/jutreras/miniconda3/lib<wbr>/python3.6/site-packages/yt/<wbr>frontends/ytdata/utilities.py"<wbr>, line 208, in _yt_array_hdf5</i></b></div><div><b><i>    dataset = fh.create_dataset(str(field), data=data)</i></b></div><div><b><i>  File "/home/jutreras/miniconda3/lib<wbr>/python3.6/site-packages/h5py/<wbr>_hl/group.py", line 111, in create_dataset</i></b></div><div><b><i>    self[name] = dset</i></b></div><div><b><i>  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrappe<wbr>r (/home/ilan/minonda/conda-bld/<wbr>h5py_1496889914775/work/h5py/_<wbr>objects.c:2846)</i></b></div><div><b><i>  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrappe<wbr>r (/home/ilan/minonda/conda-bld/<wbr>h5py_1496889914775/work/h5py/_<wbr>objects.c:2804)</i></b></div><div><b><i>  File "/home/jutreras/miniconda3/lib<wbr>/python3.6/site-packages/h5py/<wbr>_hl/group.py", line 276, in __setitem__</i></b></div><div><b><i>    h5o.link(<a href="http://obj.id" target="_blank">obj.id</a>, <a href="http://self.id" target="_blank">self.id</a>, name, lcpl=lcpl, lapl=self._lapl)</i></b></div><div><b><i>  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrappe<wbr>r (/home/ilan/minonda/conda-bld/<wbr>h5py_1496889914775/work/h5py/_<wbr>objects.c:2846)</i></b></div><div><b><i>  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrappe<wbr>r (/home/ilan/minonda/conda-bld/<wbr>h5py_1496889914775/work/h5py/_<wbr>objects.c:2804)</i></b></div><div><b><i>  File "h5py/h5o.pyx", line 202, in h5py.h5o.link (/home/ilan/minonda/conda-bld/<wbr>h5py_1496889914775/work/h5py/h<wbr>5o.c:3901)</i></b></div><div><b><i>RuntimeError: Unable to create link (Name already exists)</i></b></div></div><div><br>A file G-0001_clump_0.h5 is created but when I try to load the data I get another error</div></div><div><br></div><div><div><b><i>----> 1 ds_clumps = yt.load('CLUMPS/G-0001_clump_0<wbr>.h5')</i></b></div><div><b><i><br></i></b></div><div><b><i>~/miniconda3/lib/python3.6/sit<wbr>e-packages/yt/convenience.py in load(*args, **kwargs)</i></b></div><div><b><i>     96                 return output_type_registry[n](fn)</i></b></div><div><b><i>     97         mylog.error("Couldn't figure out output type for %s", args[0])</i></b></div><div><b><i>---> 98         raise YTOutputNotIdentified(args, kwargs)</i></b></div><div><b><i>     99 </i></b></div><div><b><i>    100     mylog.error("Multiple output type candidates for %s:", args[0])</i></b></div><div><b><i><br></i></b></div><div><i style="font-weight:bold">YTOutputNotIdentified: Supplied ('CLUMPS/G-0001_clump_0.h5',) {}, but could not load!</i><br><br><br>Cheers!<br><br>José Utreras</div></div></div></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>
</blockquote></div></div>
<br>______________________________<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>
</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>