From 83601c45af1ff62340577618da86f6758601bd62 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Mon, 24 Mar 2025 17:49:26 +0800 Subject: [PATCH] 0.1.174 --- PyPI/setup.cfg | 2 +- PyPI/src/guan.egg-info/PKG-INFO | 2 +- PyPI/src/guan/data_processing.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index 1a384b5..fcfde2a 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.173 +version = 0.1.174 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 bd81daf..51c3d5b 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: guan -Version: 0.1.173 +Version: 0.1.174 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/data_processing.py b/PyPI/src/guan/data_processing.py index 6e96448..0616fc3 100644 --- a/PyPI/src/guan/data_processing.py +++ b/PyPI/src/guan/data_processing.py @@ -67,6 +67,7 @@ def dimension_of_array(array): # 检查矩阵是否为厄米矩阵(相对误差为1e-5) def is_hermitian(matrix): import numpy as np + matrix = np.array(matrix) if matrix.shape[0] != matrix.shape[1]: return False return np.allclose(matrix, np.conj(matrix.T))