mirror of
https://github.com/triqs/dft_tools
synced 2024-12-21 11:53:41 +01:00
Fixed tests to make them runnable with build pytriqs
All imports inside the test cases refer now to paths relative to TRIQS python library path. For example, `import vaspio` is replaced with `import applications.dft.converters.plovasp.vasio` In this way all tests can be executed wtih `build_pytriqs` provided that the package is installed (the same practice as with other 'dft_tools' tests). Also, the underscore can now be removed from subdirectory names because there is no more conflict with module names.
This commit is contained in:
parent
b47cc2f4d3
commit
f86038a7fd
@ -7,7 +7,7 @@ _rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import arraytest
|
||||
import numpy as np
|
||||
from inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
|
||||
################################################################################
|
||||
#
|
@ -7,7 +7,7 @@ _rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import arraytest
|
||||
import numpy as np
|
||||
from inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
|
||||
################################################################################
|
||||
#
|
@ -7,7 +7,7 @@ _rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import arraytest
|
||||
import numpy as np
|
||||
from inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
|
||||
################################################################################
|
||||
#
|
@ -7,7 +7,7 @@ _rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import arraytest
|
||||
import numpy as np
|
||||
from inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
|
||||
################################################################################
|
||||
#
|
@ -7,7 +7,7 @@ _rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import arraytest
|
||||
import numpy as np
|
||||
from inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
|
||||
################################################################################
|
||||
#
|
@ -7,7 +7,7 @@ _rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import arraytest
|
||||
import numpy as np
|
||||
from inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
|
||||
################################################################################
|
||||
#
|
@ -1,8 +1,8 @@
|
||||
|
||||
import vaspio
|
||||
from inpconf import ConfigParameters
|
||||
from plotools import check_data_consistency
|
||||
from elstruct import ElectronicStructure
|
||||
import applications.dft.converters.plovasp.vaspio
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.plotools import check_data_consistency
|
||||
from applications.dft.converters.plovasp.elstruct import ElectronicStructure
|
||||
import mytest
|
||||
|
||||
################################################################################
|
@ -4,11 +4,11 @@ import rpath
|
||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import numpy as np
|
||||
import vaspio
|
||||
import elstruct
|
||||
from inpconf import ConfigParameters
|
||||
from proj_shell import ProjectorShell
|
||||
from proj_group import ProjectorGroup
|
||||
import applications.dft.converters.plovasp.vaspio
|
||||
import applications.dft.converters.plovasp.elstruct
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.proj_shell import ProjectorShell
|
||||
from applications.dft.converters.plovasp.proj_group import ProjectorGroup
|
||||
import mytest
|
||||
|
||||
################################################################################
|
@ -4,11 +4,11 @@ import rpath
|
||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import numpy as np
|
||||
import vaspio
|
||||
import elstruct
|
||||
from inpconf import ConfigParameters
|
||||
from proj_shell import ProjectorShell
|
||||
from proj_group import ProjectorGroup
|
||||
import applications.dft.converters.plovasp.vaspio
|
||||
import applications.dft.converters.plovasp.elstruct
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.proj_shell import ProjectorShell
|
||||
from applications.dft.converters.plovasp.proj_group import ProjectorGroup
|
||||
import mytest
|
||||
|
||||
################################################################################
|
@ -4,11 +4,11 @@ import rpath
|
||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import numpy as np
|
||||
import vaspio
|
||||
import elstruct
|
||||
from inpconf import ConfigParameters
|
||||
from proj_shell import ProjectorShell
|
||||
from proj_group import ProjectorGroup
|
||||
import applications.dft.converters.plovasp.vaspio
|
||||
import applications.dft.converters.plovasp.elstruct
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.proj_shell import ProjectorShell
|
||||
from applications.dft.converters.plovasp.proj_group import ProjectorGroup
|
||||
import mytest
|
||||
|
||||
################################################################################
|
@ -4,11 +4,11 @@ import rpath
|
||||
_rpath = os.path.dirname(rpath.__file__) + '/'
|
||||
|
||||
import numpy as np
|
||||
import vaspio
|
||||
import elstruct
|
||||
from inpconf import ConfigParameters
|
||||
from proj_shell import ProjectorShell
|
||||
from proj_group import ProjectorGroup
|
||||
import applications.dft.converters.plovasp.vaspio
|
||||
import applications.dft.converters.plovasp.elstruct
|
||||
from applications.dft.converters.plovasp.inpconf import ConfigParameters
|
||||
from applications.dft.converters.plovasp.proj_shell import ProjectorShell
|
||||
from applications.dft.converters.plovasp.proj_group import ProjectorGroup
|
||||
import mytest
|
||||
|
||||
################################################################################
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user