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 :
2019-08-13 17:18:39 +03:00
from . qpms_c import PointGroup , FinitePointGroup , FinitePointGroupElement , Particle , scatsystem_set_nthreads , ScatteringSystem , ScatteringMatrix , pitau
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. "
' Currently, I see LD_LIBRARY_PATH= " %s " ' % __os . environ [ ' LD_LIBRARY_PATH ' ] )
raise ex
2016-03-27 12:56:54 +03:00
from . qpms_p import *
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
2018-05-15 14:37:05 +03:00
from . lattices2d import *
2017-02-05 22:38:58 +02:00
from . hexpoints import *
2018-05-17 13:00:44 +03:00
from . tmatrices import *
2018-09-22 04:29:30 +03:00