From d7ef8072ed74ecd725d7774c3f6f786314e5ce7b Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Tue, 3 Oct 2023 20:39:52 +0800 Subject: [PATCH] 0.0.182 --- API_Reference/API_Reference.py | 4 +++- Source_Code/PyPI/README.md | 2 +- Source_Code/PyPI/setup.cfg | 2 +- Source_Code/PyPI/src/guan.egg-info/PKG-INFO | 4 ++-- Source_Code/PyPI/src/guan/__init__.py | 8 ++++++-- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/API_Reference/API_Reference.py b/API_Reference/API_Reference.py index bcb1303..acb65a8 100644 --- a/API_Reference/API_Reference.py +++ b/API_Reference/API_Reference.py @@ -20,6 +20,8 @@ import guan + + @@ -248,7 +250,7 @@ hamiltonian = guan.effective_hamiltonian_of_graphene_after_discretization(qx, qy hamiltonian = guan.hamiltonian_of_graphene_with_zigzag_in_quasi_one_dimension(k, N=10, M=0, t=1, period=0) # Haldane模型的哈密顿量 -hamiltonian = guan.hamiltonian_of_haldane_model(k1, k2, M=2/3, t1=1, t2=1/3, phi=math.pi/4, a='default') +hamiltonian = guan.hamiltonian_of_haldane_model(k1, k2, M=2/3, t1=1, t2=1/3, phi='default', a='default') # 准一维Haldane模型条带的哈密顿量 hamiltonian = guan.hamiltonian_of_haldane_model_in_quasi_one_dimension(k, N=10, M=2/3, t1=1, t2=1/3, phi='default', period=0) diff --git a/Source_Code/PyPI/README.md b/Source_Code/PyPI/README.md index e4dcff0..c6f4673 100644 --- a/Source_Code/PyPI/README.md +++ b/Source_Code/PyPI/README.md @@ -1 +1 @@ -Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. 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. \ No newline at end of file +Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about (Ji-Huan Guan, 关济寰). The primary location of this package is on website https://py.guanjihuan.com. \ No newline at end of file diff --git a/Source_Code/PyPI/setup.cfg b/Source_Code/PyPI/setup.cfg index f0b95d9..534d1e5 100644 --- a/Source_Code/PyPI/setup.cfg +++ b/Source_Code/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.181 +version = 0.0.182 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/Source_Code/PyPI/src/guan.egg-info/PKG-INFO b/Source_Code/PyPI/src/guan.egg-info/PKG-INFO index 0b8f35b..038902d 100644 --- a/Source_Code/PyPI/src/guan.egg-info/PKG-INFO +++ b/Source_Code/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: guan -Version: 0.0.181 +Version: 0.0.182 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan @@ -13,4 +13,4 @@ Requires-Python: >=3.6 Description-Content-Type: text/markdown License-File: LICENSE -Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. 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. +Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about (Ji-Huan Guan, 关济寰). The primary location of this package is on website https://py.guanjihuan.com. diff --git a/Source_Code/PyPI/src/guan/__init__.py b/Source_Code/PyPI/src/guan/__init__.py index 113fd83..f92301f 100644 --- a/Source_Code/PyPI/src/guan/__init__.py +++ b/Source_Code/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.181, updated on December 03, 2023. +# The current version is guan-0.0.182, updated on December 03, 2023. # Installation: pip install --upgrade guan @@ -52,6 +52,8 @@ + + @@ -754,10 +756,12 @@ def hamiltonian_of_graphene_with_zigzag_in_quasi_one_dimension(k, N=10, M=0, t=1 return hamiltonian # Haldane模型的哈密顿量 -def hamiltonian_of_haldane_model(k1, k2, M=2/3, t1=1, t2=1/3, phi=math.pi/4, a='default'): +def hamiltonian_of_haldane_model(k1, k2, M=2/3, t1=1, t2=1/3, phi='default', a='default'): import numpy as np import cmath import math + if phi == 'default': + phi=math.pi/4 if a == 'default': a=1/math.sqrt(3) h0 = np.zeros((2, 2), dtype=complex) # mass term