Future-Power-Networks / MAPDN

This repository is for an open-source environment for multi-agent active voltage control on power distribution networks (MAPDN).
MIT License
203 stars 55 forks source link

test.py not running #29

Closed HafizRiaz closed 2 weeks ago

HafizRiaz commented 1 year ago

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 commented 1 year ago

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