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

AttributeError: 'SubCatchment' object has no attribute 'Area' #2

Open
Freestyleyang opened this issue Dec 1, 2023 · 2 comments
Open

Comments

@Freestyleyang
Copy link

Hi There,

Thank you for your great work! I am running Example01-GLUE and an error occurs: AttributeError: 'SubCatchment' object has no attribute 'Area'. I wonder how to fix the error? Thank you.

01

@QianyangWang
Copy link
Owner

Hi,

Thank you for the question. The module for parameter modification in this demo is based on a python package named swmm_api, and its version should be 0.2.0.18.3 (https://pypi.org/project/swmm-api/0.2.0.18.3/). I've tried other versions of swmm_api and found that there are some issues in the compatibility between its different versions. The problem you found here would be caused by this. Please check the version that you are installing. If you are planning to use the latest version of swmm_api, you will need to make some modifications on the param.py in this demo.

The correct reaction of this demo would be like this:
correct

If you still have questions, please don't hesitate to contact me. Have a good weekend!

@Freestyleyang
Copy link
Author

@QianyangWang Thank you very much for your reply. I will try the swmm_api version 0.2.0.18.3.

Can I connect with you on WeChat? I am a Postdoc at the University of Alberta in Canada, focusing on water resources engineering and climate change. My WeChat ID is "yyfreestyle", thanks.

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

No branches or pull requests

2 participants