Giter Club home page Giter Club logo

aps-what-if's Introduction

This branch is still under development. The new software is fairly stable but the documentation is still in flux. Major updates:

  • include the AAPS 3.2.0.4 capabilities
  • include the autoISF3.0.1 capabilities

This branch is not yet fully tested and may contain bugs. In such cases please contact ga-zelle.

See also the change.log

APS-emulator

I translated the original java-script code of "determineSMB-basal.js" into python and can run it on a PC. This allows me to untertake a time tarvel back to any time slot and see how insulin delivery would have differed with different APS settings. This offers a safe method to play with settings and check their impact before actually adapting them in APS itself.

The historical logfiles contain enough information to rerun the APS loop, but with modified settings like

  • changed target
  • changed ISF
  • SMB on/off
  • ...

The main result in tabular and graphical output is the change in insulin required and the related SMB and TBR. Related data like SGV, target, Autosens ratio etc. are also shown.

A special output is the flowchart which helps to understand the logic flow through the loop. This is the track which statements in "determineSMB-basal" were executed and which not together with the reasoning of those decisions taken from the original code.

aps-what-if's People

Contributors

ga-zelle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aps-what-if's Issues

Error in emulator

Hi

I'm getting this error with the attached log :

Problem in emulator_core.py
File "...\software\emulator_GUI.py", line 810, in sub_emul
loopInterval, thisTime, extraSMB, CarbReqGram, CarbReqTime, lastCOB, fn_first = parameters_known(afil.get(), gopt, vfil.get(), useStart, useStopp, entries, m, my_decimal)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\software\emulator_core.py", line 2461, in parameters_known
cont = scanLogfile(fn, entries)
^^^^^^^^^^^^^^^^^^^^^^^^
File "...\software\emulator_core.py", line 1442, in scanLogfile
cont = TreatLoop(dataStr[8:], log, lcount, fn)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\software\emulator_core.py", line 750, in TreatLoop
if ins_Req > 0.0: # can be empty string; was >0.2 before
^^^^^^^^^^^^^
'>' not supported between instances of 'NoneType' and 'float'

AndroidAPS.2024-06-20_02-00-29.0.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.