Skip to content

Commit ff97ed8

Browse files
committed
shared anchor project.unload() bug fix
-- small bug fix in project.unload() to output the anchor type name rather than anchor id for shared anchors
1 parent 72b08dc commit ff97ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

famodel/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3954,7 +3954,7 @@ def unload(self,file='project.yaml'):
39543954
# we have a shared anchor here, put mooring in array_mooring
39553955
headA = 'None' # no heading at end A because it's an anchor
39563956
# append mooring line to array_moor section
3957-
arrayMoor.append([current_config,moor.attached_to[0].id, moor.attached_to[1].id, headA,headB,int(0)])
3957+
arrayMoor.append([current_config, mapAnchNames[atts[is_anch][0].id], moor.attached_to[1].id, headA,headB,int(0)])
39583958
else:
39593959
# not shared anchor or shared mooring, add line to mooring system
39603960
msys.append([current_config,

0 commit comments

Comments
 (0)