-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confirm safety of setting global ID #15
Comments
I think we should, yeah. We can get the set of used IDs when creating the |
It seems that it is intentional to allow a new group to be made with the same name as an old group, and there is a tests that explicitly tests that this works correctly. I'm curious what the use case is for this? It seems that it might be dangerous? #17 currently calls this a failure but happy to revert |
Separating issues of concern here: global IDs and group names. Global IDSFor avoiding duplicate global IDs, to me it makes sense to maintain a set of used IDs on the One use case I can see for changing the IDs of the sets is to avoid clashes with the ID space of CSG entities when generating a hybrid CSG/DAGMC model. There's also precedent for this if Group NamesI'm not sure of a use case for groups with duplicate names either, but I'm not sure that it's dangerous. From the look of the Similar to the set IDs, I think we can maintain an additional set for groups to ensure that a name isn't already occupied. If creating a new group and the name is already present, we can return the existing group from the |
Oh I see that you've self-assigned here, @gonuke, so maybe that note at the end is really just for you 😁 |
The
DAGSet
class has a setter for theid
which changes the value of theglobal_id
tag in the MOAB model.I wonder if we should be testing for the existence of a given ID in the ID space already to avoid creating multiple objects with the same global id?
The text was updated successfully, but these errors were encountered: