Mar-01-2020, 05:40 AM
On lines 3 and 6 of ScriptEnv.py, the functions are defined to take a single parameter,
r
. In ScriptEnv2.py, you're calling those functions on lines 3 and 4 without passing any arguments. Compare this with lines 10 and 11 in ScriptEnv.py - there you're passing radius
to both functions. If a function takes arguments, you must supply them (assuming no defaults of course!). It's really as simple as that.