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:
parent
b2a5e93c1f
commit
b2a447d07d
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests of 'parse_general()' defined in ConfigParameters class
|
Tests of 'parse_general()' defined in ConfigParameters class
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import arraytest
|
import arraytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests of 'parse_groups()' defined in ConfigParameters class
|
Tests of 'parse_groups()' defined in ConfigParameters class
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import arraytest
|
import arraytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests of 'parse_input()' defined in ConfigParameters class
|
Tests of 'parse_input()' defined in ConfigParameters class
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import arraytest
|
import arraytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests of 'parse_parameter_set()' defined in ConfigParameters class
|
Tests of 'parse_parameter_set()' defined in ConfigParameters class
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import arraytest
|
import arraytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests of 'parse_shells()' defined in ConfigParameters class
|
Tests of 'parse_shells()' defined in ConfigParameters class
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import arraytest
|
import arraytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests of special parseres defined in ConfigParameters class
|
Tests of special parseres defined in ConfigParameters class
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import arraytest
|
import arraytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
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_shell import ProjectorShell
|
||||||
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
||||||
from . import mytest
|
import mytest
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
import numpy as np
|
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_shell import ProjectorShell
|
||||||
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
||||||
from pytriqs.archive import HDFArchive
|
from pytriqs.archive import HDFArchive
|
||||||
from . import mytest
|
import mytest
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
@ -98,4 +98,4 @@ class TestProjectorGroup(mytest.MyTestCase):
|
|||||||
with HDFArchive(testout, 'w') as h5test:
|
with HDFArchive(testout, 'w') as h5test:
|
||||||
h5test['hk'] = self.proj_gr.hk
|
h5test['hk'] = self.proj_gr.hk
|
||||||
expected_file = _rpath + 'hk.out.h5'
|
expected_file = _rpath + 'hk.out.h5'
|
||||||
self.assertH5FileEqual(testout, expected_file)
|
self.assertH5FileEqual(testout, expected_file)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
import numpy as np
|
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_shell import ProjectorShell
|
||||||
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
||||||
from pytriqs.archive import HDFArchive
|
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_N.shape[0]) - overlap_N) < 1e-13)
|
||||||
assert np.all(np.abs(np.eye(overlap_L.shape[0]) - overlap_L) < 1e-13)
|
assert np.all(np.abs(np.eye(overlap_L.shape[0]) - overlap_L) < 1e-13)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
import numpy as np
|
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.inpconf import ConfigParameters
|
||||||
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
|
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
|
||||||
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
||||||
from . import mytest
|
import mytest
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
import numpy as np
|
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_shell import ProjectorShell
|
||||||
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
||||||
from pytriqs.archive import HDFArchive
|
from pytriqs.archive import HDFArchive
|
||||||
from . import mytest
|
import mytest
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
import numpy as np
|
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.inpconf import ConfigParameters
|
||||||
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
|
from triqs_dft_tools.converters.plovasp.proj_shell import ProjectorShell
|
||||||
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
from triqs_dft_tools.converters.plovasp.proj_group import ProjectorGroup
|
||||||
from . import mytest
|
import mytest
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
|
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests for class 'Doscar' from module 'vaspio'
|
Tests for class 'Doscar' from module 'vaspio'
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import mytest
|
import mytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.vaspio import Doscar
|
from triqs_dft_tools.converters.plovasp.vaspio import Doscar
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests for class 'Eigneval' from module 'vaspio'
|
Tests for class 'Eigneval' from module 'vaspio'
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import mytest
|
import mytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.vaspio import Eigenval
|
from triqs_dft_tools.converters.plovasp.vaspio import Eigenval
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests for class 'Ibzkpt' from module 'vaspio'
|
Tests for class 'Ibzkpt' from module 'vaspio'
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import mytest
|
import mytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.vaspio import Kpoints
|
from triqs_dft_tools.converters.plovasp.vaspio import Kpoints
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@ r"""
|
|||||||
Tests for class 'Poscar' from module 'vaspio'
|
Tests for class 'Poscar' from module 'vaspio'
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from . import rpath
|
import rpath
|
||||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||||
|
|
||||||
from . import mytest
|
import mytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from triqs_dft_tools.converters.plovasp.vaspio import Poscar
|
from triqs_dft_tools.converters.plovasp.vaspio import Poscar
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user