Skip to content

Commit

Permalink
Merge pull request #168 from samwaseda/patch-1
Browse files Browse the repository at this point in the history
Change `repetitions` to `[1, 1, 1]` if `None`
  • Loading branch information
srmnitc authored Oct 7, 2024
2 parents a8f2771 + 77ec133 commit 02a1426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atomrdf/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def _make_crystal(
s : object
The atomrdf.Structure object representing the generated crystal structure.
"""
if repetitions is None:
repetitions = [1, 1, 1]
atoms, box, sdict = pcs.make_crystal(
structure,
lattice_constant = _declass(lattice_constant),
Expand Down Expand Up @@ -2674,4 +2676,3 @@ def plot3d(self, *args, **kwargs):
ase_structure = self.write.ase()
pyiron_structure = ase_to_pyiron(ase_structure)
return pyiron_structure.plot3d(*args, **kwargs)

0 comments on commit 02a1426

Please sign in to comment.