We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are no casting methods to go from Workspace to a Model/Component (nor OptionalModel/OptionalComponent) in the python bindings.
In [8]: m.clone().to_Workspace() --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[8], line 1 ----> 1 m.clone().to_Workspace() AttributeError: 'Workspace' object has no attribute 'to_Workspace'
Same as ruby
[1] model(main)> m = Model.new => #<OpenStudio::Model::Model:0x0000000118300098 @__swigtype__="_p_openstudio__model__Model"> [2] model(main)> m.clone.to_Workspace NoMethodError: undefined method `to_Workspace' for #<OpenStudio::Workspace:0x0000000108021670> from (pry):2:in `__pry__' [3] model(main)> m.clone.to_Model => #<OpenStudio::Model::Model:0x000000010802a798 @__swigtype__="_p_openstudio__model__Model
See above
Add the casting methods in swig files
Some additional details about your environment for this issue (if relevant):
Trying to clone a model.
The text was updated successfully, but these errors were encountered:
Fix #4997 - Add Workspace casting methods in python bindings
4a3c4c5
Merge pull request #4998 from NREL/4997-Python_workspace_cast
186456d
d96016b
jmarrec
Successfully merging a pull request may close this issue.
Issue overview
There are no casting methods to go from Workspace to a Model/Component (nor OptionalModel/OptionalComponent) in the python bindings.
Current Behavior
Expected Behavior
Same as ruby
Steps to Reproduce
See above
Possible Solution
Add the casting methods in swig files
Details
Environment
Some additional details about your environment for this issue (if relevant):
Context
Trying to clone a model.
The text was updated successfully, but these errors were encountered: