FT-inversion-tools 0.0.2__tar.gz → 0.0.4__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: FT_inversion_tools
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: A small package containing tools needed to perform analysis for the FT inversions paper. Packaged for consistency.
5
5
  Author-email: "Anthony R. Osborne" <anthony.r.osborne019@pm.me>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "FT_inversion_tools"
3
- version = "0.0.2"
3
+ version = "0.0.4"
4
4
  authors = [{name = "Anthony R. Osborne", email = "anthony.r.osborne019@pm.me"},]
5
5
  description = "A small package containing tools needed to perform analysis for the FT inversions paper. Packaged for consistency."
6
6
  requires-python = ">=3.9"
@@ -47,22 +47,16 @@ def getFTData(temp=str, system=str, direction=str):
47
47
  vks = np.loadtxt(vks_path)[:,1]
48
48
  vxc = np.loadtxt(vxc_path)[:,1]
49
49
  vh = np.loadtxt(vh_path)[:,1]
50
- return x_grid, dens, vks, vxc, vh
50
+ return x_grid, dens, vks, vxc
51
51
 
52
52
 
53
- def shifter(temps, vks_list_FWD, vks_list_INV, vxc_list_INV, Fermi_energy_list):
54
- shifted_ks = []
55
- shifted_xc = []
56
- shifted_fermi = []
57
- for i in range(len(temps)):
58
- # print(temps[i])
59
- timpFWDKS = vks_list_FWD[i]
60
- timpINVKS = vks_list_INV[i]
61
- shift = np.mean(timpINVKS- timpFWDKS)
62
- shifted_ks.append(vks_list_INV[i] + shift)
63
- shifted_xc.append(vxc_list_INV[i] + shift)
64
- shifted_fermi.append(Fermi_energy_list[i] + shift)
65
- return shifted_ks, shifted_xc, shifted_fermi
53
+ def shifter(vks_FWD, vks_INV, vxc_INV):
54
+ timpFWDKS = vks_FWD
55
+ timpINVKS = vks_INV
56
+ shift = np.mean(timpINVKS- timpFWDKS)
57
+ shifted_ks = (vks_INV + shift)
58
+ shifted_xc = (vxc_INV + shift)
59
+ return shifted_ks, shifted_xc
66
60
 
67
61
  def energy_calculator(temps, vxc_list, dens_list, grid_list):
68
62
  Exc_list = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: FT_inversion_tools
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: A small package containing tools needed to perform analysis for the FT inversions paper. Packaged for consistency.
5
5
  Author-email: "Anthony R. Osborne" <anthony.r.osborne019@pm.me>
6
6
  License-Expression: MIT