Open prisae opened 4 months ago
Just something to keep in mind: From SciPy>=1.9 onwards, we can do, e.g.,
SciPy>=1.9
import scipy as sp def myfunc(): sp.interpolate.xyz sp.integrate.xyz ...
The submodules, e.g., interpolate, are lazy loaded within SciPy>=1.9. Before that, one had to do
interpolate
from scipy import interpolate from scipy import integrate ...
Using this throughout would save roughly 50% of the import time of discretize (crucial for the responsiveness of CLI tools that use discretize).
Just something to keep in mind: From
SciPy>=1.9
onwards, we can do, e.g.,The submodules, e.g.,
interpolate
, are lazy loaded within SciPy>=1.9. Before that, one had to doUsing this throughout would save roughly 50% of the import time of discretize (crucial for the responsiveness of CLI tools that use discretize).