-
Notifications
You must be signed in to change notification settings - Fork 46
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
Allow dials.predict
to work without images
#2553
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2553 +/- ##
==========================================
+ Coverage 78.49% 78.59% +0.10%
==========================================
Files 609 609
Lines 74853 75385 +532
Branches 10674 10816 +142
==========================================
+ Hits 58753 59250 +497
- Misses 13937 13956 +19
- Partials 2163 2179 +16 |
* Fix dials.refine program documentation. dials.refine overrides a couple of PHIL parameters, so make sure we take the final PHIL scope used by the program. * News Fixes #2542
orrectly output imageset id when joint_indexing=False and max_lattices>1 in dials.index
Updated refinement working set of reflections threshold. Updated tests to reflect this, and a change in precision for Scan oscillation.
parse with check_format=False. Nasty workaround for cctbx/dxtbx#187
Actually setting There is currently no good way to do this other than having a fallback parser |
There’s a pattern/workaround used in dials/src/dials/command_line/show.py Line 322 in 189fe5a
|
Oh my, there's a feeling of déjà vu... Yes, I'll try this. Thanks! |
the experiments with check_format=True at the point they are needed. Thanks @rjgildea for the reminder!
@graeme-winter added you for review as this touches on the shadow filtering stuff that you added. I think this needs a test case. Can you suggest a good one? (otherwise I guess I can use almost anything just to exercise the mechanics of it) |
@graeme-winter I tried testing this with any old data set:
Seems to me that the shadowing stuff you added is broken? This error is the same on main. |
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.
Looks like a sensible change set, thank you, highlighted one area for API improvement for ExperimentList
but that can wait for another day
if not params.ignore_shadows: | ||
try: | ||
experiments = ExperimentListFactory.from_json( |
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.
This makes me think we need a better way in the API of making this change
Not suggesting that we change it here just that the ExperimentList
needs to have an add_format()
or something
Thanks @graeme-winter. I don't need this merged urgently, so I wonder if we should look at the failures with |
If we just want to predict for some geometry, without having image data, we need
check_format=False