Skip to content

Commit

Permalink
change ZeroVolumeBoundingBox error with a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmetNSimsek committed Oct 14, 2024
1 parent 12921fe commit 4c8ce4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions siibra/locations/boundingbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from . import point, pointset, location

from ..commons import logger
from ..exceptions import SpaceWarpingFailedError, ZeroVolumeBoundingBox
from ..exceptions import SpaceWarpingFailedError

from itertools import product
import hashlib
Expand Down Expand Up @@ -85,7 +85,7 @@ def __init__(
self.maxpoint[d] = self.minpoint[d] + minsize

if self.volume == 0:
raise ZeroVolumeBoundingBox("Created BoundedBox's have zero volume.")
logger.warning("Created BoundedBox's have zero volume.")

@property
def id(self) -> str:
Expand Down

0 comments on commit 4c8ce4c

Please sign in to comment.