From ca271d54504113541e5224bc8a2cb26cf255f52d Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Mon, 23 Oct 2023 21:53:38 +0800 Subject: [PATCH] 0.1.5 --- API_Reference/API_Reference.py | 2 +- Source_Code/PyPI/setup.cfg | 2 +- Source_Code/PyPI/src/guan.egg-info/PKG-INFO | 2 +- Source_Code/PyPI/src/guan/__init__.py | 11 ++++------- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/API_Reference/API_Reference.py b/API_Reference/API_Reference.py index 1f50370..f653e5f 100644 --- a/API_Reference/API_Reference.py +++ b/API_Reference/API_Reference.py @@ -1,4 +1,4 @@ -# API Reference shows all functions in Guan package. The current version is guan-0.1.4 updated on December 23, 2023. +# API Reference shows all functions in Guan package. The current version is guan-0.1.5 updated on December 23, 2023. import guan diff --git a/Source_Code/PyPI/setup.cfg b/Source_Code/PyPI/setup.cfg index 9a5c8a0..906f8a6 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.1.4 +version = 0.1.5 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 9186d16..49caf7d 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.1.4 +Version: 0.1.5 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/Source_Code/PyPI/src/guan/__init__.py b/Source_Code/PyPI/src/guan/__init__.py index 0f66958..5ba379c 100644 --- a/Source_Code/PyPI/src/guan/__init__.py +++ b/Source_Code/PyPI/src/guan/__init__.py @@ -1,6 +1,6 @@ # 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. GitHub link: https://github.com/guanjihuan/py.guanjihuan.com. -# The current version is guan-0.1.4, updated on December 23, 2023. +# The current version is guan-0.1.5, updated on December 23, 2023. # Installation: pip install --upgrade guan @@ -3475,7 +3475,7 @@ def color_matplotlib(): def dump_data(data, filename, file_format='.txt'): import pickle with open(filename+file_format, 'wb') as f: - pickle.dump(data, f) + pickle.dump(data, f) import guan guan.statistics_of_guan_package() @@ -3610,10 +3610,7 @@ def read_two_dimensional_data_without_xy_array(filename='a', file_format='.txt') # 打开文件用于新增内容 def open_file(filename='a', file_format='.txt'): - try: - f = open(filename+file_format, 'a', encoding='UTF-8') - except: - f = open(filename+file_format, 'w', encoding='UTF-8') + f = open(filename+file_format, 'a', encoding='UTF-8') import guan guan.statistics_of_guan_package() return f @@ -4905,7 +4902,7 @@ def statistics_of_guan_package(): client_socket.settimeout(0.5) client_socket.connect(('py.guanjihuan.com', 12345)) message = guan.get_calling_function_name(layer=2)+"\n" - send_message = datetime_date + ' ' + datetime_time + ' version_1.0.4 ' + message + send_message = datetime_date + ' ' + datetime_time + ' version_1.0.5 ' + message client_socket.send(send_message.encode()) client_socket.close() except: