First time here? Check out the Help page!
1 | initial version |
That's my fault, sorry, I slightly messed up the SWIG typemaps when I added support for automatic conversions to/from C++ openstudio::path
and python's pathlib.path
...
I've filed https://github.com/NREL/OpenStudio/issues/5064 to track it. Either pass a str
to a pathlib.Path
and it'll work.
from pathlib import Path
m.save(Path("model.osm"), True)
m.save("model.osm", True)
2 | No.2 Revision |
That's my fault, sorry, I slightly messed up the SWIG typemaps when I added support for automatic conversions to/from C++ openstudio::path
and python's pathlib.path
...
I've filed https://github.com/NREL/OpenStudio/issues/5064 to track it. Either pass a str
to or a pathlib.Path
and it'll work.
from pathlib import Path
m.save(Path("model.osm"), True)
m.save("model.osm", True)