-
Notifications
You must be signed in to change notification settings - Fork 9
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
version 0.3.1: job annotation with module version number, symmetry patch, and whitening filter calculation check #57
Conversation
For some reason this broke something in the unittests. Need to investigate. |
These tests are currently failing:
Less okay about the second point is that this PR will not be backwards compatible. Loading previous angle results from template matching will give different angle indexes in the results. My solution would be to update the README to specify that 0.3.1 is not backwards compatible, because I do think the symmetry is a relevant update and this PR is needed to make it work. |
Should have thought more about his symmetry option. I think it only works now for templates that are symmetrical around the z-axis. So I updated the input parameter description to specifiy this. |
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.
LGTM in general, will approve
The API did not change, so a bugfix version change seems appropriate.
I am not too sure if I understand what is incompatible between the two version. Is it just that the result will be different, or can they not be loaded/analyzed at all?
…r is now only calcualted if not detected in the output dir, otherwise neesds to be recalculated for every job init
For my part ready to go. I made the following further updates: Okay, the version number is now a variable stored in the TMJob structure. When a job is initialized the current module version number is assigned, through I added a For the whitening filter, I added a check to see if the file exists upon job init. This is to prevent recalculation of the filter upon loading a job for particle extraction as it is quite an expensive operation. |
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.
You are using a very old/insecure solution for the versioning, please update to use importlib.metadata.version
instead
Co-authored-by: Sander Roet <[email protected]>
I switched everything to importlib!
|
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.
Thanks for the changes, LGTM, feel free to merge!
Realised that I forgot to apply the symmetry in extraction threshold estimation where it should be used to calculate the full search space.
MUCH more importantly: realised that the angle list was not yet sort and needs to be sorted for effective symmetry reduction!
They are now sorted by the first euler angle upon loading, which should be a general fix that also works for user input angular search.