Skip to content

Commit 05f051a

Browse files
committed
updating the condition statement in reposition such that if r_center is at the origin, it does not turn False
1 parent 26c314f commit 05f051a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

famodel/mooring/mooring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def reposition(self, r_center=None, heading=None, project=None,
229229
# heading 2D unit vector
230230
u = np.array([np.cos(phi), np.sin(phi)])
231231

232-
if np.any(r_center):
232+
if r_center is not None:
233233
if self.shared == 1:
234234
r_centerA = np.array(r_center)[0]
235235
r_centerB = np.array(r_center)[1]

0 commit comments

Comments
 (0)