@@ -270,13 +270,13 @@ def getLineProperties(self):
270270 '''
271271 for att in self .attachments .values ():
272272 if isinstance (att ['obj' ], Mooring ):
273- mtype = att ['obj' ].dd [ ' sections' ] [0 ]['type' ]['material' ].lower ()
273+ mtype = att ['obj' ].sections () [0 ]['type' ]['material' ].lower ()
274274 if 'chain' not in mtype :
275275 print ('No chain below seafloor, setting Ta=Tm (no load transfer).' )
276276 return mtype , None , None , True
277277 else :
278- d_nom = att ['obj' ].dd [ ' sections' ] [0 ]['type' ]['d_nom' ]
279- w_nom = att ['obj' ].dd [ ' sections' ] [0 ]['type' ]['w' ]
278+ d_nom = att ['obj' ].sections () [0 ]['type' ]['d_nom' ]
279+ w_nom = att ['obj' ].sections () [0 ]['type' ]['w' ]
280280 return 'chain' , d_nom , w_nom , False
281281 raise ValueError ('No mooring line attachment found for anchor.' )
282282
@@ -326,7 +326,10 @@ def getMudlineForces(self, max_force=False, lines_only=False, seabed=True, xyz=F
326326 self .loads ['mudline_load_type' ] = 'max_force'
327327 break
328328 else :
329- loads = self .mpAnchor .getForces (lines_only = lines_only , seabed = seabed , xyz = xyz )
329+ # loads = self.mpAnchor.getForces(lines_only=lines_only, seabed=seabed, xyz=xyz)
330+ # MoorPy Body.getForces does not accept seabed/lines_only in current API.
331+ # Get forces (total), optionally post-process seabed if needed.
332+ loads = self .mpAnchor .getForces ()
330333 Hm = np .sqrt (loads [0 ]** 2 + loads [1 ]** 2 )
331334 Vm = loads [2 ]
332335 thetam = np .degrees (np .arctan2 (Vm , Hm ))
0 commit comments