From 3b24cfa6d3cd01d9797988783538c0daa31afde0 Mon Sep 17 00:00:00 2001 From: Rqcker Date: Tue, 25 Jun 2024 22:02:29 +0100 Subject: [PATCH] release v0.2.4 --- sais/__init__.py | 2 +- sais/symbiotic_ais.py | 6 +++--- setup.py | 5 +---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/sais/__init__.py b/sais/__init__.py index efd0a8b..62db4ba 100644 --- a/sais/__init__.py +++ b/sais/__init__.py @@ -2,5 +2,5 @@ from .symbiotic_ais import run from .benchmarks import benchmark_result -# define the public interface of the package +# define the public user interface of the package __all__ = ['run', 'benchmark_result'] diff --git a/sais/symbiotic_ais.py b/sais/symbiotic_ais.py index a15a3f0..23e9e13 100644 --- a/sais/symbiotic_ais.py +++ b/sais/symbiotic_ais.py @@ -203,11 +203,11 @@ def run(population_size, benchmark_number): # update the end time end_time = time.time() - tol_time = end_time - start_time + duration = end_time - start_time # result display - print('Running Time: %s Secounds' % tol_time) + print('Running Time: %s Secounds' % duration) print("Best Fitness:", best_fitness) print("Best Antibody:", best_antibody) # get the best solution - return best_antibody, best_fitness, tol_time, \ + return best_antibody, best_fitness, duration, \ iterations_number, iteration_results diff --git a/setup.py b/setup.py index dff0ac6..86e50a8 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='sais', - version='0.2.3', + version='0.2.4', packages=find_packages(), description='Symbiotic Artificial Immune Systems', long_description=open('README.md').read(), @@ -11,9 +11,6 @@ author='Junhao', author_email='junhao.song23@imperial.ac.uk', url='https://github.com/Rqcker/SymbioticAIS', - project_urls={ - 'Homepage': 'https://github.com/Rqcker/SymbioticAIS', - }, install_requires=[ # requires list and version 'numpy>=1.23.5'