Todo

Improve autoapi module

circadapt.adapt

Package Contents

Classes

ModelAdapt

Model class to be inherited to give model adaptation protocol.

Functions

get_reference_senses(model)

get_parameters(model)

get_sens(model)

run_simulations(model[, n_sims, verbose])

calculate_derivative(model, parameters, senses[, ...])

Attributes

rel_std_amref

rel_std_vwall

rel_std_sfpas

Objects

class circadapt.adapt.ModelAdapt[source]

Model class to be inherited to give model adaptation protocol.

get_adapt_options()[source]

Get default adapt options.

adapt(options: dict = {}, output: bool = False, verbose: bool = False) None[source]

Run adaptation protocol.

The adaptation protocol runs n_cycles cycles. Each cycle has two phases, namely rest adaptation and exercise adaptation. First, in exercise, the Patches and vessel wall volumes are adapted to load. In rest, vessels are adapted to flow.

Parameters

optionsdictionary, optional

Options for the protocol. To set options, use the function get_adapt_options(), which is used by default. The default is {}.

outputbool, optional

DESCRIPTION. The default is False.

Returns

senses_resultsTYPE

Only when output=True.

senses_normTYPE

Only when output=True.

actor_resultsTYPE

Only when output=True.

actor_vwallTYPE

Only when output=True.

adapt_exercise(options)[source]

Trigger all excercise adaptation functions.

adapt_rest(options)[source]

Trigger all rest adaptation functions.

calculate_and_set_matrix(verbose=False)[source]
get_matrix(verbose=False)[source]
circadapt.adapt.get_reference_senses(model)[source]
circadapt.adapt.get_parameters(model)[source]
circadapt.adapt.get_sens(model)[source]
circadapt.adapt.rel_std_amref = 0.02
circadapt.adapt.rel_std_vwall = 0.05
circadapt.adapt.rel_std_sfpas = 0.05
circadapt.adapt.run_simulations(model, n_sims=1000, verbose=False)[source]
circadapt.adapt.calculate_derivative(model, parameters, senses, include_for_average=None, verbose=False)[source]