-
Notifications
You must be signed in to change notification settings - Fork 103
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 loading computationally predicted cif files, which may not have certain custom annotations #670
Allow loading computationally predicted cif files, which may not have certain custom annotations #670
Conversation
CodSpeed Performance ReportMerging #670 will not alter performanceComparing Summary
|
Thanks for the effort. However, I am somewhat divided regarding this feature. Pro:
Contra:
@biotite-dev Do you have opinions about this? |
Providing some additional context why this feature may be helpful in practice:
|
Hi, I would also lean towards sensible defaults here. |
That sounds like a good option to me - if you agree @padix-key , I'm happy to update the MR accordingly |
I am inclined towards keeping the parameter list concise, especially as As I have no strong opinion for or against this new behavior here and as the small user base sample in this PR 😉 clearly votes for sensible defaults, I think this is a good way to go 👍. As mentioned in #668, we have to wait for #661 to fix the CI. |
Can you run |
2a10ccb
to
9b235e1
Compare
Thanks for your contribution! |
When loading cif files, it is convenient to specify extra fields to be loaded (
b_factor, occupancy, charge
) without having to first inspect theatom_site
record to see whether they exist.This PR implements this functionality by providing fallback default values for
b_factor
(nan
) andoccupancy
(1.0
) in cases where no annotation is given but the extra field is nontheless required.It also warns when formal charge is inferred, which currently happens silently assuming a fully uncharged structure
charge=0
everywhere.