Skip to content

Commit

Permalink
better dirvh dict indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bdcht committed Mar 17, 2020
1 parent ea312c2 commit aaed484
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions grandalf/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,10 @@ def dirh(self):
def dirvh(self, dirvh):
assert dirvh in range(4)
self.__dirvh = dirvh
self.__dirh, self.__dirv = {0: (1, -1), 1: (-1, -1), 2: (1, 1), 3: (-1, 1)}[
dirvh
]
self.__dirh, self.__dirv = {0: (1, -1),
1: (-1, -1),
2: (1, 1),
3: (-1, 1)}[dirvh]

@dirv.setter
def dirv(self, dirv):
Expand Down

0 comments on commit aaed484

Please sign in to comment.