Skip to content

Commit

Permalink
#255 first draft of docs quick overview
Browse files Browse the repository at this point in the history
  • Loading branch information
DavAug committed Mar 20, 2022
1 parent c3c0d07 commit 8a6f6af
Show file tree
Hide file tree
Showing 20 changed files with 1,231 additions and 240 deletions.
4 changes: 2 additions & 2 deletions chi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

from ._mechanistic_models import ( # noqa
MechanisticModel,
PharmacodynamicModel,
PharmacokineticModel,
SBMLModel,
PKPDModel,
ReducedMechanisticModel
)

Expand Down
6 changes: 3 additions & 3 deletions chi/_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def __init__(self, log_posterior):
super(SamplingController, self).__init__(log_posterior)

# Set default sampler
self._sampler = pints.HaarioACMC
self._sampler = pints.HaarioBardenetACMC

def _format_chains(self, chains, names, ids, divergent_iters):
"""
Expand Down Expand Up @@ -776,8 +776,8 @@ def _format_chains(self, chains, names, ids, divergent_iters):
trajectories occured, or None
"""
# Broadcast IDs to length of names, if posterior has only one ID
if isinstance(ids, str):
ids = np.broadcast_to(ids, shape=len(names))
if (not ids) or isinstance(ids, str):
ids = [ids] * len(names)

# Convert names and ids to numpy arrays
ids = np.asarray(ids)
Expand Down
Loading

0 comments on commit 8a6f6af

Please sign in to comment.