Expose tag list in pymoab write_file
write_file
allows a list of tags to be written but this isn’t supported in pymoab’s interface. It’s implementation is probably similar to the output_sets
option
Comments (7)
-
-
This now part of the PyMOAB 5.1.0 update. ( PR here )
-
Maybe more useful is the commit
-
One thing to note here is that the tag handle will still be written to file. Its data, however, will not be. This is an artifact of the underlying
write_file
method in MOAB, not an effect of PyMOAB. -
reporter You mean the tag handles that are not in the list will be written to file without their data? The tags that are in the tag list will be written with their data as well, right?
-
Sorry, that wasn’t very clear. Yes that’s what I meant.
-
Update: There was an error in my implementation. If provided a tag list, only those tags will be written. Other tags, both handle and data, will be omitted from the file.
- Log in to comment
This shouldn't be too bad to add. At the time we hadn't decided how to represent the TagInfo object in PyMOAB, as part of my failed endeavor to fully support the
get_entities_by_type_and_tag
query I implemented aTagArray
object which should make this pretty straight forward.