[Bugzilla] [Bug 8382] Samuel GOUGEON has changed bug_file_loc, component
bugzilla.admin at scilab.org
bugzilla.admin at scilab.org
Sat Mar 24 01:09:31 CET 2018
http://bugzilla.scilab.org/show_bug.cgi?id=8382
--------- Bug Summary -----------
export_to_hdf5() fails exporting lists, mlists or tlists with undefined componen
---------- Changed by ------------
sgougeon at free.fr
---------- What changed ----------
bug_file_loc, component
Samuel GOUGEON <sgougeon at free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|-->L = list(%pi,"Text")
|
| L =
|
| list with entries:
|
| (1) 3.1415927
|
| (2) "Text"
|
|
|
|-->export_to_hdf5("test.dat |
|","L")
|
| ans =
|
| T
|
|// OK. Now, insert an |
|undefined component:
|
|
|
|-->L = list(%pi,,"Text")
|
| L =
|
| list with entries:
|
| (1) 3.1415927
|
| (3) "Text"
|
|
|
|-->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
|
|
|
|-->L=mlist(["test" "num" |
|"txt"],%pi,"Text")
|
| L =
|
| mlist of type "test" with |
|fields:
|
| .num 3.1415927
|
| .txt "Text"
|
|
|
|-->export_to_hdf5("test.dat |
|","L")
|
| ans =
|
| T
|
|
|
|// HOWEVER: It has |
|sometimes been successfull |
|(very seldomly). Then |
|reading
|
|// a export with an |
|undefined component has |
|yields the following:
|
|
|
|list with entries:
|
| (1) 3.1415927
|
| (2) "Text"
|
| (4) z
|
| (7) z
|
| UNDEFINED fields # 3,5-6
|
|
|
|-->export_to_hdf5("test.dat |
|","L")
|
| ans =
|
| T
|
|// I have failed |
|reproducing this and the |
|following
|
|
|
|-->import_from_hdf5("test.d |
|at","L")
|
| ans =
|
| T
|
|
|
|-->L
|
| L =
|
| list with entries:
|
| (1) 3.1415927
|
| (2) "Text"
|
| (3) z
|
| (4) z
|
| (5) z
|
| (6) z
|
| (7) z
|
|
|
|// Undefined positions were |
|apparently filled with the |
|latest defined one. |
Component|Input / output |Data import/export
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180324/ca14a5db/attachment.htm>
More information about the Bugzilla
mailing list