openfast
openfast copied to clipboard
Problem with MAP++ and python work in standalone
Hello,
I am not familiar with python language. I'm trying to get Map++ to work on python but I had trouble getting it to work standalone. I attach with this message the two Python files necessary for the operation of MAP++. I get a name type error "ModelData_Type' is not defined". This error comes from the mapsys.py file. I use the python files available on the MAP++ documentation https://map-plus-plus.readthedocs.io/en/latest/python_example.html I don't quite understand because I haven't touched this file. If I understood correctly it is just used to load the DLL library. Any help will be welcome...
Thanks in advance PythonFile.zip ,
Referring this question to @mmasciol, the original author of MAP++ and part time maintainer of the code. The documentation refers to MAP++ archive on BitBucket, which is outside of the NREL maintained OpenFAST repository (it may be different and therefore incompatible with the OpenFAST version of MAP++).
@salicto, I assume you have looked at https://map-plus-plus.readthedocs.io/en/latest/faq.html
@rafmudaf, I hadn't realized there was another readthedocs for MAP++. Is this something we want to port over to the OF documentation for MAP++ (assuming compatibility)?
Hello M. Platt,
Yes I have. The code python loads correctly the MAP++ module. I use Spyder with python 3.8. I have a error in line 141 from mapsys.py file. I did not modify the file. I took it as it is. I only modify the path to load the dll file.
Best Regards,
@rafmudaf, I hadn't realized there was another readthedocs for MAP++. Is this something we want to port over to the OF documentation for MAP++ (assuming compatibility)?
It's probably better to link to the MAP++ documentation through the OpenFAST docs. Otherwise, there would be two versions of the same and eventually they could get out of sync.