Skip to content

Commit

Permalink
add symm kpath to test
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed Jun 3, 2024
1 parent b523e32 commit 7b9dd66
Show file tree
Hide file tree
Showing 5 changed files with 351 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/triqs_dft_tools/converters/wannier90.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,11 @@ def read_wannier90_blochbasis_data(wannier_seed, n_wannier_spin):
def read_wannier90_centres(wannier_seed):
centres_filename = wannier_seed + '_centres.xyz'
if not os.path.isfile(centres_filename):
mpi.report('Wannier centres file, {}, does not exist. Please set: '
'write_xyz = true, translate_home_cell = false'.format(centres_filename))
mpi.report(f'Wannier centres file, {centres_filename}, does not exist. Please set: '
'write_xyz = true, translate_home_cell = false if you want to use the centres.')
return None
else:
mpi.report(f'Wannier centres read from file: {centres_filename}')

centres = []
with open(centres_filename, 'r') as c_file:
Expand Down
343 changes: 343 additions & 0 deletions test/python/w90_convert/SrVO3_col_band.kpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,343 @@
342
0.000000 0.000000 0.000000 1.0
0.005000 0.000000 0.000000 1.0
0.010000 0.000000 0.000000 1.0
0.015000 0.000000 0.000000 1.0
0.020000 0.000000 0.000000 1.0
0.025000 0.000000 0.000000 1.0
0.030000 0.000000 0.000000 1.0
0.035000 0.000000 0.000000 1.0
0.040000 0.000000 0.000000 1.0
0.045000 0.000000 0.000000 1.0
0.050000 0.000000 0.000000 1.0
0.055000 0.000000 0.000000 1.0
0.060000 0.000000 0.000000 1.0
0.065000 0.000000 0.000000 1.0
0.070000 0.000000 0.000000 1.0
0.075000 0.000000 0.000000 1.0
0.080000 0.000000 0.000000 1.0
0.085000 0.000000 0.000000 1.0
0.090000 0.000000 0.000000 1.0
0.095000 0.000000 0.000000 1.0
0.100000 0.000000 0.000000 1.0
0.105000 0.000000 0.000000 1.0
0.110000 0.000000 0.000000 1.0
0.115000 0.000000 0.000000 1.0
0.120000 0.000000 0.000000 1.0
0.125000 0.000000 0.000000 1.0
0.130000 0.000000 0.000000 1.0
0.135000 0.000000 0.000000 1.0
0.140000 0.000000 0.000000 1.0
0.145000 0.000000 0.000000 1.0
0.150000 0.000000 0.000000 1.0
0.155000 0.000000 0.000000 1.0
0.160000 0.000000 0.000000 1.0
0.165000 0.000000 0.000000 1.0
0.170000 0.000000 0.000000 1.0
0.175000 0.000000 0.000000 1.0
0.180000 0.000000 0.000000 1.0
0.185000 0.000000 0.000000 1.0
0.190000 0.000000 0.000000 1.0
0.195000 0.000000 0.000000 1.0
0.200000 0.000000 0.000000 1.0
0.205000 0.000000 0.000000 1.0
0.210000 0.000000 0.000000 1.0
0.215000 0.000000 0.000000 1.0
0.220000 0.000000 0.000000 1.0
0.225000 0.000000 0.000000 1.0
0.230000 0.000000 0.000000 1.0
0.235000 0.000000 0.000000 1.0
0.240000 0.000000 0.000000 1.0
0.245000 0.000000 0.000000 1.0
0.250000 0.000000 0.000000 1.0
0.255000 0.000000 0.000000 1.0
0.260000 0.000000 0.000000 1.0
0.265000 0.000000 0.000000 1.0
0.270000 0.000000 0.000000 1.0
0.275000 0.000000 0.000000 1.0
0.280000 0.000000 0.000000 1.0
0.285000 0.000000 0.000000 1.0
0.290000 0.000000 0.000000 1.0
0.295000 0.000000 0.000000 1.0
0.300000 0.000000 0.000000 1.0
0.305000 0.000000 0.000000 1.0
0.310000 0.000000 0.000000 1.0
0.315000 0.000000 0.000000 1.0
0.320000 0.000000 0.000000 1.0
0.325000 0.000000 0.000000 1.0
0.330000 0.000000 0.000000 1.0
0.335000 0.000000 0.000000 1.0
0.340000 0.000000 0.000000 1.0
0.345000 0.000000 0.000000 1.0
0.350000 0.000000 0.000000 1.0
0.355000 0.000000 0.000000 1.0
0.360000 0.000000 0.000000 1.0
0.365000 0.000000 0.000000 1.0
0.370000 0.000000 0.000000 1.0
0.375000 0.000000 0.000000 1.0
0.380000 0.000000 0.000000 1.0
0.385000 0.000000 0.000000 1.0
0.390000 0.000000 0.000000 1.0
0.395000 0.000000 0.000000 1.0
0.400000 0.000000 0.000000 1.0
0.405000 0.000000 0.000000 1.0
0.410000 0.000000 0.000000 1.0
0.415000 0.000000 0.000000 1.0
0.420000 0.000000 0.000000 1.0
0.425000 0.000000 0.000000 1.0
0.430000 0.000000 0.000000 1.0
0.435000 0.000000 0.000000 1.0
0.440000 0.000000 0.000000 1.0
0.445000 0.000000 0.000000 1.0
0.450000 0.000000 0.000000 1.0
0.455000 0.000000 0.000000 1.0
0.460000 0.000000 0.000000 1.0
0.465000 0.000000 0.000000 1.0
0.470000 0.000000 0.000000 1.0
0.475000 0.000000 0.000000 1.0
0.480000 0.000000 0.000000 1.0
0.485000 0.000000 0.000000 1.0
0.490000 0.000000 0.000000 1.0
0.495000 0.000000 0.000000 1.0
0.500000 0.000000 0.000000 1.0
0.500000 0.005000 0.000000 1.0
0.500000 0.010000 0.000000 1.0
0.500000 0.015000 0.000000 1.0
0.500000 0.020000 0.000000 1.0
0.500000 0.025000 0.000000 1.0
0.500000 0.030000 0.000000 1.0
0.500000 0.035000 0.000000 1.0
0.500000 0.040000 0.000000 1.0
0.500000 0.045000 0.000000 1.0
0.500000 0.050000 0.000000 1.0
0.500000 0.055000 0.000000 1.0
0.500000 0.060000 0.000000 1.0
0.500000 0.065000 0.000000 1.0
0.500000 0.070000 0.000000 1.0
0.500000 0.075000 0.000000 1.0
0.500000 0.080000 0.000000 1.0
0.500000 0.085000 0.000000 1.0
0.500000 0.090000 0.000000 1.0
0.500000 0.095000 0.000000 1.0
0.500000 0.100000 0.000000 1.0
0.500000 0.105000 0.000000 1.0
0.500000 0.110000 0.000000 1.0
0.500000 0.115000 0.000000 1.0
0.500000 0.120000 0.000000 1.0
0.500000 0.125000 0.000000 1.0
0.500000 0.130000 0.000000 1.0
0.500000 0.135000 0.000000 1.0
0.500000 0.140000 0.000000 1.0
0.500000 0.145000 0.000000 1.0
0.500000 0.150000 0.000000 1.0
0.500000 0.155000 0.000000 1.0
0.500000 0.160000 0.000000 1.0
0.500000 0.165000 0.000000 1.0
0.500000 0.170000 0.000000 1.0
0.500000 0.175000 0.000000 1.0
0.500000 0.180000 0.000000 1.0
0.500000 0.185000 0.000000 1.0
0.500000 0.190000 0.000000 1.0
0.500000 0.195000 0.000000 1.0
0.500000 0.200000 0.000000 1.0
0.500000 0.205000 0.000000 1.0
0.500000 0.210000 0.000000 1.0
0.500000 0.215000 0.000000 1.0
0.500000 0.220000 0.000000 1.0
0.500000 0.225000 0.000000 1.0
0.500000 0.230000 0.000000 1.0
0.500000 0.235000 0.000000 1.0
0.500000 0.240000 0.000000 1.0
0.500000 0.245000 0.000000 1.0
0.500000 0.250000 0.000000 1.0
0.500000 0.255000 0.000000 1.0
0.500000 0.260000 0.000000 1.0
0.500000 0.265000 0.000000 1.0
0.500000 0.270000 0.000000 1.0
0.500000 0.275000 0.000000 1.0
0.500000 0.280000 0.000000 1.0
0.500000 0.285000 0.000000 1.0
0.500000 0.290000 0.000000 1.0
0.500000 0.295000 0.000000 1.0
0.500000 0.300000 0.000000 1.0
0.500000 0.305000 0.000000 1.0
0.500000 0.310000 0.000000 1.0
0.500000 0.315000 0.000000 1.0
0.500000 0.320000 0.000000 1.0
0.500000 0.325000 0.000000 1.0
0.500000 0.330000 0.000000 1.0
0.500000 0.335000 0.000000 1.0
0.500000 0.340000 0.000000 1.0
0.500000 0.345000 0.000000 1.0
0.500000 0.350000 0.000000 1.0
0.500000 0.355000 0.000000 1.0
0.500000 0.360000 0.000000 1.0
0.500000 0.365000 0.000000 1.0
0.500000 0.370000 0.000000 1.0
0.500000 0.375000 0.000000 1.0
0.500000 0.380000 0.000000 1.0
0.500000 0.385000 0.000000 1.0
0.500000 0.390000 0.000000 1.0
0.500000 0.395000 0.000000 1.0
0.500000 0.400000 0.000000 1.0
0.500000 0.405000 0.000000 1.0
0.500000 0.410000 0.000000 1.0
0.500000 0.415000 0.000000 1.0
0.500000 0.420000 0.000000 1.0
0.500000 0.425000 0.000000 1.0
0.500000 0.430000 0.000000 1.0
0.500000 0.435000 0.000000 1.0
0.500000 0.440000 0.000000 1.0
0.500000 0.445000 0.000000 1.0
0.500000 0.450000 0.000000 1.0
0.500000 0.455000 0.000000 1.0
0.500000 0.460000 0.000000 1.0
0.500000 0.465000 0.000000 1.0
0.500000 0.470000 0.000000 1.0
0.500000 0.475000 0.000000 1.0
0.500000 0.480000 0.000000 1.0
0.500000 0.485000 0.000000 1.0
0.500000 0.490000 0.000000 1.0
0.500000 0.495000 0.000000 1.0
0.500000 0.500000 0.000000 1.0
0.496454 0.496454 0.000000 1.0
0.492908 0.492908 0.000000 1.0
0.489362 0.489362 0.000000 1.0
0.485816 0.485816 0.000000 1.0
0.482270 0.482270 0.000000 1.0
0.478723 0.478723 0.000000 1.0
0.475177 0.475177 0.000000 1.0
0.471631 0.471631 0.000000 1.0
0.468085 0.468085 0.000000 1.0
0.464539 0.464539 0.000000 1.0
0.460993 0.460993 0.000000 1.0
0.457447 0.457447 0.000000 1.0
0.453901 0.453901 0.000000 1.0
0.450355 0.450355 0.000000 1.0
0.446809 0.446809 0.000000 1.0
0.443262 0.443262 0.000000 1.0
0.439716 0.439716 0.000000 1.0
0.436170 0.436170 0.000000 1.0
0.432624 0.432624 0.000000 1.0
0.429078 0.429078 0.000000 1.0
0.425532 0.425532 0.000000 1.0
0.421986 0.421986 0.000000 1.0
0.418440 0.418440 0.000000 1.0
0.414894 0.414894 0.000000 1.0
0.411348 0.411348 0.000000 1.0
0.407801 0.407801 0.000000 1.0
0.404255 0.404255 0.000000 1.0
0.400709 0.400709 0.000000 1.0
0.397163 0.397163 0.000000 1.0
0.393617 0.393617 0.000000 1.0
0.390071 0.390071 0.000000 1.0
0.386525 0.386525 0.000000 1.0
0.382979 0.382979 0.000000 1.0
0.379433 0.379433 0.000000 1.0
0.375887 0.375887 0.000000 1.0
0.372340 0.372340 0.000000 1.0
0.368794 0.368794 0.000000 1.0
0.365248 0.365248 0.000000 1.0
0.361702 0.361702 0.000000 1.0
0.358156 0.358156 0.000000 1.0
0.354610 0.354610 0.000000 1.0
0.351064 0.351064 0.000000 1.0
0.347518 0.347518 0.000000 1.0
0.343972 0.343972 0.000000 1.0
0.340426 0.340426 0.000000 1.0
0.336879 0.336879 0.000000 1.0
0.333333 0.333333 0.000000 1.0
0.329787 0.329787 0.000000 1.0
0.326241 0.326241 0.000000 1.0
0.322695 0.322695 0.000000 1.0
0.319149 0.319149 0.000000 1.0
0.315603 0.315603 0.000000 1.0
0.312057 0.312057 0.000000 1.0
0.308511 0.308511 0.000000 1.0
0.304965 0.304965 0.000000 1.0
0.301418 0.301418 0.000000 1.0
0.297872 0.297872 0.000000 1.0
0.294326 0.294326 0.000000 1.0
0.290780 0.290780 0.000000 1.0
0.287234 0.287234 0.000000 1.0
0.283688 0.283688 0.000000 1.0
0.280142 0.280142 0.000000 1.0
0.276596 0.276596 0.000000 1.0
0.273050 0.273050 0.000000 1.0
0.269504 0.269504 0.000000 1.0
0.265957 0.265957 0.000000 1.0
0.262411 0.262411 0.000000 1.0
0.258865 0.258865 0.000000 1.0
0.255319 0.255319 0.000000 1.0
0.251773 0.251773 0.000000 1.0
0.248227 0.248227 0.000000 1.0
0.244681 0.244681 0.000000 1.0
0.241135 0.241135 0.000000 1.0
0.237589 0.237589 0.000000 1.0
0.234043 0.234043 0.000000 1.0
0.230496 0.230496 0.000000 1.0
0.226950 0.226950 0.000000 1.0
0.223404 0.223404 0.000000 1.0
0.219858 0.219858 0.000000 1.0
0.216312 0.216312 0.000000 1.0
0.212766 0.212766 0.000000 1.0
0.209220 0.209220 0.000000 1.0
0.205674 0.205674 0.000000 1.0
0.202128 0.202128 0.000000 1.0
0.198582 0.198582 0.000000 1.0
0.195035 0.195035 0.000000 1.0
0.191489 0.191489 0.000000 1.0
0.187943 0.187943 0.000000 1.0
0.184397 0.184397 0.000000 1.0
0.180851 0.180851 0.000000 1.0
0.177305 0.177305 0.000000 1.0
0.173759 0.173759 0.000000 1.0
0.170213 0.170213 0.000000 1.0
0.166667 0.166667 0.000000 1.0
0.163121 0.163121 0.000000 1.0
0.159574 0.159574 0.000000 1.0
0.156028 0.156028 0.000000 1.0
0.152482 0.152482 0.000000 1.0
0.148936 0.148936 0.000000 1.0
0.145390 0.145390 0.000000 1.0
0.141844 0.141844 0.000000 1.0
0.138298 0.138298 0.000000 1.0
0.134752 0.134752 0.000000 1.0
0.131206 0.131206 0.000000 1.0
0.127660 0.127660 0.000000 1.0
0.124113 0.124113 0.000000 1.0
0.120567 0.120567 0.000000 1.0
0.117021 0.117021 0.000000 1.0
0.113475 0.113475 0.000000 1.0
0.109929 0.109929 0.000000 1.0
0.106383 0.106383 0.000000 1.0
0.102837 0.102837 0.000000 1.0
0.099291 0.099291 0.000000 1.0
0.095745 0.095745 0.000000 1.0
0.092199 0.092199 0.000000 1.0
0.088652 0.088652 0.000000 1.0
0.085106 0.085106 0.000000 1.0
0.081560 0.081560 0.000000 1.0
0.078014 0.078014 0.000000 1.0
0.074468 0.074468 0.000000 1.0
0.070922 0.070922 0.000000 1.0
0.067376 0.067376 0.000000 1.0
0.063830 0.063830 0.000000 1.0
0.060284 0.060284 0.000000 1.0
0.056738 0.056738 0.000000 1.0
0.053191 0.053191 0.000000 1.0
0.049645 0.049645 0.000000 1.0
0.046099 0.046099 0.000000 1.0
0.042553 0.042553 0.000000 1.0
0.039007 0.039007 0.000000 1.0
0.035461 0.035461 0.000000 1.0
0.031915 0.031915 0.000000 1.0
0.028369 0.028369 0.000000 1.0
0.024823 0.024823 0.000000 1.0
0.021277 0.021277 0.000000 1.0
0.017730 0.017730 0.000000 1.0
0.014184 0.014184 0.000000 1.0
0.010638 0.010638 0.000000 1.0
0.007092 0.007092 0.000000 1.0
0.003546 0.003546 0.000000 1.0
0.000000 0.000000 0.000000 1.0
4 changes: 4 additions & 0 deletions test/python/w90_convert/SrVO3_col_band.labelinfo.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
G 1 0.0000000000 0.0000000000 0.0000000000 0.0000000000
X 101 0.8140161212 0.5000000000 0.0000000000 0.0000000000
M 201 1.6280322423 0.5000000000 0.5000000000 0.0000000000
G 342 2.7792248809 0.0000000000 0.0000000000 0.0000000000
Binary file modified test/python/w90_convert/SrVO3_col_blochbasis.ref.h5
Binary file not shown.
Binary file modified test/python/w90_convert/SrVO3_col_wannierbasis.ref.h5
Binary file not shown.

0 comments on commit 7b9dd66

Please sign in to comment.