Skip to content

Commit

Permalink
fix: fixed log
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Nov 8, 2021
1 parent 1fc39e9 commit 32fc94e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion biosimulators_cobrapy/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.19'
__version__ = '0.1.20'
2 changes: 1 addition & 1 deletion biosimulators_cobrapy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions tests/test_core_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import cobra
import datetime
import dateutil.tz
import json
import numpy
import numpy.testing
import os
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 32fc94e

Please sign in to comment.