Hi Jeremy! On 24/12/12 16:19, Jeremy Sanders wrote: > On 18/11/12 03:18, Dr. Volker Jaenisch wrote: >> Hi VEUSZ Developers! >> >> Here >> https://github.com/volkerjaenisch/veusz/tree/modular_import >> >> is the first alpha of an generic HDF5 import dialog on the new veusz import >> dialog infrastructure. >> >> There are lots of changes ahead, no API is imposed yet, very preliminary, >> but working :-) > > Hi Volker - > > Thanks. Would it be possible to make the HDF5/pytables support optional (like > fits)? That will be no problem. > I also see that FITS support doesn't work any longer. My fault I will go into this. > > Traceback (most recent call last): > File "/home/jss/code/veusz-git/veusz/dialogs/importdialog.py", line 190, in > slotUpdatePreview > importtab.loadUi() > File "/home/jss/code/veusz-git/veusz/formats/fits/dialog.py", line 52, in > loadUi > self.connect(self.fitshdulist, qt4.SIGNAL('itemSelectionChanged()'), > AttributeError: 'ImportTabFITS' object has no attribute 'fitshdulist' s.o. > > I can't get any example HDF5 files to work, however. I tried to open some of > the example files that come with HDFView or those on the HDF > website, but the open dialog just hangs. I'm using Ubuntu Quantal x86 with > the python-tables package provided. > > This is what I get using strace > > open("/home/jss/HDFView/samples/hdf5_test.h5", O_RDONLY|O_LARGEFILE) = 16 > fstat64(16, {st_mode=S_IFREG|0775, st_size=1789123, ...}) = 0 > brk(0xa25f000) = 0xa25f000 > _llseek(16, 0, [0], SEEK_SET) = 0 > read(16, "\211HDF\r\n\32\n", 8) = 8 > _llseek(16, 0, [0], SEEK_SET) = 0 > read(16, "\211HDF\r\n\32\n\0", 9) = 9 > read(16, > "\0\0\0\0\10\10\0\4\0\20\0\3\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\303"..., > 87) = 87 > _llseek(16, 928, [928], SEEK_SET) = 0 > read(16, "\1\0\4\0\1\0\0\0 > \0\0\0\0\0\0\0\20\0\20\0\0\0\0\0V\17\0\0\0\0\0\0"..., 512) = 512 > _llseek(16, 3926, [3926], SEEK_SET) = 0 > read(16, > "\21\0\20\0\1\0\0\0\200\1\0\0\0\0\0\0`\0\0\0\0\0\0\0\f\0@\0\0\0\0\0"..., 96) > = 96 > lstat64("/home/jss/HDFView/samples/hdf5_test.h5", {st_mode=S_IFREG|0775, > st_size=1789123, ...}) = 0 > futex(0xae859acc, FUTEX_WAIT, 0, NULL > ... hangs here indefinitely ... That is really strange. I confirm that the HDF5 sample files do not import in our HDF5 Import dialog. The reason for this ist the following: * We only have tested so long with our output HDF5 files produced by pytables. * PyTables always generates on every HDF5-Table Header information which may not available at pure HDF5 files.
But the stacktrace for not existing header information comes within no time: Traceback (most recent call last): File "/home/volker/workspace/veusz/lib/python2.6/site-packages/veusz/formats/hdf5/dialog.py", line 101, in updatePreviewTable self.drawPreviewTable() File "/home/volker/workspace/veusz/lib/python2.6/site-packages/veusz/formats/hdf5/dialog.py", line 114, in drawPreviewTable col_names = table.description._v_names AttributeError: 'Array' object has no attribute 'description' Plattform Debian Squeezy 64. But I wonder why your tests run into an infinite cycle. I have no explanation for that at all. This may be dependend on the plattform, why ever. > I tried to open the file with pytables, which seems to work, so I'm not sure > what's going on. I need to go through the code more carefully to > see what's happening. We will have to dig deeper into this issue. Our Code is streamlined to fullfill our customer needs and we admit that we never checked our code against other HDF5 files. We like to implement two import dialogs for HDF5: * A generic one that reads any HDF5 file * A customer specific one So we have some work to do. We have to improve the generic dialog : * make HDF5 optional * find out why fits does not work any more * make HDF5 Imprto more tolerant to HDF5 files without metadata * find the cause for the infinite cycle in HDF5 import in your setup Best regards Volker -- Dr. Volker Jaenisch Geschäftsführer Inqbus GmbH & Co. KG Softwareentwicklung, Consulting & Hosting Karl-Heine-Straße 99 | 04229 Leipzig | Deutschland Telefon: +49 341 989758-54 Fax: +49 341 989758-79 E-Mail: [email protected] Web: http://inqbus.de/ Persönlich haftende Gesellschafterin: Inqbus Management GmbH (Amtsgericht Leipzig, HRB 27350) Vertretungsberechtigte Geschäftsführer: Maik Derstappen, Dr. Volker Jaenisch, Thomas Massmann, Markus Zapke-Gründemann Registergericht: Amtsgericht Leipzig Registernummer: HRA 16424 Umsatzsteuer-Identifikationsnummer: DE278744671
_______________________________________________ Veusz-discuss mailing list [email protected] https://mail.gna.org/listinfo/veusz-discuss
