Skip to content

Commit 22c1aa0

Browse files
committed
Update tests
1 parent 9cdf77d commit 22c1aa0

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

pygfunction/boreholes.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,7 @@ def __add__(self, other: Union[Self, list]):
8181
field = Borefield.from_boreholes([self, other])
8282
return field
8383

84-
def __radd__(self, other: Union[Self, list]):
85-
"""
86-
Adds two boreholes together to form a borefield
87-
"""
88-
if not isinstance(other, (self.__class__, list)):
89-
# Check if other is a borefield and try the operation using
90-
# other.__radd__
91-
try:
92-
field = other.__add__(self)
93-
except:
94-
# Invalid input
95-
raise TypeError(
96-
f'Expected Borefield, list or Borehole input;'
97-
f' got {other}'
98-
)
99-
elif isinstance(other, list):
100-
# Create a borefield from the borehole and a list
101-
from .borefield import Borefield
102-
field = Borefield.from_boreholes(other + [self])
103-
else:
104-
# Create a borefield from the two boreholes
105-
from .borefield import Borefield
106-
field = Borefield.from_boreholes([other, self])
107-
return field
84+
10885

10986
def distance(self, target):
11087
"""

0 commit comments

Comments
 (0)