You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: