What is the proper way to get a list of available blocks in a reader (my reader is the IOSSReader) when I’m in the Python shell?
I can see that the reader is going to read in reader.ElementBlocks but it would be nice if there was a reader.ElementBlocksAvailable property showing me what’s available from the reader.
Andy, you can do this to get the list of element block names:
s = IOSSReader(...)
s.GetProperty('ElementBlockInfo')[:-1:2]
Nope, it’s not obvious. ElementBlockInfo is an information_only property, so it is not made available as an attribute on the s object, hence the GetProperty() call.