Finding a machine index and changing the array value
Hello everyone, I am trying to find a wind machine index number and change the WPCMND and WQCMND array values for that wind machine. I am new to python, can anybody explain how to find the index number and change the array values using python? Thanks Diz
yfwing, Appreciate your quick response. I tried using the below syntax on the command line input ierr,ival=windmind(104,1,WGEN,VAR),but I am seeing the following error Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'windmind' not defined.
jconto, thanks for joining on the issue. I tried using the syntax ierr,ival= psspy.windmind(104,1,WGEN,VAR) and there still is error poping up. It says invalid syntax.
@Diz, you need use single quote to WGEN and VAR. i.e., the syntax should be: ierr,ival= psspy.windmind(104,1,'WGEN','VAR').
@yfwing, No luck yet. Actually I tried using quote too. Below is what I tried ierr,ival= psspy.windmind(104,1,'WGEN','VAR') ^ SyntaxError: invalid syntax Python Exception raised! Any suggestions why I am getting this error. Thanks
@Diz, Sorry, it should be ierr,ival= psspy.windmind(104,'1','WGEN','VAR'). the machine ID should be Character as well.