victorliu / S4

Stanford Stratified Structure Solver - Electromagnetic simulator for layered periodic structures
http://www.stanford.edu/group/fan/S4/
GNU General Public License v2.0
133 stars 150 forks source link

Python-API, function SetOptions not parsing int variables #5

Open jbuencuerpo opened 10 years ago

jbuencuerpo commented 10 years ago

The function SetOptions fails to pass the arguments which needs int values, ie Verbosity and DiscretizationResolution.

Modifying S4/main_python.c:1164 function parser works.

args, kwds, "|isO&iO&sO&O&O&:SetOptions", kwlist,
victorliu commented 10 years ago

I have made the changes you indicated and committed it to the repo. Thanks!

On Mar 29, 2014, at 9:13 AM, jbuencuerpo notifications@github.com wrote:

The function SetOptions fails to pass the arguments which needs int values, ie Verbosity and DiscretizationResolution.

Modifying S4/main_python.c:1164 function parser works.

args, kwds, "|isO&iO&sO&O&O&:SetOptions", kwlist, — Reply to this email directly or view it on GitHub.