svalinn / dagmc_stats

Tool for calculating and reporting statistics about DAGMC models
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

add_tag #101

Closed yqin43 closed 2 years ago

yqin43 commented 2 years ago

Description

Added add_tag() function and its corresponding test

Behavior

How to delete the tag after adding one during the test needs to be discussed: creating a new tag entity handle and then deleting the tag with the newly created tag eh works but the new eh is different form the tag_eh created when first adding the tag.

Fixes #94

yqin43 commented 2 years ago

There is the error AssertionError: Incorrect data length for dagmc_stats/DagmcQuery.py:636: in add_tag self.dagmc_file._my_moab_core.tag_set_data(tag_eh, tag_dic.keys(), tag_dic.values())

when running pytest3 but this error does not exist in pytest2. I am not sure if the problem rises that adding all the entries into the tag data is not supported by python3.