-
Notifications
You must be signed in to change notification settings - Fork 305
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
minor fix in gdml code #19
Conversation
Auxilary info may contain other info, returning at early stage when loading regions seem inappropriate. The two lists are used to write the region exports in the process of serialization, and does not seem to be influenced by whatever serializer it's using.
|
The requested modification refers to method |
Hi @gcosmo, the problem is not that I want it to treat other types, but that if some other type occurs first, and then the region part will get ignored. This, I do not think is expected behavior. The change is to change the behavior to silently ignore the xml element if it's not Fixing this will also make inheriting Also, what about the |
|
Can you please provide a test case for which a problem occurs? |
|
Hi @gcosmo I just added a few lines of code to the stock Whereas switching the order will work properly (The region is loaded, and |
|
Have you tried properly closing the custom auxiliary block? |
That will make the XML invalid with exception thrown at GDMLReadSetup::getSetup() in the problematic case because the setup will be after the XML become invalid (and stop parse). Edit: Just noticed your code did not have the |
|
Sorry, I don't understand what you mean. Global auxiliary info: |myaux : myvalue |
The information will always be parsed and stored in the list, but the logic in |
|
@shangjiaxuan, I have analysed the |
Auxilary info may contain other info, returning at early stage when loading regions seem inappropriate.
The two lists are used to write the region exports in the process of serialization, and does not seem to be influenced by whatever serializer it's using.