Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PDB 3NH3 HIS:244 breaks parser with occupancy of -1.0. Changed initia…
…l last_occupancy of DisorderedAtom to -99.
- Loading branch information
c177210
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.
So this is a magic number now? Can you add a comment to make that clear?
Also consider these alternatives (for choosing the highest-occupancy atom in disordered_add, if I'm reading that correctly):
c177210
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.
-1 was a magic number already, which apparently didn't work for this case. I never saw a negative occupancy, but apparently they might exist (under some very dubious pretense though..). I chose -99 because I doubt that that will be a valid number, since occupancy is (usually) between 0 and 1. Peter however, suggested to use None and I agree. It seems a safer option indeed.