hpcflow / matflow-new

Mozilla Public License 2.0
3 stars 2 forks source link

Optimise imports #229

Open aplowman opened 6 months ago

aplowman commented 6 months ago

Some imports can be placed inside a function scope to ensure they do run when not needed. This will improve start-up time.

In matplotlib.param_classes.seeds, we import matplotlib, but it is only need in the MicrostructureSeeds.show method.