From 32fc94e679e4f4a40ec31bad68c7be8c6a97fd6e Mon Sep 17 00:00:00 2001 From: Jonathan Karr Date: Mon, 8 Nov 2021 12:44:58 -0500 Subject: [PATCH] fix: fixed log --- Dockerfile | 2 +- biosimulators_cobrapy/_version.py | 2 +- biosimulators_cobrapy/core.py | 2 +- tests/test_core_main.py | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12f78ae..e32861c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ # Base OS FROM python:3.9-slim-buster -ARG VERSION="0.1.19" +ARG VERSION="0.1.20" ARG SIMULATOR_VERSION="0.22.1" # metadata diff --git a/biosimulators_cobrapy/_version.py b/biosimulators_cobrapy/_version.py index d83c2a9..e160d93 100644 --- a/biosimulators_cobrapy/_version.py +++ b/biosimulators_cobrapy/_version.py @@ -1 +1 @@ -__version__ = '0.1.19' +__version__ = '0.1.20' diff --git a/biosimulators_cobrapy/core.py b/biosimulators_cobrapy/core.py index a9ba78b..cbdb998 100644 --- a/biosimulators_cobrapy/core.py +++ b/biosimulators_cobrapy/core.py @@ -181,7 +181,7 @@ def exec_sed_task(task, variables, preprocessed_task=None, log=None, config=None # log action if config.LOG: - log.algorithm = preprocessed_task['simulation']['algorithm_kisao_id'], + log.algorithm = preprocessed_task['simulation']['algorithm_kisao_id'] log.simulator_details = { 'method': method_props['method'].__module__ + '.' + method_props['method'].__name__, 'arguments': method_kw_args, diff --git a/tests/test_core_main.py b/tests/test_core_main.py index 7bed36b..6f38d18 100644 --- a/tests/test_core_main.py +++ b/tests/test_core_main.py @@ -25,6 +25,7 @@ import cobra import datetime import dateutil.tz +import json import numpy import numpy.testing import os @@ -370,6 +371,8 @@ def test_exec_sedml_docs_in_combine_archive_successfully(self): if log.exception: raise log.exception + json.dumps(log.to_json()) + self._assert_combine_archive_outputs(doc, out_dir) def _build_combine_archive(self, model_changes=None, algorithm=None):