I'm trying to create a sort index on a simple table (no nested columns).
It looks simple enough in the documentation and emails in this forum.
I have a table at /RESULT/NODE/DISPLACEMENT
(or File.root.RESULT.NODE.DISPLACEMENT)
It has several columns. The one I'd like to sort is called DOMAIN.
I thought this code would do the job, but when I run, get a huge trace back.
h5_file = tables.open_file('test_sort.h5', mode='r+')
res_table=h5_file.root.RESULT.NODE.DISPLACEMENT
res_table.cols.DOMAIN.create_index()
What am I missing? I'm sure I've overlooked something simple.
Also is there way to sort on 2 columns? first on DOMAIN, then on another column?
-Ken