Skip to content

Commit dcfc375

Browse files
Issue with ENsetoption() function (#6)
I guess at line 535, it should be optioncode instead of paramcode.
1 parent b43690a commit dcfc375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

epamodule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def ENsetoption( optioncode, value):
532532
EN_EMITEXPON
533533
EN_DEMANDMULT
534534
value: option value"""
535-
ierr= _lib.ENsetoption(ctypes.c_int(paramcode), ctypes.c_float(value))
535+
ierr= _lib.ENsetoption(ctypes.c_int(optioncode), ctypes.c_float(value))
536536
if ierr!=0: raise ENtoolkitError(ierr)
537537

538538

0 commit comments

Comments
 (0)