Skip to content
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

Missing feature: tree loads #129

Closed
frisodam opened this issue Jul 24, 2023 · 2 comments · Fixed by #130
Closed

Missing feature: tree loads #129

frisodam opened this issue Jul 24, 2023 · 2 comments · Fixed by #130

Comments

@frisodam
Copy link

Although the TreeLoad class exists in the file loads.py, I am still unable to instantiate a tree load because it is still an abstract class (see below). Will the tree load feature be added soon? Thanks in advance.

TypeError: Can't instantiate abstract class TreeLoad with abstract method to_internal_datastructure
@carloslubbers
Copy link
Contributor

Should be fixed in version v1.1.0, you can now use DStabilityModel.add_load to add it to the loads.

You may also use the more manual way and add instances of PersistableTree to DStabilityModel.datastructure.loads[0].Trees

@frisodam
Copy link
Author

Thank you for the quick update! It works as expected now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants