From 19a73bbf3b50a61ca866c8a9d3d805eb6df36bf5 Mon Sep 17 00:00:00 2001 From: Daniel Otto de Mentock Date: Thu, 27 Jan 2022 12:14:54 +0100 Subject: [PATCH] [skip ci] adjusted function argument alignment with asterisk --- python/damask/_crystal.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/damask/_crystal.py b/python/damask/_crystal.py index c97f75d01..e42622210 100644 --- a/python/damask/_crystal.py +++ b/python/damask/_crystal.py @@ -311,8 +311,8 @@ class Crystal(): + _lattice_points.get(self.lattice if self.lattice == 'hP' else \ self.lattice[-1],None),dtype=float) - def to_lattice(self, - *, direction: np.ndarray = None, + def to_lattice(self, *, + direction: np.ndarray = None, plane: np.ndarray = None) -> np.ndarray: """ Calculate lattice vector corresponding to crystal frame direction or plane normal. @@ -337,8 +337,7 @@ class Crystal(): return np.einsum('il,...l',basis,axis) - def to_frame(self, - *, + def to_frame(self, *, uvw: np.ndarray = None, hkl: np.ndarray = None) -> np.ndarray: """