Don't import legacy code to speed up qpms import.

Former-commit-id: b34cdc751f6076d0a02ebc6b122abbd8fbe9cde8
This commit is contained in:
Marek Nečada 2019-12-14 09:13:51 +02:00
parent 4c7dd1ee61
commit 2f9e5670da
1 changed files with 8 additions and 4 deletions

View File

@ -16,7 +16,6 @@ except ImportError as ex:
__warnings.warn("Does your LD_LIBRARY_PATH include a directory where you installed libqpms? Check and run python again."
'\nCurrently, I see LD_LIBRARY_PATH="%s"' % __os.environ['LD_LIBRARY_PATH'])
raise ex
from .qpms_p import *
from .cyquaternions import CQuat, IRot3
from .cybspec import VSWFNorm, BaseSpec, default_bspec
from .cytmatrices import CTMatrix, TMatrixInterpolator, TMatrixGenerator
@ -24,7 +23,12 @@ from .cytranslations import trans_calculator
from .cymaterials import MaterialInterpolator, EpsMu, LorentzDrudeModel, lorentz_drude, EpsMuGenerator
from .cycommon import dbgmsg_enable, dbgmsg_disable, dbgmsg_active, BesselType, VSWFType
from .cywaves import vswf_single
from .lattices2d import *
from .hexpoints import *
from .tmatrices import *
from .qpms_p import * # maybe don't import automatically in the future (adds around 0.5 s delay)
from .constants import *
# legacy code which brutally slows down the whole package init:
#from .lattices2d import *
#from .hexpoints import *
#from .tmatrices import *