g4edge / pyg4ometry

Python code for rapid creation and conversion of radiation transport Monte Carlo (Geant4 and Fluka) geometries
https://pyg4ometry.readthedocs.io
GNU General Public License v3.0
15 stars 13 forks source link

scope all imports #198

Open stewartboogert opened 4 hours ago

stewartboogert commented 4 hours ago

Need to properly scope all imports

e.g.

import numpy as _np

Makes it much easier to change the import structure in the future

gipert commented 3 hours ago

I would propose to remove the underscore in front, it's not really needed and makes code prettier :)

stewartboogert commented 3 hours ago

Agreed but it forms part of what is imported with a module. So if users mechanism is not reading and just "tabbing" around different classes it clutters the available scope