<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - export_to_hdf5() fails exporting lists, mlists or tlists with DEFINED but VOID c"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=8383">bug 8383</a>
                <br><br>
                ---------- Bug Summary ----------- <br>export_to_hdf5() fails exporting lists, mlists or tlists with DEFINED but VOID c <br><br>

          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Keywords</td>
           <td>Fix_me_for_Scilab_5.3.X
           </td>
           <td>have_nonregression_test
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">URL</td>
           <td>-->L = list(%pi,"Text")
 L  =
 list with entries:
  (1) 3.1415927
  (2) "Text"

-->export_to_hdf5("test.dat","L")
 ans  = 
  T  
// OK. Now, insert a VOID component:

-->L = list(%pi,,"Text")
 L  = 
 list with entries:
  (1) 3.1415927
  (3) "Text"

-->definedfields(L)
 ans  = 
    1.    2.    3.    // The middle field is DEFINED
 
-->type(L(2))
 ans  = 
    0.                // but VOID
 
-->export_to_hdf5("test.dat","L")
 ans  = 
  F  

// The same issue occurs with a mlist or a tlist:
/// --------------------------------------------
-->L = tlist(["test" "num" "pol" "txt"],%pi,,"Text")
 L  =
 tlist of type "test" with fields:
  .num    3.1415927
  .pol    (undefined)
  .txt    "Text"

-->export_to_hdf5("test.dat","L")
 ans  =
  F  

-->L = mlist(["test" "num" "pol" "txt"],%pi,,"Text")
 L  =
 mlist of type "test" with fields:
  .num    3.1415927
  .pol    (undefined)
  .txt    "Text"

-->export_to_hdf5("test.dat","L")
 ans  =
  F
           </td>
           <td>-->L = list(%pi,"Text") L  = list with entries:  (1) 3.1415927  (2) "Text"-->export_to_hdf5("test.dat","L") ans  =   T  // OK. Now, insert a VOID component:-->L = list(%pi,,"Text") L  =  list with entries:  (1) 3.1415927  (3) "Text"-->definedfields(L) ans  =     1.    2.    3.    // The middle field is DEFINED -->type(L(2)) ans  =     0.                // but VOID -->export_to_hdf5("test.dat","L") ans  =   F  // The same issue occurs with a mlist or a tlist:/// ---------------------------------------------->L = tlist(["test" "num" "pol" "txt"],%pi,,"Text") L  = tlist of type "test" with fields:  .num    3.1415927  .pol    (undefined)  .txt    "Text"-->export_to_hdf5("test.dat","L") ans  =  F  -->L = mlist(["test" "num" "pol" "txt"],%pi,,"Text") L  = mlist of type "test" with fields:  .num    3.1415927  .pol    (undefined)  .txt    "Text"-->export_to_hdf5("test.dat","L") ans  =  F
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">URL</td>
           <td>-->L = list(%pi,"Text") L  = list with entries:  (1) 3.1415927  (2) "Text"-->export_to_hdf5("test.dat","L") ans  =   T  // OK. Now, insert a VOID component:-->L = list(%pi,,"Text") L  =  list with entries:  (1) 3.1415927  (3) "Text"-->definedfields(L) ans  =     1.    2.    3.    // The middle field is DEFINED -->type(L(2)) ans  =     0.                // but VOID -->export_to_hdf5("test.dat","L") ans  =   F  // The same issue occurs with a mlist or a tlist:/// ---------------------------------------------->L = tlist(["test" "num" "pol" "txt"],%pi,,"Text") L  = tlist of type "test" with fields:  .num    3.1415927  .pol    (undefined)  .txt    "Text"-->export_to_hdf5("test.dat","L") ans  =  F  -->L = mlist(["test" "num" "pol" "txt"],%pi,,"Text") L  = mlist of type "test" with fields:  .num    3.1415927  .pol    (undefined)  .txt    "Text"-->export_to_hdf5("test.dat","L") ans  =  F
           </td>
           <td>
                
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Component</td>
           <td>Input / output
           </td>
           <td>Data import/export
           </td>
         </tr></table>
      <p>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>