From d75ca3db2fd4503307170bffbafab4ae4f9ddbc1 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Fri, 21 Oct 2022 05:34:14 +0800 Subject: [PATCH] 0.0.149 --- PyPI/setup.cfg | 2 +- PyPI/src/guan.egg-info/PKG-INFO | 2 +- PyPI/src/guan/__init__.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index ffe753d..3a9cede 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.148 +version = 0.0.149 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan.egg-info/PKG-INFO b/PyPI/src/guan.egg-info/PKG-INFO index 70b9c76..c6a5b40 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: guan -Version: 0.0.148 +Version: 0.0.149 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/__init__.py b/PyPI/src/guan/__init__.py index e2fddea..9322df7 100644 --- a/PyPI/src/guan/__init__.py +++ b/PyPI/src/guan/__init__.py @@ -2,7 +2,7 @@ # With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing. -# The current version is guan-0.0.148, updated on December 21, 2022. +# The current version is guan-0.0.149, updated on December 21, 2022. # Installation: pip install --upgrade guan @@ -1199,6 +1199,7 @@ def calculate_conductance_with_slice_disorder(fermi_energy, h00, h01, disorder_i right_self_energy, left_self_energy, gamma_right, gamma_left = guan.self_energy_of_lead(fermi_energy, h00, h01) dim = np.array(h00).shape[0] for ix in range(length): + disorder = np.zeros((dim, dim)) if np.random.uniform(0, 1)<=disorder_concentration: disorder = np.random.uniform(-disorder_intensity, disorder_intensity)*np.eye(dim) if ix == 0: