bandu 1.3.5__tar.gz → 1.3.6__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bandu
3
- Version: 1.3.5
3
+ Version: 1.3.6
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "bandu"
7
- version = "1.3.5"
7
+ version = "1.3.6"
8
8
  authors = [
9
9
  { name="Patrick Cross", email="pcross@wisc.edu" },
10
10
  ]
@@ -29,6 +29,7 @@ class XSF():
29
29
  '''
30
30
  # if xsf file is supplied, read in parameters
31
31
  self.xsf_file = xsf_file
32
+ self.datagrid = datagrid
32
33
  with open(xsf_file, 'r') as xsf:
33
34
  self.xsf_lines = xsf.readlines()
34
35
  self.lattice = np.zeros((3,3))
@@ -52,7 +53,7 @@ class XSF():
52
53
  del coord[0]
53
54
  self.coords[atom,:] = coord
54
55
  # once density block is reached, get ngfft spacing and end init
55
- if line.strip() == datagrid:
56
+ if line.strip() == self.datagrid:
56
57
  ngfft_spacing = self.xsf_lines[i+1].strip().split(' ')
57
58
  ngfft_spacing = [int(val) for val in ngfft_spacing if val != '']
58
59
  self.ngfftx = ngfft_spacing[0]
@@ -70,7 +71,7 @@ class XSF():
70
71
  density_lines:list|np.ndarray=[]
71
72
  for i, line in enumerate(self.xsf_lines):
72
73
  # get density block, this assumes density is the end most data grid in the XSF
73
- if line.strip() == 'BEGIN_DATAGRID_3D_principal_orbital_component':
74
+ if line.strip() == self.datagrid:
74
75
  # density starts 6 lines down from BEGIN_DATAGRID_3D_principal_orbital_component header
75
76
  density_lines = self.xsf_lines[i+6:]
76
77
  # last line indicates end of data block, remove it
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bandu
3
- Version: 1.3.5
3
+ Version: 1.3.6
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes