Repository navigation
CTF estimator refactor - #1416
garrettwrong wants to merge 44 commits into
Conversation
[skip ci]
[skip ci]
instance vars and plots
g_min g_max stop_cond iterations
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1416 +/- ##
===========================================
- Coverage 90.65% 90.44% -0.21%
===========================================
Files 135 135
Lines 14932 15044 +112
===========================================
+ Hits 13537 13607 +70
- Misses 1395 1437 +42 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
half psd, remove large tmps, redux kernel
|
Ran against several full datasets. Times are great; defocus and astigmatism values look good. Angle appears to be impacted by a transpose somewhere. I'll see if I can sniff that out in the code, but is also easy enough to fix after computed as well. I used the logic below to adjust
With the various fixes and improvements in place the code appears to work for the majority of one of the problem K2 datasets now, but I will still look at making an alternative model for that case then reach out to Ayelet after. |
Angle has been resolved in 43a7017. I'm scheduling a follow up with Ayelet to cover the few questions I had remaining and discuss what I see regarding some of micrographs with poor solutions.... but it won't be for a little bit... Probably this can be reviewed and merged in by then; soI think it would be most efficient to review this larger PR now and just have a smaller one with any followup tweaks or changes for the problem K2 micrographs. |
j-c-c
left a comment
There was a problem hiding this comment.
Looks good! Found a few typos (per my contractual obligation), but also a couple small potential bugs.
|
Cool, thanks. @janden this one should be ready for you now. |
| ) # Ensure output_file_dir exists | ||
| output_file_prefix = output_file_dir / input_file.stem | ||
|
|
||
| with mrcfile.open(input_file, mode="r", permissive=True) as mrc: |
There was a problem hiding this comment.
Replace this with Image.load or Image._load_raw to handle the warnings from published data with junk headers...
Reconciles some errors in the first Python implementation relative to the MATLAB.
Refactoring:
ctftests extension).estimatemethod.Still WIP, some todos.
I will probably prefer make a separate PR handling any source integration changes to support a "from micrograph" preprocessing example. Currently this will produce the STAR files on disk which the sources were designed to consume. That design isn't very good IMO, but that's another matter... If source changes bleed into this it will make the PR a bear.