2016-12-05 00:00:32 +02:00
from pkg_resources import get_distribution
__version__ = get_distribution ( ' qpms ' ) . version
2019-08-12 16:33:54 +03:00
import os as __os
from sys import platform as __platform
import warnings as __warnings
try :
2022-06-21 05:45:59 +03:00
from . qpms_c import PointGroup , FinitePointGroup , FinitePointGroupElement , Particle , scatsystem_set_nthreads , ScatteringSystem , ScatteringMatrix , pitau , set_gsl_pythonic_error_handling , pgsl_ignore_error , gamma_inc , lll_reduce , qpms_library_version
2019-08-12 16:33:54 +03:00
except ImportError as ex :
if __platform == " linux " or __platform == " linux2 " :
if ' LD_LIBRARY_PATH ' not in __os . environ . keys ( ) :
__warnings . warn ( " Environment variable LD_LIBRARY_PATH has not been set. Make it point to a directory where you installed libqpms and run python again " )
else :
__warnings . warn ( " Does your LD_LIBRARY_PATH include a directory where you installed libqpms? Check and run python again. "
2019-08-25 18:58:05 +03:00
' \n Currently, I see LD_LIBRARY_PATH= " %s " ' % __os . environ [ ' LD_LIBRARY_PATH ' ] )
2019-08-12 16:33:54 +03:00
raise ex
2019-08-10 08:08:16 +03:00
from . cyquaternions import CQuat , IRot3
2019-08-14 11:04:42 +03:00
from . cybspec import VSWFNorm , BaseSpec , default_bspec
2019-08-12 11:18:25 +03:00
from . cytmatrices import CTMatrix , TMatrixInterpolator , TMatrixGenerator
2019-08-10 08:56:23 +03:00
from . cytranslations import trans_calculator
2019-08-11 09:43:45 +03:00
from . cymaterials import MaterialInterpolator , EpsMu , LorentzDrudeModel , lorentz_drude , EpsMuGenerator
2019-08-14 11:04:42 +03:00
from . cycommon import dbgmsg_enable , dbgmsg_disable , dbgmsg_active , BesselType , VSWFType
from . cywaves import vswf_single
2019-12-14 09:13:51 +02:00
2022-06-07 06:07:08 +03:00
#from .qpms_p import * # don't import automatically (adds around 0.5 s delay and depends on scipy)
2019-12-14 09:13:51 +02:00
from . constants import *
# legacy code which brutally slows down the whole package init:
#from .lattices2d import *
#from .hexpoints import *
#from .tmatrices import *
2018-09-22 04:29:30 +03:00