Ken Walker
2018-10-24 20:59:32 UTC
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?
Thanks,
-Ken
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?
Thanks,
-Ken
--
You received this message because you are subscribed to the Google Groups "pytables-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytables-users+***@googlegroups.com.
To post to this group, send an email to pytables-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "pytables-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytables-users+***@googlegroups.com.
To post to this group, send an email to pytables-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.