Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add separate setting for sigmoid adjustment factor #132

Closed
wants to merge 4 commits into from

Conversation

MikePlante1
Copy link
Contributor

Addresses issue #106 by using separate variables for Adjustment Factor when using Logarithmic DynamicISF vs Sigmoid DynamicISF. Defaults AF to 0.8 for Logarithmic and 0.5 for Sigmoid.

This adds a new setting for Adjustment Factor so Logarithmic DynamicISF can default to 0.8 and Sigmoid DynamicISF can default to 0.5. This prevents new users from starting DynamicISF in Logarithmic mode with a default of 0.5 which seems to often lead to prolonged highs for many people. Also helpful for those who switch between Logarithmic and Sigmoid depending on their situation.

Screenshot 2024-04-14 at 10 10 05 AM

@MikePlante1 MikePlante1 changed the base branch from main to alpha April 28, 2024 17:11
@JeremyStorring
Copy link
Contributor

Just want a sanity check - changes in open-iaps-oref from here will make their way into open-iaps-oref?

@JeremyStorring
Copy link
Contributor

Everything here looks good and makes sense :) Good work!

@bjornoleh
Copy link
Contributor

Just want a sanity check - changes in open-iaps-oref from here will make their way into open-iaps-oref?

Yes, PR 21 in Oiref does this: nightscout/trio-oref#21

I added you as reviewer :-)

Copy link
Contributor

@bjornoleh bjornoleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected after brief testing.

@avouspierre
Copy link
Contributor

Tested on simulator. Seems Ok even no information is displayed on the "loop popup" about using sigmoid function.

@MikePlante1 MikePlante1 closed this May 1, 2024
@MikePlante1 MikePlante1 reopened this May 1, 2024
@bjornoleh
Copy link
Contributor

Tested on simulator. Seems Ok even no information is displayed on the "loop popup" about using sigmoid function.

Do we want to adress this?

@MikePlante1
Copy link
Contributor Author

Here’s my assumption of what’s happening there… I think Sigmoid requires 21+ hours of TDD data in order to be used and if Sigmoid is being used then it won’t show up in the Loop toggle. I’m guessing you tested as a brand new installation in a simulator?

I’ll give it a look in a sim in a bit to confirm, though. Unless my assumption is wrong?

@avouspierre
Copy link
Contributor

Here’s my assumption of what’s happening there… I think Sigmoid requires 21+ hours of TDD data in order to be used and if Sigmoid is being used then it won’t show up in the Loop toggle. I’m guessing you tested as a brand new installation in a simulator?

I’ll give it a look in a sim in a bit to confirm, though. Unless my assumption is wrong?

Yes. I tested on a fresh install with less 24h of data. I though there is a info in loop toggle in iAPS but not sure

@MikePlante1 MikePlante1 changed the base branch from alpha to dev May 2, 2024 19:42
@MikePlante1 MikePlante1 changed the title Add separate setting for sigmoid adjustment factor (alpha) Add separate setting for sigmoid adjustment factor May 2, 2024
@marionbarker
Copy link
Contributor

marionbarker commented May 2, 2024

Please evaluate if PR needs to be updated or if there is an issue with dev.

Test Case:
I downloaded the patch and tried to apply to dev (96dd917, Merge pull request 143) and it does not apply:

 % git apply /Users/marion/Downloads/oi-pr-132.patch                      
error: patch failed: FreeAPS/Resources/javascript/bundle/determine-basal.js:1
error: FreeAPS/Resources/javascript/bundle/determine-basal.js: patch does not apply
error: patch failed: oref0_source_version.txt:1
error: oref0_source_version.txt: patch does not apply

How does this PR differ from PR#114 which does apply without errors.

@MikePlante1
Copy link
Contributor Author

How does this PR differ from PR#114 which does apply without errors.

Soo… PR#114 didn’t actually include the minimized oref changes, which is what’s causing the merge conflicts here. I think I’m going to close this PR and just update 114 instead by merging in dev and applying the oref updates.

@MikePlante1
Copy link
Contributor Author

Closed since alpha was merged into dev. See #114 for future progress on this PR.

@MikePlante1 MikePlante1 closed this May 3, 2024
@MikePlante1 MikePlante1 deleted the sigmoid_settings_alpha branch May 3, 2024 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants