<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi Yuxiang,<div><br></div><div>What simulation code produced these files?  Judging by the naming, I'd have to guess some flavor of gadget, but it's not clear based on your e-mail.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 4:29 PM, Yuxiang Qin <span dir="ltr"><<a href="mailto:yuxiangq@student.unimelb.edu.au" target="_blank">yuxiangq@student.unimelb.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span style="font-size:14px">Dear yt-users,</span><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">I have a tiny question about loading files.</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">I understand when yt load files, it will load all the files in the directory. For example: if I do </span><span style="font-size:14px;background-color:rgb(0,0,0)"><font color="#29f914" face="Andale Mono">ds=yt.load('snap_103.0.hdf5’)</font></span><span style="font-size:14px">, then </span><span style="font-size:14px;color:rgb(41,249,20);font-family:'Andale Mono';background-color:rgb(0,0,0)">ds.field_list</span><span style="font-size:14px"> , yt would open all the files:</span></div><div><span style="font-size:14px"><br></span></div><div><div style="margin:0px;font-family:'Andale Mono';color:rgb(51,196,38);background-color:rgb(0,0,0)"><span style="font-size:14px">snap_103.0.hdf5<span style="color:#29f914">*   </span>snap_103.16.hdf5<span style="color:#29f914">*  </span>snap_103.22.hdf5<span style="color:#29f914">*  </span>snap_103.29.hdf5<span style="color:#29f914">*  </span>snap_103.6.hdf5<span style="color:#29f914">*</span></span></div><div style="margin:0px;font-family:'Andale Mono';color:rgb(51,196,38);background-color:rgb(0,0,0)"><span style="font-size:14px">snap_103.10.hdf5<span style="color:#29f914">*  </span>snap_103.17.hdf5<span style="color:#29f914">*  </span>snap_103.23.hdf5<span style="color:#29f914">*  </span>snap_103.2.hdf5<span style="color:#29f914">*   </span>snap_103.7.hdf5<span style="color:#29f914">*</span></span></div><div style="margin:0px;font-family:'Andale Mono';color:rgb(51,196,38);background-color:rgb(0,0,0)"><span style="font-size:14px">snap_103.11.hdf5<span style="color:#29f914">*  </span>snap_103.18.hdf5<span style="color:#29f914">*  </span>snap_103.24.hdf5<span style="color:#29f914">*  </span>snap_103.30.hdf5<span style="color:#29f914">*  </span>snap_103.8.hdf5<span style="color:#29f914">*</span></span></div><div style="margin:0px;font-family:'Andale Mono';color:rgb(51,196,38);background-color:rgb(0,0,0)"><span style="font-size:14px">snap_103.12.hdf5<span style="color:#29f914">*  </span>snap_103.19.hdf5<span style="color:#29f914">*  </span>snap_103.25.hdf5<span style="color:#29f914">*  </span>snap_103.31.hdf5<span style="color:#29f914">*  </span>snap_103.9.hdf5<span style="color:#29f914">*</span></span></div><div style="margin:0px;font-family:'Andale Mono';color:rgb(51,196,38);background-color:rgb(0,0,0)"><span style="font-size:14px">snap_103.13.hdf5<span style="color:#29f914">*  </span>snap_103.1.hdf5<span style="color:#29f914">*   </span>snap_103.26.hdf5<span style="color:#29f914">*  </span>snap_103.3.hdf5<span style="color:#29f914">*                   </span></span></div><div style="margin:0px;font-family:'Andale Mono';color:rgb(51,196,38);background-color:rgb(0,0,0)"><span style="font-size:14px">snap_103.14.hdf5<span style="color:#29f914">*  </span>snap_103.20.hdf5<span style="color:#29f914">*  </span>snap_103.27.hdf5<span style="color:#29f914">*  </span>snap_103.4.hdf5<span style="color:#29f914">*                   </span></span></div><div style="margin:0px;font-family:'Andale Mono';color:rgb(51,196,38);background-color:rgb(0,0,0)"><span style="font-size:14px">snap_103.15.hdf5<span style="color:#29f914">*  </span>snap_103.21.hdf5<span style="color:#29f914">*  </span>snap_103.28.hdf5<span style="color:#29f914">*  </span>snap_103.5.hdf5<span style="color:#29f914">*                   </span></span></div></div><div><span style="font-size:14px"> <br></span><div>
<div style="text-align:start;text-indent:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-size:14px"><span style="font-family:Helvetica,Arial,sans-serif;background-color:rgb(255,255,255)">However, if our data only has one file :</span><span style="color:rgb(51,196,38);font-family:'Andale Mono';background-color:rgb(0,0,0)">snap_103.hdf5</span><span style="font-family:'Andale Mono';background-color:rgb(0,0,0);color:rgb(41,249,20)">*</span><span style="font-family:Helvetica,Arial,sans-serif;background-color:rgb(255,255,255)">, then if I do </span><span style="background-color:rgb(0,0,0)"><font color="#29f914" face="Andale Mono">ds=yt.load('snap_103.hdf5’)</font></span>, then <span style="color:rgb(41,249,20);font-family:'Andale Mono';background-color:rgb(0,0,0)">ds.field_list</span>, yt would still try to open all the files from <span style="color:rgb(51,196,38);font-family:'Andale Mono';background-color:rgb(0,0,0)">snap_103.0.hdf5</span>, however there is no <span style="color:rgb(51,196,38);font-family:'Andale Mono';background-color:rgb(0,0,0)">snap_103.0.hdf5</span>. It would report error: </span></div><div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-size:14px"><br></span></div><p style="color:rgb(41,249,20);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-family:'Andale Mono';background-color:rgb(0,0,0);min-height:14px"><span style="font-size:14px"><span style="color:rgb(195,55,32)">IOError</span>: Unable to open file (Unable to open file: name = '/lustre/projects/p071_swin/yqin/smaug/ref_eff_l010n0128/data/snapshot_102/snap_102.0.hdf5', errno = 2, error message = 'no such file or directory', flags = 0, o_flags = 0)                                                                            <span style="color:rgb(0,0,0)"></span></span></p><div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica,Arial,sans-serif;background-color:rgb(255,255,255);font-size:14px"><br></span></div><div><font face="Helvetica, Arial, sans-serif"><span style="background-color:rgb(255,255,255);font-size:14px">Is there an argument saying I don’t want to do loading recursively? I can make a link named </span></font><span style="color:rgb(51,196,38);font-family:'Andale Mono';font-size:14px;background-color:rgb(0,0,0)">snap_103.0.hdf5</span><span style="font-family:Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"> to </span><span style="color:rgb(51,196,38);font-family:'Andale Mono';font-size:14px;background-color:rgb(0,0,0)">snap_103.hdf5</span><span style="background-color:rgb(255,255,255)"><font face="Helvetica, Arial, sans-serif"><span style="font-size:14px">. But it’s kind of inconvenient.</span></font></span></div><div><font face="Helvetica, Arial, sans-serif"><span style="background-color:rgb(255,255,255)"><span style="font-size:14px"><br></span></span></font></div><div><font face="Helvetica, Arial, sans-serif"><span style="background-color:rgb(255,255,255)"><span style="font-size:14px">Cheers,</span></span></font></div><div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-size:14px"><span style="font-family:Helvetica,Arial,sans-serif;background-color:rgb(255,255,255)">--</span></span></div><div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-size:14px"><span style="font-family:Helvetica,Arial,sans-serif;background-color:rgb(255,255,255)">Yuxiang Qin</span></span></div><div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-size:14px"><span style="background-color:rgb(255,255,255)"><font face="Helvetica, Arial, sans-serif">PhD Student</font><br style="font-family:Helvetica,Arial,sans-serif"></span><span style="font-family:Helvetica,Arial,sans-serif;background-color:rgb(255,255,255)">School of Physics</span><br style="font-family:Helvetica,Arial,sans-serif"><span style="font-family:Helvetica,Arial,sans-serif;background-color:rgb(255,255,255)">The University of Melbourne</span><br style="font-family:Helvetica,Arial,sans-serif"><span style="font-family:Helvetica,Arial,sans-serif;background-color:rgb(255,255,255)">VIC, Australia, 3010</span></span><br style="font-family:Helvetica,Arial,sans-serif;font-size:15px"></div></div>
</div>
<br></div></div><br>_______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>