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 in hydroDL.master when Running testPUR-Reg.py and trainPUR-Reg.py #13

Open
amirmoez98 opened this issue Nov 16, 2023 · 0 comments

Comments

@amirmoez98
Copy link
Contributor

amirmoez98 commented Nov 16, 2023

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.

@amirmoez98 amirmoez98 changed the title a little bug in the "example/PUR" codes (train and test codes) AttributeError in hydroDL.master when Running testPUR-Reg.py and trainPUR-Reg.py Nov 16, 2023
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

1 participant