bandu 1.3.3__py3-none-any.whl → 1.3.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bandu/xsf_reader.py +5 -5
- {bandu-1.3.3.dist-info → bandu-1.3.5.dist-info}/METADATA +1 -1
- {bandu-1.3.3.dist-info → bandu-1.3.5.dist-info}/RECORD +6 -6
- {bandu-1.3.3.dist-info → bandu-1.3.5.dist-info}/WHEEL +0 -0
- {bandu-1.3.3.dist-info → bandu-1.3.5.dist-info}/licenses/LICENSE +0 -0
- {bandu-1.3.3.dist-info → bandu-1.3.5.dist-info}/top_level.txt +0 -0
bandu/xsf_reader.py
CHANGED
|
@@ -35,9 +35,9 @@ class XSF():
|
|
|
35
35
|
for i, line in enumerate(self.xsf_lines):
|
|
36
36
|
# get lattice vectors from XSF file
|
|
37
37
|
if line.strip() == 'PRIMVEC':
|
|
38
|
-
self.lattice[0,:] = [float(val) for val in self.xsf_lines[i+1].strip().split(' ')]
|
|
39
|
-
self.lattice[1,:] = [float(val) for val in self.xsf_lines[i+2].strip().split(' ')]
|
|
40
|
-
self.lattice[2,:] = [float(val) for val in self.xsf_lines[i+3].strip().split(' ')]
|
|
38
|
+
self.lattice[0,:] = [float(val) for val in self.xsf_lines[i+1].strip().split(' ') if val != '']
|
|
39
|
+
self.lattice[1,:] = [float(val) for val in self.xsf_lines[i+2].strip().split(' ') if val != '']
|
|
40
|
+
self.lattice[2,:] = [float(val) for val in self.xsf_lines[i+3].strip().split(' ') if val != '']
|
|
41
41
|
# get number of atoms and atomic symbols
|
|
42
42
|
# get atomic coordinates from XSF file
|
|
43
43
|
if line.strip() == 'PRIMCOORD':
|
|
@@ -46,7 +46,7 @@ class XSF():
|
|
|
46
46
|
self.elements = []
|
|
47
47
|
for atom in range(self.natoms):
|
|
48
48
|
coord = self.xsf_lines[i+atom+2].strip().split(' ')
|
|
49
|
-
coord = [float(val) for val in coord]
|
|
49
|
+
coord = [float(val) for val in coord if val != '']
|
|
50
50
|
element = atom_labels[int(coord[0])]
|
|
51
51
|
self.elements.append(element)
|
|
52
52
|
del coord[0]
|
|
@@ -54,7 +54,7 @@ class XSF():
|
|
|
54
54
|
# once density block is reached, get ngfft spacing and end init
|
|
55
55
|
if line.strip() == datagrid:
|
|
56
56
|
ngfft_spacing = self.xsf_lines[i+1].strip().split(' ')
|
|
57
|
-
ngfft_spacing = [int(val) for val in ngfft_spacing]
|
|
57
|
+
ngfft_spacing = [int(val) for val in ngfft_spacing if val != '']
|
|
58
58
|
self.ngfftx = ngfft_spacing[0]
|
|
59
59
|
self.ngffty = ngfft_spacing[1]
|
|
60
60
|
self.ngfftz = ngfft_spacing[2]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bandu
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.5
|
|
4
4
|
Summary: The BandU program constructs a rank ordered series of crystal orbitals using principal component analysis. These principal orbital components can then be projected on the Fermi surface and visualized
|
|
5
5
|
Author-email: Patrick Cross <pcross@wisc.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/pcross0405/BandU
|
|
@@ -6,9 +6,9 @@ bandu/isosurface_class.py,sha256=M6XAuy89uyX3v_JX3wYd5VqAWel9JiMQ7wRBhFhhn3A,102
|
|
|
6
6
|
bandu/plotter.py,sha256=jvxsvabzTxgWUZxX2XtO1VFoMdiu0C_qXdODJqpBfrA,27718
|
|
7
7
|
bandu/translate.py,sha256=YGTkwne4bdrw649OjRKBio7IBsCNVoa__rjkFZK6uRI,2217
|
|
8
8
|
bandu/wfk_class.py,sha256=j7bvEAb9eUU77mHGNLGdPpmpgVBb6bsKQqej9n0cANc,26203
|
|
9
|
-
bandu/xsf_reader.py,sha256=
|
|
10
|
-
bandu-1.3.
|
|
11
|
-
bandu-1.3.
|
|
12
|
-
bandu-1.3.
|
|
13
|
-
bandu-1.3.
|
|
14
|
-
bandu-1.3.
|
|
9
|
+
bandu/xsf_reader.py,sha256=zLHBVUHcO4kPkZEXOpB1F4VzNtcvt7vbH4Ew2zemEj0,5095
|
|
10
|
+
bandu-1.3.5.dist-info/licenses/LICENSE,sha256=jk_B-WYDiyH9RtxC45pO6JUtBxmfX5i240dVzv1okCg,1088
|
|
11
|
+
bandu-1.3.5.dist-info/METADATA,sha256=RRyEI065rk5Fm1D4q9Op4r86UOGwc62CQo2UqlsZfo0,8945
|
|
12
|
+
bandu-1.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
bandu-1.3.5.dist-info/top_level.txt,sha256=AxbMFU3BRdjCr75K9gAdblwlBMQ3qr9-AaCC-IS8OWs,6
|
|
14
|
+
bandu-1.3.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|