New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model.Load(path) seems broken with some models #4916
Comments
Looks like Model.load(path) needs to find a workflowJSON in the osm's companion folder: OpenStudio/src/model/Model.cpp Lines 1876 to 1885 in 872300d
|
"Model.load plain assumes your model's version is the same as the OS SDK version you use." "Looks like Model.load(path) needs to find a workflowJSON in the osm's companion folder:" |
require '/usr/local/openstudio-3.5.1/Ruby/openstudio'
OpenStudio::openStudioLongVersion
m = OpenStudio::Model::Model.load('in_IB.osm').get
m.objects.size
=> 0 OpenStudio::Logger.instance.standardOutLogger.setLogLevel(OpenStudio::Trace)
m = OpenStudio::Model::Model.load('in_IB.osm').get
You do have two objects named First Floor. Lines 2813 and 3089
|
When you use VT,
|
I'm going to close this one as it's an error in the model itself. The Model::load difference with VT is captured in #4692 |
Issue overview
With the CSharp SDK, the method
Model.Load(path)
seems doesn't work with some models, and no errors are thrown.Current Behavior
The loaded model seems empty.
Steps to Reproduce
Here is the sample code and test model.
in_IB.zip
Possible Solution
I couldn't find why it doesn't work for this model.
But I am able to use the VersionTranslator as an alternative.
Environment
The text was updated successfully, but these errors were encountered: