Skip to content

Commit

Permalink
Update libmsym.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rfkspada committed May 14, 2020
1 parent d07af56 commit 6235048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/libmsym/libmsym.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ def __str__(self):
orientation = self._proper_rotation_type_names[self.orientation]
elif self.type == self.REFLECTION:
orientation = self._reflection_type_names[self.orientation]
axis = " with normal vector " + repr(self.vector)
axis = " with normal vector " + "[ {: >.3f}, {: >.3f}, {: >.3f}]".format(self.vector[0],self.vector[1],self.vector[2])

if self.type in [self.PROPER_ROTATION, self.IMPROPER_ROTATION]:
order = str(self.order)
power = "^" + str(self.power)
axis = " around " + repr(self.vector)
axis = " around " + "[ {: >.3f}, {: >.3f}, {: >.3f}]".format(self.vector[0],self.vector[1],self.vector[2])

return __name__ + "." + self.__class__.__name__ + "( " + self._names[self.type] + order + orientation + power + axis + ", conjugacy class: " + str(self.conjugacy_class) + " )"
def __repr__(self):
Expand Down

0 comments on commit 6235048

Please sign in to comment.