From 37fe0bf7c7c03e0e590c850212f436e6ecba3638 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Fri, 20 May 2022 14:29:08 +0800 Subject: [PATCH] 0.0.89 --- PyPI/setup.cfg | 2 +- PyPI/src/guan/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index bc7147b..425df09 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.88 +version = 0.0.89 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan/__init__.py b/PyPI/src/guan/__init__.py index 85f1659..0c28841 100644 --- a/PyPI/src/guan/__init__.py +++ b/PyPI/src/guan/__init__.py @@ -303,7 +303,7 @@ guan.make_gif(image_path_array, filename='a', duration=0.1) parameter_array = guan.preprocess_for_parallel_calculations(parameter_array_all, cpus=1, task_index=0) -guan.change_directory_by_replacement(current_key_word='codes', new_key_word='data') +guan.change_directory_by_replacement(current_key_word='code', new_key_word='data') guan.batch_reading_and_plotting(directory, xlabel='x', ylabel='y') @@ -2181,7 +2181,7 @@ def preprocess_for_parallel_calculations(parameter_array_all, cpus=1, task_index parameter_array = parameter_array_all[task_index*num_parameter:num_all] return parameter_array -def change_directory_by_replacement(current_key_word='codes', new_key_word='data'): +def change_directory_by_replacement(current_key_word='code', new_key_word='data'): import os code_path = os.getcwd() data_path = code_path.replace('\\', '/')