Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

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)

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)