Releases: gcappon/replay-bg
Releases · gcappon/replay-bg
v2.1.0
ReplayBG can now work as a simulator leveraging identified model parameters to represent a virtual subject.
Added
- Input source can now be specified by the user using the new optional
bolusSource
(default:'data'
, can be'data'
or'dss'
),basalSource
(default:'data'
, can'data'
,'u2ss'
, or'dss'
) andchoSource
(default:'data'
, can be'data'
or'generated'
) input parameters ofreplayBG
function. - User can now specify custom handlers for:
- a meal generation policy using the
mealGeneratorHandler
optional input parameter ofreplayBG
(used ifchoSource
is'generated'
); - a basal controller using the
basalHandler
optional input parameter ofreplayBG
(used ifbasalSource
is'dss'
); - a bolus calculator using the
bolusCalculatorHandler
optional input parameter ofreplayBG
(used ifbolusSource
is'dss'
).
- a meal generation policy using the
- A new optional input parameter
GT
ofreplayBG
that specify the target glucose level in mg/dl used by the integrated dss (default: 120); - A default
mealGeneratorHandler
,defaultMealGeneratorHandler
; - A default
basalHandler
,defaultBasalHandler
; - A default
bolusCalculatorHandler
,standardBolusCalculatorHandler
.
Changed
scenario
input variable ofreplayBG
is now required;- Default value of
CR
is now 10 g/U; - Default value of
CF
is now 40 mg/dl/U.
Fixed
plotReplayBGResults
: see issue #17.