Skip to content

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

@amirmoez98

Description

@amirmoez98

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions