We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This leads to quite a surprise in Python:
>>> exam_info.patient_position.this <stir::PatientPosition::HFS> >>> exam_info.patient_position == stir.PatientPosition(stir.PatientPosition.HFS) True >>> exam_info.patient_position == stir.PatientPosition(stir.PatientPosition.FFS) False >>> exam_info.patient_position != stir.PatientPosition(stir.PatientPosition.HFS) True >>> exam_info.patient_position != stir.PatientPosition(stir.PatientPosition.FFS) True
The 3rd one is "wrong". It is probably caused by Python's default __ne__ being called, which checks in terms of identity (not equality).
__ne__
The text was updated successfully, but these errors were encountered:
KrisThielemans
No branches or pull requests
This leads to quite a surprise in Python:
The 3rd one is "wrong". It is probably caused by Python's default
__ne__
being called, which checks in terms of identity (not equality).The text was updated successfully, but these errors were encountered: