Skip to content

Commit 24ce4dd

Browse files
committed
small bug fix removeMooring
1 parent 3a9f66a commit 24ce4dd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

famodel/helpers.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,8 +1160,10 @@ def removeMooring(mooring, project, reset_ms=False):
11601160
11611161
Parameters
11621162
----------
1163-
mooring : TYPE
1164-
DESCRIPTION.
1163+
mooring : FAModel mooring object or list of FAModel mooring objects to remove
1164+
project : FAModel project object this mooring is a part of
1165+
reset_ms : bool
1166+
Re-creates project moorpy system after detaching line if True
11651167
11661168
Returns
11671169
-------
@@ -1182,8 +1184,8 @@ def removeMooring(mooring, project, reset_ms=False):
11821184
# for ind in list(inds_to_remove.reverse()):
11831185
# att.mooring_headings.pop(ind)
11841186
# detach mooring from each end
1185-
moor.detach_From('A')
1186-
moor.detach_From('B')
1187+
moor.detachFrom('A')
1188+
moor.detachFrom('B')
11871189

11881190
# remove from mooringList
11891191
project.mooringList.pop(moor.id)

0 commit comments

Comments
 (0)