Skip to content

Commit 3e8e78c

Browse files
committed
Unitcell is now a float[] and not a List<Float>
1 parent 79824fc commit 3e8e78c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/io/mmtf/BioJavaStructureDecoder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,14 +318,14 @@ private Group getCorrectAltLocGroup(final Character altLoc) {
318318
*/
319319
@Override
320320
public final void setXtalInfo(final String spaceGroupString,
321-
final List<Float> unitCell) {
321+
final float[] unitCell) {
322322
// Now set the xtalographic information
323323
PDBCrystallographicInfo pci = new PDBCrystallographicInfo();
324324
SpaceGroup spaceGroup = SpaceGroup.parseSpaceGroup(spaceGroupString);
325325
pci.setSpaceGroup(spaceGroup);
326-
if (unitCell.size() > 0) {
327-
CrystalCell cell = new CrystalCell(unitCell.get(0), unitCell.get(1),
328-
unitCell.get(2), unitCell.get(3), unitCell.get(4), unitCell.get(5));
326+
if (unitCell.length > 0) {
327+
CrystalCell cell = new CrystalCell(unitCell[0], unitCell[1],
328+
unitCell[2], unitCell[3], unitCell[4], unitCell[5]);
329329
pci.setCrystalCell(cell);
330330
structure.setCrystallographicInfo(pci);
331331
}

0 commit comments

Comments
 (0)