mirror of
https://github.com/triqs/dft_tools
synced 2025-01-09 04:43:11 +01:00
11d394fd5b
* moved the plovasp C++ code to c++/triqs_dft_tools/converters/vasp * added global header triqs_dft_tools/triqs_dft_tools.hpp * python dir based on single cmakelist file * registered C++ tests for plovasp * corrected imports for py3 tests for plovasp * corrected block order in sigma_from_file and srvo3_Gloc * exchanged ref files for sigma_from_file, srvo3_Gloc, SrVO3.ref.h5 * moved vasp converter bash scripts from dir shells to bin dir
40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
|
|
import triqs_dft_tools.converters.plovasp.vaspio
|
|
from triqs_dft_tools.converters.plovasp.inpconf import ConfigParameters
|
|
from triqs_dft_tools.converters.plovasp.plotools import check_data_consistency
|
|
from triqs_dft_tools.converters.plovasp.elstruct import ElectronicStructure
|
|
from . import mytest
|
|
|
|
################################################################################
|
|
#
|
|
# TestDataConsistency
|
|
#
|
|
################################################################################
|
|
class TestDataConsistency(mytest.MyTestCase):
|
|
"""
|
|
Function:
|
|
|
|
def check_data_consistency(pars, el_struct)
|
|
|
|
Scenarios:
|
|
|
|
- **if** a shell contains ions of different types **raise** AssertionError
|
|
"""
|
|
# Scenario 1
|
|
def test_shell_ion_types(self):
|
|
pass
|
|
# conf_file = 'wrong_shell.cfg'
|
|
# pars = ConfigParameters(conf_file)
|
|
# pars.parse_input()
|
|
# vasp_data = vaspio.VaspData('./', read_all=False)
|
|
# vasp_data.poscar.from_file('./', poscar_filename='POSCAR.complex')
|
|
# el_strct = ElectronicStructure(vasp_data)
|
|
#
|
|
# print pars.shells
|
|
# print vasp_data.poscar.type_of_ion
|
|
#
|
|
# err_mess = "Each projected shell must"
|
|
# with self.assertRaisesRegexp(Exception, err_mess):
|
|
# check_data_consistency(pars, el_struct)
|
|
|