Re: [Tutor] Modules and variable usage in functions from other files

2015-12-24 Thread Alan Gauld
On 24/12/15 01:45, Richard Bekenstein wrote: >from scipy.constants import m_p,G,k >import numpy as np >from math import cos, pi, floor ... >from bol_runge_kutta_evl_nonadaptive import runge_kutta_evl >When I run this main.py, I get an error message from the im

[Tutor] Modules and variable usage in functions from other files

2015-12-24 Thread Richard Bekenstein
Dear All, I have a main .py script which contains code that occasionally calls some functions. This script calls in these defined functions from other .py files in the same directory as the main .py. However, even after importing the functions from the different .py files, I get err