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

test.py not running #29

Open
HafizRiaz opened this issue Jul 31, 2023 · 1 comment
Open

test.py not running #29

HafizRiaz opened this issue Jul 31, 2023 · 1 comment

Comments

@HafizRiaz
Copy link

Sorry to disturb you again sir, after training the model when i try to test the model using the following command in repo after removing the 'trial/model_save'
'python test.py --save-path trial/model_save --alg matd3 --alias 0 --scenario case33_3min_final --voltage-barrier-type l1 --test-mode single --test-day 730 --render'
and gave the path of D:\MAPDN\MAPDN-main\model_savemodel_save in test.py, it generates the following error
File "test.py", line 79, in
if argv.save_path[-1] is "/":
TypeError: 'NoneType' object is not subscriptable

the question is, before training the model when i faced the save_path error you askd to create a folder 'save_path' in my own path but after training, a new folder with name 'model_savemodel_save' automatically created. When i specify the same path in test.py, it generates the error. Plz help me

@HafizRiaz
Copy link
Author

Dear Author, please consider my request as i am waiting for your response. after going through different forums, i got struck and unable to resolve this issue myself so if you could help me it will be an encouragement for perusing the work on this field

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