seotaijiya / IRAWCS

Simulation code and additional documents for Intelligent Resource Allocation in Wireless Communications Systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some problem about random_power() when running the program

Wangzy221 opened this issue · comments

Hello author, I have encountered some problems while running the program

line 583
def random_power(channel, tx_max, granuty, noise, DUE_thr, I_thr, P_c):
line 1169, in Print_Test_Full
RAN_SE, RAN_EE, RAN_PW, PRO_CUE_vio, PRO_DUE_vio = random_power(data_test, tx_max, Num_power_level, noise, DUE_thr, I_thr, P_c, tx_power_set)
random_power() takes 7 positional arguments but 8 were given

How can I solve this problem?Thanks a lot.

Dear Stuwangzy,

I have revised the error in code.

Specifically, the part "random_power(data_test, tx_max, Num_power_level, noise, DUE_thr, I_thr, P_c, tx_power_set)" should be revised to random_power(data_test, tx_max, Num_power_level, noise, DUE_thr, I_thr, P_c).

Thank you.