mhpi / hydroDL

Other
183 stars 98 forks source link

AttributeError in hydroDL.master when Running testPUR-Reg.py and trainPUR-Reg.py #13

Open amirmoez98 opened 10 months ago

amirmoez98 commented 10 months ago

When attempting to run the models using testPUR-Reg.py and trainPUR-Reg.py, we encounter the following error:

Error: File "testPUR-Reg.py", line 208, in masterDict = master.wrapMaster(out, optData, optModel, optLoss, optTrain) AttributeError: module 'hydroDL.master' has no attribute 'wrapMaster' The issue seems to stem from an incorrect module import statement in these files. The current import statement, from hydroDL import master, does not correctly load the required functions.

Proposed Solution: To resolve this issue, we propose modifying the import statement at the beginning of both testPUR-Reg.py and trainPUR-Reg.py. The corrected import statement should be as follows:

from hydroDL.master import master Steps to Reproduce: Run testPUR-Reg.py or trainPUR-Reg.py. Observe the AttributeError mentioned above.