Skip to content

Commit f7be245

Browse files
AxMeNilachlangrose
authored andcommitted
Modified str method of _bounding_box for clarity
1 parent 7606864 commit f7be245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LoopStructural/datatypes/_bounding_box.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,10 @@ def reproject(self, xyz, inplace=False):
547547
return xyz + self.global_origin
548548

549549
def __repr__(self):
550-
return f"BoundingBox({self.origin}, {self.maximum}, {self.nsteps})"
550+
return f"BoundingBox(origin:{self.origin}, maximum:{self.maximum}, nsteps:{self.nsteps})"
551551

552552
def __str__(self):
553-
return f"BoundingBox({self.origin}, {self.maximum}, {self.nsteps})"
553+
return f"BoundingBox(origin:{self.origin}, maximum:{self.maximum}, nsteps:{self.nsteps})"
554554

555555
def __eq__(self, other):
556556
if not isinstance(other, BoundingBox):

0 commit comments

Comments
 (0)