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

AutoISF plugin prototype #3327

Open
wants to merge 47 commits into
base: dev
Choose a base branch
from

Conversation

ga-zelle
Copy link

@ga-zelle ga-zelle commented May 6, 2024

According to the hint given in the earlier submission (#3206) this version has AutoISF completely contained in its own plugin.

It represents AutoSF version 3.0 as described in https://github.com/ga-zelle/autoISF/blob/A3.2.0.2_ai3.0/autoISF3.0_Quick_Guide.pdf. However, some functionality was not yet included, namely

  • no dedicated automations
  • no activity monitor based on step counting
  • no home screen adaptations

AutoISF version 3.0.1 is in its final testing. Once verfied it will be added and offers a reduced set of preferences and flatter preference menus.

The code was tested

  • by unit tests of its basic functions. The AutoISF function itself needs more work.
  • test json's were added to ReplayApsResuiltsTest. One test failed due to minor deviation of eventualBG 103 vs. 104. Most likely this was due to unfortunate rounding in determine basal code (js and kt versions).
  • observing test runs and verifying results against my AAPS emulator

A big thank you goes to @Philoul . Not only did he create the plugin structure but he also put in considerable work to align the architecture as much as possible with DynamicISF. This resulted in some code duplication but AutoISF is independent of the remaining code and can be tested and developed independantly.

Philoul and others added 30 commits February 13, 2024 20:52
…oISFPlugin

# Conflicts:
#	app/src/main/kotlin/app/aaps/activities/MyPreferenceFragment.kt
#	core/keys/src/main/kotlin/app/aaps/core/keys/BooleanKey.kt
#	core/keys/src/main/kotlin/app/aaps/core/keys/IntKey.kt
#	core/keys/src/main/kotlin/app/aaps/core/keys/UnitDoubleKey.kt
#	core/keys/src/main/res/values/keys.xml
#	plugins/aps/src/main/kotlin/app/aaps/plugins/aps/openAPSSMB/OpenAPSSMBPlugin.kt
#	plugins/aps/src/main/res/values/strings.xml
…oISFPlugin

# Conflicts:
#	core/keys/src/main/kotlin/app/aaps/core/keys/BooleanKey.kt
@@ -47,5 +47,29 @@ data class OapsProfile(
//DynISF only
var variable_sens: Double,
var insulinDivisor: Int,
var TDD: Double
var TDD: Double,
Copy link
Contributor

Choose a reason for hiding this comment

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

Create data class OapsProfileAutoIsf : OapsProfile
this makes the profile value confusing for other algs

Copy link
Contributor

Choose a reason for hiding this comment

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

I added the dedicated OapsProfileAutoIsf file (without modifying database).
😉

@MilosKozak
Copy link
Contributor

make it available in engineering mode only for now (see Autotune plugin)

@Philoul
Copy link
Contributor

Philoul commented May 7, 2024

make it available in engineering mode only for now (see Autotune plugin)

You are right, I forgot to included it in the new proposal (I made a PR to ga-zelle branch, with engineering mode + dev branch like autotune).

Copy link

sonarcloud bot commented May 8, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
35.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

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.

None yet

3 participants