Set median of lower and upper correction range bound when importing L… #253
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves NS Settings Import: Set median of lower and upper correction range bound when importing Loop settings by:
Sets Trio's target correction low and high to median of lower and upper target range when NS profile's enteredBy is Loop. Rounds median value to 0 or 1 significant digits depending on Glucose unit (0 for mg/dL, 1 for mmol/L).
EDIT:
This issue probably applies to AAPS, too, since it also uses a low and high target. examples.json shows its
profileJson
withtarget_low
andtarget_high
. I cannot test it w/out having an actual "openaps://AndroidAPS" profile though.I think merged PR, Remove unused Import Settings in JSON that cause errors decoding JSON #249, also applies to AAPS.