QianyangWang / PyCUP

An open-source python package for (environmental) model calibration and uncertainty analysis based on elite opposition modified heuristic algorithms and the GLUE framework.
MIT License
16 stars 2 forks source link

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

Open Freestyleyang opened 10 months ago

Freestyleyang commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

@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.