-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature/ehinkle geo resource charge coord fix #86
Feature/ehinkle geo resource charge coord fix #86
Conversation
…coordinates e.g. pixel_xy, anode_z, and get_z_coordinate.
…_load_charge_geometry method.
…te_regions methods of proto_nd_flow/resources/geometry.py.
…o geometry_info flow dataset in proto_nd_flow.
…idation tests of method.
…to_nd_flow Geometry module.
…ounds, module_RO_bounds, max_drift_distance, and cathode_thickness attrs and remove drift_regions attr.
…thod in proto_nd_flow Geometry module.
…ts from [mm] to [cm].
…ng Geometry module testing infrastructure.
Full description of changes made is here. |
For validation:
Validation plots for my flowed files ("UPDATED" validations vs. "original" validations in file names) and the corresponding MiniRun4 flow files are attached. In order to run the in_fid() test flow module above, navigate to Validation Plots: |
Hi Elise @edhinkle , Thank you for updating the geometry! In general they look good. I only have some minor comments. Feel free to disregard any of these. I realised that you also changed some units within ndlar_flow [mm] -> [cm] for hits starting from the drift distance. In general it is good, but unit conversion is an additional step that needs to be carried out all the way. The inconsistency persists with the larpix geometry in [mm] and drift velocity modeling in [mm]. I wonder if it's easier to do the conversion only in the very end, so the unit conversion is only carried out once? (I actually don't know why hit and raw hit is calling the same thing twice... Need to look into it more carefully.) If we keep the [cm] as you proposed here, I wonder if we should change larpix geometry and drift velocity modeling in the next iteration. My concern is the future development will need to carry this unit conversion in the mid-way. Is it obvious for the future developer where to add it? However, the updates itself is consistent and I don't think it has any problems. For this block, I wonder if it should go into a different function? Either way is fine. I think it's quite separate from the first half, and just uses the product of it. I also see that if you separate it, then you will need to load two functions, and both parts are indeed the charge properties. Perhaps the Another thing I didn't understand is this part. The use of Again, the modification seems consistent to me. Most of what I said is cosmetic than actually useful. |
@YifanC -- thank you for reviewing the branch and for these comments! I will address them one by one: 1.) [units] -- I agree that the unit situation in this branch is not ideal. The reason that I decided to convert starting at drift_distance was to keep consistency between the units of Geometry datasets/attributes ([cm]) and the units of all inputs to Geometry class methods used elsewhere in flow (e.g. 2.) [this block -> different function? ] -- This is a good point. The main reason I didn't separate this block into another method was that this block requires loading the geometry file to get 3.) [ 4.) [ Thanks again for your comments! |
Hi Elise, Thanks for the comments.
|
…d in proto_nd_flow Geometry module.
…rge_geometry method in proto_nd_flow Geometry module.
Hi Yifan! Thanks for the follow up. Here are some notes on changes I made in response to your comments:
|
…nto remote geometry resource charge fix feature branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good by eye. I think we should remove the older 2.3.16 layout from the data/proto_nd_flow
to avoid confusion. I did not review your test modules very closely because they won't be used in the simulation & data processing routines during productions.
Updates to proto_nd_flow Geometry module in order to remove hard-coded dependencies on outdated geometry, change dataset and method names which reference outdated coordinate systems, and update/add information in the output geometry_info dataset for analyzers working with flow files.