Expose tag list in pymoab write_file

Issue #98 new
Paul Wilson created an issue

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)

  1. Patrick Shriwise

    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 a TagArray object which should make this pretty straight forward.

  2. Patrick Shriwise

    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.

  3. Paul Wilson 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?

  4. Patrick Shriwise

    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.

  5. Log in to comment