Skip to content

Commit

Permalink
STY #268 whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Nov 9, 2023
1 parent 9e2932a commit 186b738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hkl/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def __repr__(self):
Lattice = namedtuple("LatticeTuple", "a b c alpha beta gamma")


def new_lattice(a, b=None, c=None, alpha=90., beta=None, gamma=None):
def new_lattice(a, b=None, c=None, alpha=90.0, beta=None, gamma=None):
"""
Simplify for high-symmetry crystal systems.
Expand All @@ -239,7 +239,7 @@ def new_lattice(a, b=None, c=None, alpha=90., beta=None, gamma=None):
monoclinic new_lattice(4, 5, 3, beta=75) 4 5 3 90 75 90
triclinic new_lattice(4, 5, 3, 75., 85., 95.) 4 5 3 75 85 95
=============== =================================== === === === ======= ======= =====
.. see: https://en.wikipedia.org/wiki/Crystal_system
"""
return Lattice(a, b or a, c or a, alpha, beta or alpha, gamma or alpha)
Expand Down

0 comments on commit 186b738

Please sign in to comment.