Description
Dear all,
I’m not familiar with pyMAP, and when I hope to extract mooring stiffness matrix through Ex3_StiffnessMatrixFromFST.py. However a question happends as shown below
Part from Ex3_StiffnessMatrixFromFST.py
fstFilename = os.path.join(scriptDir, 'spar\Main.fst')
print(fstFilename)
# moor = pyMAP()
moor = pyMAP(fstFilename)
error line: moor = pyMAP(fstFilename)
TypeError: pyMAP.init() takes 1 positional argument but 2 were given
And I check the pymap.py file as shown below and it seems that the init( self ) command needs none argument which obeys the code “moor = pyMAP(fstFilename)”. Could anyone tell me how to solve this?
Part from pymap.py
class pyMAP(object):
def __init__( self ) :
self.ierr = c_int(0)
self.status = create_string_buffer(1024)
print(self.ierr)
print(self.status)
self.f_type_d = self.CreateDataState()
self.f_type_u = self.CreateInputState( )
self.f_type_x = self.CreateContinuousState( )
What have to be noted are that I failed to create wisdem-env through the “mamba create env” command, so I use the “pip install wisdem” and “python setup.py develop” in the base environment and then run Ex3_StiffnessMatrixFromFST.py.