Skip to content

Commit

Permalink
fix: fixed logging of algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Nov 8, 2021
1 parent 554fbff commit cc6978d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion biosimulators/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Base OS
FROM python:3.9-slim-buster

ARG VERSION=0.0.4
ARG VERSION=0.0.5
ARG SIMULATOR_VERSION=1.4.0
ARG LIBSBML_VERSION=5.19.0

Expand Down
2 changes: 1 addition & 1 deletion biosimulators/biosimulators_libsbmlsim/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.4'
__version__ = '0.0.5'
2 changes: 1 addition & 1 deletion biosimulators/biosimulators_libsbmlsim/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,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': "simulateSBMLFromFile",
'arguments': {
Expand Down
4 changes: 4 additions & 0 deletions biosimulators/tests/test_core_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import copy
import datetime
import dateutil.tz
import json
import os
import numpy.testing
import shutil
Expand Down Expand Up @@ -309,6 +310,9 @@ def test_exec_sedml_docs_in_combine_archive(self):
if log.exception:
raise log.exception

# check that log can be serialized to JSON
json.dumps(log.to_json())

results = ReportReader().run(report, out_dir, 'sim.sedml/report', format=report_data_model.ReportFormat.h5)

numpy.testing.assert_allclose(results['data_set_time'], numpy.linspace(0., 10., 11))
Expand Down

0 comments on commit cc6978d

Please sign in to comment.