Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent model name from being permanently changed #399

Merged
merged 2 commits into from
Jan 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pysb/tests/test_simulationresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import warnings
from pysb.pattern import SpeciesPatternMatcher
import collections
import copy
import pandas as pd


Expand Down Expand Up @@ -98,7 +99,8 @@ def test_on_demand_observable(self):

def test_save_load():
tspan = np.linspace(0, 100, 101)
model = tyson_oscillator.model
# Make a copy of model so other tests etc. don't see the changed name.
model = copy.deepcopy(tyson_oscillator.model)
test_unicode_name = u'Hello \u2603 and \U0001f4a9!'
model.name = test_unicode_name
sim = ScipyOdeSimulator(model, integrator='lsoda')
Expand Down