mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 12:23:41 +01:00
Fix for issue #32
This commit is contained in:
parent
a24c7869b1
commit
1fbdf8bf38
@ -424,9 +424,10 @@ class Wien2kConverter(ConverterTools):
|
|||||||
R.readline()
|
R.readline()
|
||||||
lattice_type = R.readline().split()[0]
|
lattice_type = R.readline().split()[0]
|
||||||
R.readline()
|
R.readline()
|
||||||
temp = R.readline().strip().split()
|
temp = R.readline()
|
||||||
lattice_constants = numpy.array([float(t) for t in temp[0:3]])
|
print temp
|
||||||
lattice_angles = numpy.array([float(t) for t in temp[3:6]]) * numpy.pi / 180.0
|
lattice_constants = numpy.array([float(temp[0+10*i:10+10*i].strip()) for i in range(3)])
|
||||||
|
lattice_angles = numpy.array([float(temp[30+10*i:40+10*i].strip()) for i in range(3)]) * numpy.pi / 180.0
|
||||||
things_to_save.extend(['lattice_type', 'lattice_constants', 'lattice_angles'])
|
things_to_save.extend(['lattice_type', 'lattice_constants', 'lattice_angles'])
|
||||||
except IOError:
|
except IOError:
|
||||||
raise "convert_misc_input: reading file %s failed" %self.struct_file
|
raise "convert_misc_input: reading file %s failed" %self.struct_file
|
||||||
|
Loading…
Reference in New Issue
Block a user