More specific imports

Former-commit-id: cb3923358702d42e2453bcbfd9712178731a082f
This commit is contained in:
Marek Nečada 2019-08-10 10:15:08 +03:00
parent 1aa64248fc
commit 56147ef91d
2 changed files with 7 additions and 12 deletions

View File

@ -1,13 +1,14 @@
from pkg_resources import get_distribution from pkg_resources import get_distribution
__version__ = get_distribution('qpms').version __version__ = get_distribution('qpms').version
from .qpms_c import * from .qpms_c import PointGroup, FinitePointGroup, FinitePointGroupElement, Particle, scatsystem_set_nthreads, ScatteringSystem, ScatteringMatrix
from .qpms_p import * from .qpms_p import *
from .cyquaternions import CQuat, IRot3 from .cyquaternions import CQuat, IRot3
from .cybspec import VSWFNorm, BaseSpec from .cybspec import VSWFNorm, BaseSpec
from .cytmatrices import CTMatrix, TMatrixInterpolator from .cytmatrices import CTMatrix, TMatrixInterpolator
from .cytranslations import trans_calculator from .cytranslations import trans_calculator
from .cymaterials import MaterialInterpolator from .cymaterials import MaterialInterpolator
from .cycommon import dbgmsg_enable, dbgmsg_disable, dbgmsg_active, BesselType
from .lattices2d import * from .lattices2d import *
from .hexpoints import * from .hexpoints import *
from .tmatrices import * from .tmatrices import *

View File

@ -8,20 +8,14 @@ to make them available in Python.
# ----------------------------- # -----------------------------
import numpy as np import numpy as np
import cmath
from qpms_cdefs cimport * from qpms_cdefs cimport *
from cyquaternions cimport * from cyquaternions cimport IRot3, CQuat
#from cyquaternions import * from cybspec cimport BaseSpec
from cybspec cimport *
#from cybspec import *
from cycommon import *
from cycommon cimport make_c_string from cycommon cimport make_c_string
from cycommon import string_c2py, PointGroupClass
#import cycommon # Just to link make_c_string
from cytmatrices cimport CTMatrix from cytmatrices cimport CTMatrix
cimport cython from libc.stdlib cimport malloc, free, calloc
import enum
import warnings
import os
from libc.stdlib cimport malloc, free, calloc, abort
cdef class PointGroup: cdef class PointGroup:
cdef readonly qpms_pointgroup_t G cdef readonly qpms_pointgroup_t G