<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 24/05/2020 15:28, paul francedixhuit
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CABhH6+HufhNoV6dKBT93AVurBm6-gkArC4Vg9Xnrak2kv6Xn4w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Thanks Antoine for answering
<div><br>
<div>The datasets work fine.</div>
<div><br>
</div>
<div>yes I'm under a loop in order to automate datasets
moving/renaing; if I use "h5mv" for a single dataset
(whatever it is) that's ok. As said previously, the issue
occurs immediately after using the first "h5mv" without
closing the file.</div>
</div>
</div>
</blockquote>
OK. I am not sure I understand the issue than.<br>
Is the first call to h5mv OK, then the second one failling?<br>
If it is, did you try h5copen/h5mv/h5close before the next call to
h5mv ?<br>
<p>Do you have a minimum working example with an hdf5 file you could
share with us?</p>
<blockquote type="cite"
cite="mid:CABhH6+HufhNoV6dKBT93AVurBm6-gkArC4Vg9Xnrak2kv6Xn4w@mail.gmail.com">
<div dir="ltr">
<div>
<div><br>
</div>
<div>I'm under Linux (Ubuntu); I've ever tested h5copy but it
failed as well.</div>
<div><br>
</div>
<div>I'll test your suggestion in using hdf5 package outside
Scilab or through "unix_g" ino Scilab</div>
</div>
</div>
</blockquote>
There is also the python api for hdf5 that is really nice and not
really difficult to use if you are already familiar with the scilab
one.<br>
You could try from python to assess whether you are trying to do
something inherently wrong or whether it's a bug in scilab.<br>
<blockquote type="cite"
cite="mid:CABhH6+HufhNoV6dKBT93AVurBm6-gkArC4Vg9Xnrak2kv6Xn4w@mail.gmail.com">
<div dir="ltr">
<div>
<div><br>
</div>
<div>Paul</div>
<div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le dim. 24 mai 2020 à 14:38,
Antoine Monmayrant <<a
href="mailto:antoine.monmayrant@laas.fr"
moz-do-not-send="true">antoine.monmayrant@laas.fr</a>> a
écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hello Paul,</p>
<p><br>
</p>
<p>This is not a solution, but just tests to assert that the
problem does come from scilab and not from your datasets.<br>
</p>
<p>(1) Can you try to use command-line tool h5copy (that
comes with the hdf5-tools pacakge on a Debian/Ubuntu Linux
distribution) to do it outside of scilab?<br>
If you succeed, that might be a bug in h5mv in scilab.<br>
If you are under windows, there might be an equivalent
tool, or you can use WSL if under Windows10.<br>
</p>
<p>(2) I get that you are running this code inside some sort
of loop, right? Can you try to do it step-by-step on one
of the file that fails? By step-by-step I mean either
Ctrl+E line by line in your code or one command at a time
in the console. This might help if it's a race condition
bug. I faced similar issues when manipulating the graphic
handle hierarchy within a loop.<br>
</p>
<p>Hope it helps,</p>
<p><br>
</p>
<p>Antoine<br>
</p>
<div>On 24/05/2020 12:22, paul francedixhuit wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">Hi all
<div><br>
</div>
<div>I'm trying to reorganize my hdf5 file by
moving/renaming dozens of datasets, using mainly
h5mv (loops are used to pass through all groups and
datasets)</div>
<div><br>
</div>
<div>My code is typically, where:</div>
<div>
<ul>
<li>Source = the path+name of the original dataset</li>
<li>Destination= the path + the new dataset name</li>
</ul>
</div>
<div>
<pre style="font-family:Monospaced"><span style="color:rgb(50,185,185)">h5flush</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">h5</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span> <span style="color:rgb(100,174,100);font-style:italic"> </span>
<span style="color:rgb(50,185,185)">h5mv</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">h5</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">Source</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">h5</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">Destination</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span></pre>
</div>
<div><br>
</div>
<div>Trouble I'm confront to:</div>
<div>
<ul>
<li>It works only ounce and I do not understand
why, even flushing hdf5 object</li>
<li>I can note that after <i>h5mv</i>, <i>h5flush</i> does
not work anymore</li>
<li>hdf5 object becomes "invalide"</li>
</ul>
</div>
<div>What am I doing wrong?<br>
</div>
<div><br>
</div>
<div>Thanks for any advice</div>
<div><br>
</div>
<div>Paul</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
users mailing list
<a href="mailto:users@lists.scilab.org" target="_blank" moz-do-not-send="true">users@lists.scilab.org</a>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank"
moz-do-not-send="true">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>