<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<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 class="moz-cite-prefix">On 24/05/2020 12:22, paul francedixhuit
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CABhH6+Ehxxw0ixovuUUXDx_etMXk0vhOSQ4pO+K_EP_xrKXb7A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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 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>