-
Notifications
You must be signed in to change notification settings - Fork 100
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
Bug fix in Segmentation's CylindricalGridPhiZ and PolarGridRPhi2: phi… #1353
Conversation
What is the bug? And why is it nonsense? |
|
Ok, thanks for the explanation! The only case I see where PolarGridRPhi2 is used with signed phi is (does not mean others are in the wild): But that should be fine given the spanning of the sensor there? |
Test Results 14 files 14 suites 6h 2m 25s ⏱️ Results for commit aaee9cb. |
Yes, it should. They even write in comment I can add that there exists another (r,phi) segmentation class, viz. Last, in Giving a second thought: introducing such fix w/o pre-warning could be problematic. Not so much for
|
Hi @ybedfer There is another option for PolarGridRPhi2: just leave it as it was before. Btw: the "they" you are referring to is mostly me :) |
if ( phi < _offsetPhi) { | ||
phi += 2*M_PI; | ||
} | ||
|
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.
Agreed that this is totally useless.
I have done as you suggests. |
… range
is now set to [-pi,pi] instead of [0,2pi] if phi IDdescriptor field is signed.
BEGINRELEASENOTES
CylindricalGridPhiZ
andPolarGridRPhi2
:cellId
member method, one now refrains from reducing the phi parameter modulo 2pi when its IDdescriptor is signed.ENDRELEASENOTES