Closed palvarezc closed 4 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Flag | Coverage Δ | |
---|---|---|
93.26% <100.00%> (+0.12%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Files with missing lines | Coverage Δ | |
---|---|---|
src/cavendish_particle_tracks/_main_widget.py | 93.41% <100.00%> (+0.23%) |
:arrow_up: |
src/cavendish_particle_tracks/analysis.py | 97.22% <100.00%> (+0.05%) |
:arrow_up: |
For the layer that contains the measurements of the radii and decay lengths, it makes more sense to have the dimensionality of the data itself.
But you're not changing the layer setup here? I mean: you've just switched to 4D and haven't used it..?
Shit, you are right.... I think the tests in test_calculate
would not catch this.
I think the calculation of lengths is probably fine, but the radius will break. I'll try to update the test...
Modified the relevant functions to deal with 4D points.
In the table and the data we save only the 2D projection (x,y), is there any value in saving the 4D points instead, maybe for debug purposes?
Retrospectively added
which is my understanding of the usability feature we're trying to implement here.
P.s. is the title of this PR correct? 4D is still the understanding of a layer that is new for each event vs. one layer for all events.
would be handling 1000 × 3 layers × 3 (or 4) points per event per layer?
More like 500 images × 10 points per event × (2 × floating point numbers per point) which is 100s of kbs but should be fine in RAM.
Conflicts don't look too bad.
P.s. is the title of this PR correct? 4D is still the understanding of a layer that is new for each event vs. one layer for all events.
(Event, View, x, y)
For the layer that contains the measurements of the radii and decay lengths, it makes more sense to have the dimensionality of the data itself.
Potentially, this also allows to raise an error if the wrong particle is being used (by consulting the event_number and view_number) introduced in:
153
This is not implemented yet!
Solves
109
165