mirror of
https://github.com/triqs/dft_tools
synced 2024-12-21 20:03:41 +01:00
Replaced R- and C-TRANSFORM with TRANSFORM option
Also, some tests were modified accordingly.
This commit is contained in:
parent
f0fae2b10a
commit
3620784798
@ -58,8 +58,7 @@ class ConfigParameters:
|
|||||||
'lshell': ('lshell', int)}
|
'lshell': ('lshell', int)}
|
||||||
|
|
||||||
self.sh_optional = {
|
self.sh_optional = {
|
||||||
'rtransform': ('tmatrix', lambda s: self.parse_string_tmatrix(s, real=True)),
|
'transform': ('tmatrix', lambda s: self.parse_string_tmatrix(s, real=True)),
|
||||||
'ctransform': ('tmatrix', lambda s: self.parse_string_tmatrix(s, real=False)),
|
|
||||||
'transfile': ('tmatrices', self.parse_file_tmatrix)}
|
'transfile': ('tmatrices', self.parse_file_tmatrix)}
|
||||||
|
|
||||||
self.gr_required = {
|
self.gr_required = {
|
||||||
|
@ -11,7 +11,7 @@ IONS = 5..8
|
|||||||
LSHELL = 1
|
LSHELL = 1
|
||||||
IONS = 1..4
|
IONS = 1..4
|
||||||
|
|
||||||
RTRANSFORM = 0.0 1.0 0.0
|
TRANSFORM = 0.0 1.0 0.0
|
||||||
1.0 0.0 0.0
|
1.0 0.0 0.0
|
||||||
0.0 0.0 1.0
|
0.0 0.0 1.0
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
PYTHONPATH=../..:../../../../c:$PYTHONPATH python $1
|
PYTHONPATH=../..:../../../../../c:$PYTHONPATH python $1
|
||||||
|
@ -77,7 +77,9 @@ class TestParseInput(arraytest.ArrayTestCase):
|
|||||||
res += conf_pars.groups.__repr__()
|
res += conf_pars.groups.__repr__()
|
||||||
|
|
||||||
expected = r"""Shells:
|
expected = r"""Shells:
|
||||||
[{'ion_list': array([4, 5, 6, 7]), 'user_index': 1, 'lshell': 2}, {'ion_list': array([0, 1, 2, 3]), 'user_index': 2, 'lshell': 1}, {'ion_list': array([0, 1, 2, 3]), 'user_index': 3, 'lshell': 3}]
|
[{'ion_list': array([4, 5, 6, 7]), 'user_index': 1, 'lshell': 2}, {'tmatrix': array([[ 0., 1., 0.],
|
||||||
|
[ 1., 0., 0.],
|
||||||
|
[ 0., 0., 1.]]), 'ion_list': array([0, 1, 2, 3]), 'user_index': 2, 'lshell': 1}, {'ion_list': array([0, 1, 2, 3]), 'user_index': 3, 'lshell': 3}]
|
||||||
|
|
||||||
Groups:
|
Groups:
|
||||||
[{'normalize': True, 'index': 1, 'ewindow': (-7.6, 3.0), 'normion': True, 'shells': [0, 1]}, {'normalize': True, 'index': 2, 'ewindow': (-1.6, 2.0), 'normion': True, 'shells': [2]}]"""
|
[{'normalize': True, 'index': 1, 'ewindow': (-7.6, 3.0), 'normion': True, 'shells': [0, 1]}, {'normalize': True, 'index': 2, 'ewindow': (-1.6, 2.0), 'normion': True, 'shells': [2]}]"""
|
||||||
|
Loading…
Reference in New Issue
Block a user