Skip to content

Commit

Permalink
Merge pull request #146 from biosimulators/more-sed-changes-fixes
Browse files Browse the repository at this point in the history
More sed changes fixes
  • Loading branch information
luciansmith authored Jul 25, 2023
2 parents 93cfa06 + 0f020f8 commit 248ae17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion biosimulators_utils/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.183'
__version__ = '0.1.184'
3 changes: 3 additions & 0 deletions biosimulators_utils/sedml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def resolve_model_and_apply_xml_changes(orig_model, sed_doc, working_dir,
model = copy.deepcopy(orig_model)
# We need to save this because we're going to change it, then change it back.
orig_model_source = orig_model.source
orig_model_changes = orig_model.changes

# resolve model
temp_model_source = resolve_model(model, sed_doc, working_dir)
Expand All @@ -309,6 +310,7 @@ def resolve_model_and_apply_xml_changes(orig_model, sed_doc, working_dir,
if model.changes:
# Change source here so that tasks point to actual source they can find.
orig_model.source = model.source
orig_model.changes = model.changes
# apply changes
preprocessed_task = apply_changes_to_xml_model(model, model_etree, sed_doc, working_dir,
set_value_executer=set_value_executer,
Expand All @@ -332,6 +334,7 @@ def resolve_model_and_apply_xml_changes(orig_model, sed_doc, working_dir,

# Reset the model source, in case it matters.
orig_model.source = orig_model_source
orig_model.changes = orig_model_changes
return model, temp_model_source, model_etree, preprocessed_task


Expand Down

0 comments on commit 248ae17

Please sign in to comment.