-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add support for new ways to configure Xregion
bounds for #329
#336
Conversation
… to specify 'Xregion' bounds Expect a follow-up commit with Drifter-level testing.
Hi @wenqiang-gu I feel this is ready now. Please take a look and see if it satisfies you for #329. |
@brettviren I really like the new By the way, you’ve provided great examples for implementing CoordBounds. If the SBN folks have a different partitioning scheme, such as rectangular partitioning, would it make sense to declare a new class, like |
@brettviren I am fine with this PR, please feel free to merge. |
Thanks for checking! I'll merge.
Yes, new types can be added. Below I give two items of guidance that someone who is considering to add a new type should consider: First, the For example, I assume "rectangular partitioning" means that each physical cathode (for one TPC volume) has a unique offset in X from some nominal position but the cathodes are otherwise all co-parallel. This simpler geometry can be handled by the existing If either of these two things are considered significant issues for applying the Second, if a new This mapping is held by As long as there is no namespace collision in the JSON object attributes between the new type and all the old types there is no problem. But if the new type nominally requires the same schema as an existing type then instead the new schema must introduce some new schema element to break the ambiguity. If we ever reach this level, I would suggest we probe for a special attribute of |
CoordRegion
andCoordBounds
in utilDrifter
Drifter
changes