3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-22 20:34:38 +01:00

Relative imports should only be used within modules

This commit is contained in:
Nils Wentzell 2020-04-08 16:07:20 -04:00
parent b2a5e93c1f
commit b2a447d07d
16 changed files with 34 additions and 34 deletions

View File

@ -2,10 +2,10 @@ r"""
Tests of 'parse_general()' defined in ConfigParameters class
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import arraytest
import arraytest
import numpy as np
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters

View File

@ -2,10 +2,10 @@ r"""
Tests of 'parse_groups()' defined in ConfigParameters class
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import arraytest
import arraytest
import numpy as np
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters

View File

@ -2,10 +2,10 @@ r"""
Tests of 'parse_input()' defined in ConfigParameters class
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import arraytest
import arraytest
import numpy as np
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters

View File

@ -2,10 +2,10 @@ r"""
Tests of 'parse_parameter_set()' defined in ConfigParameters class
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import arraytest
import arraytest
import numpy as np
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters

View File

@ -2,10 +2,10 @@ r"""
Tests of 'parse_shells()' defined in ConfigParameters class
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import arraytest
import arraytest
import numpy as np
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters

View File

@ -2,10 +2,10 @@ r"""
Tests of special parseres defined in ConfigParameters class
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import arraytest
import arraytest
import numpy as np
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters

View File

@ -1,13 +1,13 @@
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
import numpy as np
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
from . import mytest
import mytest
################################################################################
#

View File

@ -1,6 +1,6 @@
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
import numpy as np
@ -10,7 +10,7 @@ from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
from pytriqs.archive import HDFArchive
from . import mytest
import mytest
################################################################################
#
@ -98,4 +98,4 @@ class TestProjectorGroup(mytest.MyTestCase):
with HDFArchive(testout, 'w') as h5test:
h5test['hk'] = self.proj_gr.hk
expected_file = _rpath + 'hk.out.h5'
self.assertH5FileEqual(testout, expected_file)
self.assertH5FileEqual(testout, expected_file)

View File

@ -1,6 +1,6 @@
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
import numpy as np
@ -10,7 +10,7 @@ from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
from pytriqs.archive import HDFArchive
from . import mytest
import mytest
################################################################################
#
@ -91,4 +91,4 @@ class TestProjectorGroupCompl(mytest.MyTestCase):
assert np.all(np.abs(np.eye(overlap_N.shape[0]) - overlap_N) < 1e-13)
assert np.all(np.abs(np.eye(overlap_L.shape[0]) - overlap_L) < 1e-13)

View File

@ -1,6 +1,6 @@
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
import numpy as np
@ -9,7 +9,7 @@ from triqs_dft_tools.converters.plovasp.elstruct import ElectronicStructure
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
from . import mytest
import mytest
################################################################################
#

View File

@ -1,6 +1,6 @@
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
import numpy as np
@ -10,7 +10,7 @@ from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
from pytriqs.archive import HDFArchive
from . import mytest
import mytest
################################################################################
#

View File

@ -1,6 +1,6 @@
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
import numpy as np
@ -9,7 +9,7 @@ from triqs_dft_tools.converters.plovasp.elstruct import ElectronicStructure
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
from . import mytest
import mytest
################################################################################
#

View File

@ -2,10 +2,10 @@ r"""
Tests for class 'Doscar' from module 'vaspio'
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import mytest
import mytest
import numpy as np
from triqs_dft_tools.converters.plovasp.vaspio import Doscar

View File

@ -2,10 +2,10 @@ r"""
Tests for class 'Eigneval' from module 'vaspio'
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import mytest
import mytest
import numpy as np
from triqs_dft_tools.converters.plovasp.vaspio import Eigenval

View File

@ -2,10 +2,10 @@ r"""
Tests for class 'Ibzkpt' from module 'vaspio'
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import mytest
import mytest
import numpy as np
from triqs_dft_tools.converters.plovasp.vaspio import Kpoints

View File

@ -2,10 +2,10 @@ r"""
Tests for class 'Poscar' from module 'vaspio'
"""
import os
from . import rpath
import rpath
_rpath = os.path.dirname(rpath.__file__) + '/'
from . import mytest
import mytest
import numpy as np
from triqs_dft_tools.converters.plovasp.vaspio import Poscar