Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lenient to missing atom_site.occupancy
  • Loading branch information
josemduarte committed Feb 21, 2025
commit 65d3dcde9a49b3b3f36750815c2c2b3e0d501d5a
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public void consumeAtomSite(AtomSite atomSite) {
atom.setY(cartnY.get(atomIndex));
atom.setZ(cartnZ.get(atomIndex));

atom.setOccupancy((float) occupancy.get(atomIndex));
atom.setOccupancy((float) (occupancy.isDefined()? occupancy.get(atomIndex) : 1.0));
atom.setTempFactor((float) bIsoOrEquiv.get(atomIndex));

if (altLocation == null || altLocation.isEmpty() || ".".equals(altLocation)) {
Expand Down