Skip to content

Commit

Permalink
chore: fixed handling of string-valued action arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Sep 24, 2021
1 parent 05c6aa3 commit 13b9c83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

FROM python:3.9-slim-buster

ARG VERSION="0.1.16"
ARG VERSION="0.1.17"
ARG SIMULATOR_VERSION=2.6.0

# metadata
Expand Down
2 changes: 1 addition & 1 deletion biosimulators_bionetgen/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.16'
__version__ = '0.1.17'
5 changes: 5 additions & 0 deletions biosimulators_bionetgen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ def add_model_attribute_change_to_task(task, change, preprocessed_change=None):
if preprocessed_change['type'] == 'replace_line_in_block':
preprocessed_change['block'][preprocessed_change['i_line']] = preprocessed_change['new_line'](new_value)
else:
try:
float(new_value)
except ValueError:
new_value = '"' + str(new_value) + '"'

task.actions.append(preprocessed_change['action'](new_value))


Expand Down

0 comments on commit 13b9c83

Please sign in to comment.