Skip to content

Commit

Permalink
repaired tests after changing interface of how to initialize a PWCMod…
Browse files Browse the repository at this point in the history
…elRunFD
  • Loading branch information
goujou committed Aug 7, 2020
1 parent e8c1520 commit 5098ee1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CompartmentalSystems/pwc_model_run_fd.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def pool_str(i):
return cls(Bs, us, pwc_mr)

@classmethod
def from_gross_data(
def from_gross_fluxes(
cls,
time_symbol,
data_times,
Expand Down
2 changes: 1 addition & 1 deletion tests/Test_model_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_PWCModelRunFD(self):
xs, gross_Us, gross_Fs, gross_Rs \
= self.smr.fake_gross_discretized_output(times)

pwc_mr_fd = PWCModelRunFD(
pwc_mr_fd = PWCModelRunFD.from_gross_fluxes(
self.smr.model.time_symbol,
times,
self.smr.start_values,
Expand Down
2 changes: 1 addition & 1 deletion tests/Test_model_run_14C.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_PWCModelRunFD_14C(self):
xs, gross_Us, gross_Fs, gross_Rs \
= self.smr.fake_gross_discretized_output(times)

pwc_mr_fd = PWCModelRunFD(
pwc_mr_fd = PWCModelRunFD.from_gross_fluxes(
self.smr.model.time_symbol,
times,
self.smr.start_values,
Expand Down
2 changes: 1 addition & 1 deletion tests/Test_pwc_model_run_fd.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_reconstruction_accuracy(self):
xs, gross_Us, gross_Fs, gross_Rs =\
smr.fake_gross_discretized_output(smr.times)

pwc_mr_fd = PWCModelRunFD.from_gross_data(
pwc_mr_fd = PWCModelRunFD.from_gross_fluxes(
smr.model.time_symbol,
smr.times,
xs[0, :],
Expand Down

0 comments on commit 5098ee1

Please sign in to comment.