Skip to content

Commit 42f59a2

Browse files
committed
changes to addPlatform in project class
-updated default for platformType and updated shape for moor_headings to resolve errors
1 parent 6ea0335 commit 42f59a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

famodel/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,8 +1453,8 @@ def addPlatform(self,r=[0,0,0], id=None, phi=0, entity='',
14531453
if id==None:
14541454
id = 'fowt'+len(self.platformList)
14551455
# optional information to add
1456-
platformType = getFromDict(kwargs, 'platform_type', dtype=int, default=None)
1457-
moor_headings = getFromDict(kwargs,'mooring_headings', default=[])
1456+
platformType = getFromDict(kwargs, 'platform_type', dtype=int, default=[])
1457+
moor_headings = getFromDict(kwargs,'mooring_headings',shape = -1, default = [])
14581458
RAFTDict = getFromDict(kwargs,'raft_platform_dict', default = {})
14591459
hydrostatics = getFromDict(kwargs, 'hydrostatics', default= {})
14601460

0 commit comments

Comments
 (0)