> After pondering a bit the different possibilities, I think that a Table > would be the best candidate for doing what you want. The Table is just > like an EArray, but allows you to have different columns with different > types in the same data container. So, in one column you can keep the > actual data and, in the other, the boolean that says if the data in the > same row is valid or not. > > I should note that the Table object is unidimensional by itself. > However, if what you want is to keep multidimensional data, you can > still do this by declaring the data column as multidimensional (and also > the boolean column if this is what you want), so in most of cases this > is not an actual limitation. > > HTH, >
Thanks for the reply, Francesc. You may be correct in that a table could work for this. It would require a bit of work because ideally the class interface would be the same as EArray and not the more complicated table interface, so I'd have to hack things up a bit to make a table appear like an array... but it probably is possible. Are their any performance considerations to be aware of when using tables vs arrays? One slight problem with this approach is that columns can't be dynamically added/removed from tables (as far as I know), so that boolean column would always need to be there even if the MaskedArray had no masked values to account for the possibility of masked values being appended to it in the future. This wouldn't impact functionality, but would impact performance a bit. Thanks, - Matt ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Pytables-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pytables-users
