iints-sdk-python35 1.5.3__tar.gz → 1.5.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. iints_sdk_python35-1.5.4/PKG-INFO +200 -0
  2. iints_sdk_python35-1.5.4/README.md +134 -0
  3. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/pyproject.toml +1 -1
  4. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/__init__.py +1 -1
  5. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/cli.py +8 -8
  6. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/__init__.py +10 -0
  7. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/baseline.py +5 -1
  8. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/carelink_workbench.py +1 -1
  9. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/eucys_results.py +2 -2
  10. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/hardware_benchmark.py +17 -7
  11. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/reporting.py +5 -2
  12. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/study_engine.py +1 -0
  13. iints_sdk_python35-1.5.4/src/iints/analysis/study_experiment.py +168 -0
  14. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/study_protocol.py +33 -0
  15. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/cli/cli.py +1460 -388
  16. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/cli/patient_cli.py +14 -14
  17. iints_sdk_python35-1.5.4/src/iints/core/algorithms/clinical_baseline.py +151 -0
  18. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/pid_controller.py +22 -6
  19. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/patient/models.py +27 -8
  20. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/simulator.py +2 -1
  21. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/live_patient/__init__.py +12 -0
  22. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/live_patient/api.py +91 -36
  23. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/live_patient/daemon.py +3 -2
  24. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/live_patient/edge_benchmark.py +1 -1
  25. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/live_patient/edge_ops.py +561 -6
  26. iints_sdk_python35-1.5.4/src/iints/live_patient/long_study.py +885 -0
  27. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/live_patient/runtime.py +98 -20
  28. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/live_patient/service_export.py +107 -0
  29. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/live_patient/uno_q.py +3 -3
  30. iints_sdk_python35-1.5.4/src/iints_sdk_python35.egg-info/PKG-INFO +200 -0
  31. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints_sdk_python35.egg-info/SOURCES.txt +5 -0
  32. iints_sdk_python35-1.5.4/tests/test_cli_algorithm_loading.py +24 -0
  33. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_cli_edge_runtime.py +280 -0
  34. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_cli_expo_tools.py +94 -0
  35. iints_sdk_python35-1.5.4/tests/test_cli_onboarding.py +92 -0
  36. iints_sdk_python35-1.5.3/PKG-INFO +0 -123
  37. iints_sdk_python35-1.5.3/README.md +0 -57
  38. iints_sdk_python35-1.5.3/src/iints_sdk_python35.egg-info/PKG-INFO +0 -123
  39. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/LICENSE +0 -0
  40. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/LICENSE-MIT-IINTS-LEGACY +0 -0
  41. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/NOTICE +0 -0
  42. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/setup.cfg +0 -0
  43. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/__init__.py +0 -0
  44. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/assistant.py +0 -0
  45. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/backends/__init__.py +0 -0
  46. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/backends/base.py +0 -0
  47. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/backends/mistral_api.py +0 -0
  48. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/backends/ollama.py +0 -0
  49. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/mdmp_guard.py +0 -0
  50. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/model_catalog.py +0 -0
  51. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/prepare.py +0 -0
  52. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/ai/prompts.py +0 -0
  53. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/algorithm_xray.py +0 -0
  54. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/booth_demo.py +0 -0
  55. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/clinical_benchmark.py +0 -0
  56. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/clinical_metrics.py +0 -0
  57. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/clinical_tir_analyzer.py +0 -0
  58. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/diabetes_metrics.py +0 -0
  59. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/edge_efficiency.py +0 -0
  60. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/edge_performance_monitor.py +0 -0
  61. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/explainability.py +0 -0
  62. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/explainable_ai.py +0 -0
  63. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/metrics.py +0 -0
  64. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/population_report.py +0 -0
  65. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/poster.py +0 -0
  66. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/safety_index.py +0 -0
  67. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/sensor_filtering.py +0 -0
  68. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/study_analysis.py +0 -0
  69. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/study_poster.py +0 -0
  70. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/analysis/validator.py +0 -0
  71. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/api/__init__.py +0 -0
  72. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/api/base_algorithm.py +0 -0
  73. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/api/registry.py +0 -0
  74. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/api/template_algorithm.py +0 -0
  75. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/assets/iints_logo.png +0 -0
  76. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/cli/__init__.py +0 -0
  77. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/__init__.py +0 -0
  78. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/__init__.py +0 -0
  79. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/battle_runner.py +0 -0
  80. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/correction_bolus.py +0 -0
  81. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/discovery.py +0 -0
  82. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/fixed_basal_bolus.py +0 -0
  83. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/hybrid_algorithm.py +0 -0
  84. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/lstm_algorithm.py +0 -0
  85. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/mock_algorithms.py +0 -0
  86. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/algorithms/standard_pump_algo.py +0 -0
  87. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/device.py +0 -0
  88. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/device_manager.py +0 -0
  89. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/devices/__init__.py +0 -0
  90. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/devices/models.py +0 -0
  91. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/patient/__init__.py +0 -0
  92. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/patient/bergman_model.py +0 -0
  93. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/patient/patient_factory.py +0 -0
  94. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/patient/profile.py +0 -0
  95. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/safety/__init__.py +0 -0
  96. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/safety/config.py +0 -0
  97. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/safety/input_validator.py +0 -0
  98. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/safety/supervisor.py +0 -0
  99. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/simulation/__init__.py +0 -0
  100. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/simulation/scenario_parser.py +0 -0
  101. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/core/supervisor.py +0 -0
  102. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/__init__.py +0 -0
  103. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/adapter.py +0 -0
  104. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/certify.py +0 -0
  105. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/column_mapper.py +0 -0
  106. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/contracts.py +0 -0
  107. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/datasets.json +0 -0
  108. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/demo/__init__.py +0 -0
  109. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/demo/demo_cgm.csv +0 -0
  110. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/guardians.py +0 -0
  111. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/importer.py +0 -0
  112. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/ingestor.py +0 -0
  113. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/mdmp_visualizer.py +0 -0
  114. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/nightscout.py +0 -0
  115. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/quality_checker.py +0 -0
  116. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/registry.py +0 -0
  117. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/runner.py +0 -0
  118. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/study_corruption.py +0 -0
  119. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/synthetic_mirror.py +0 -0
  120. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/tidepool.py +0 -0
  121. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/universal_parser.py +0 -0
  122. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/virtual_patients/clinic_safe_baseline.yaml +0 -0
  123. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/virtual_patients/clinic_safe_hyper_challenge.yaml +0 -0
  124. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/virtual_patients/clinic_safe_hypo_prone.yaml +0 -0
  125. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/virtual_patients/clinic_safe_midnight.yaml +0 -0
  126. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/virtual_patients/clinic_safe_pizza.yaml +0 -0
  127. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/virtual_patients/clinic_safe_stress_meal.yaml +0 -0
  128. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/virtual_patients/default_patient.yaml +0 -0
  129. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/data/virtual_patients/patient_559_config.yaml +0 -0
  130. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/demo_assets.py +0 -0
  131. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/emulation/__init__.py +0 -0
  132. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/emulation/legacy_base.py +0 -0
  133. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/emulation/medtronic_780g.py +0 -0
  134. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/emulation/omnipod_5.py +0 -0
  135. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/emulation/tandem_controliq.py +0 -0
  136. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/highlevel.py +0 -0
  137. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/learning/__init__.py +0 -0
  138. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/learning/autonomous_optimizer.py +0 -0
  139. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/learning/learning_system.py +0 -0
  140. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/mdmp/__init__.py +0 -0
  141. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/mdmp/backend.py +0 -0
  142. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/metrics.py +0 -0
  143. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/population/__init__.py +0 -0
  144. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/population/generator.py +0 -0
  145. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/population/runner.py +0 -0
  146. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/presets/__init__.py +0 -0
  147. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/presets/evidence_sources.yaml +0 -0
  148. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/presets/forecast_calibration_profiles.yaml +0 -0
  149. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/presets/golden_benchmark.yaml +0 -0
  150. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/presets/presets.json +0 -0
  151. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/presets/safety_contract_default.yaml +0 -0
  152. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/presets/validation_profiles.yaml +0 -0
  153. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/__init__.py +0 -0
  154. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/audit.py +0 -0
  155. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/calibration_gate.py +0 -0
  156. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/config.py +0 -0
  157. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/dataset.py +0 -0
  158. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/evaluation.py +0 -0
  159. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/losses.py +0 -0
  160. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/metrics.py +0 -0
  161. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/model_registry.py +0 -0
  162. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/research/predictor.py +0 -0
  163. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/scenarios/__init__.py +0 -0
  164. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/scenarios/generator.py +0 -0
  165. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/scenarios/study_pack.py +0 -0
  166. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/__init__.py +0 -0
  167. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/default_algorithm.py +0 -0
  168. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/demos/__init__.py +0 -0
  169. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/demos/live_stage_demo.py +0 -0
  170. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/scenarios/__init__.py +0 -0
  171. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/scenarios/chaos_insulin_stacking.json +0 -0
  172. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/scenarios/chaos_runaway_ai.json +0 -0
  173. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/scenarios/example_scenario.json +0 -0
  174. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/scenarios/exercise_stress.json +0 -0
  175. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/uno_q/README.md +0 -0
  176. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/templates/uno_q/iints_supervisor_bridge.ino +0 -0
  177. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/utils/__init__.py +0 -0
  178. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/utils/csv_safety.py +0 -0
  179. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/utils/plotting.py +0 -0
  180. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/utils/run_io.py +0 -0
  181. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/utils/url_safety.py +0 -0
  182. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/validation/__init__.py +0 -0
  183. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/validation/golden.py +0 -0
  184. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/validation/replay.py +0 -0
  185. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/validation/run_validation.py +0 -0
  186. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/validation/safety_contract.py +0 -0
  187. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/validation/schemas.py +0 -0
  188. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/visualization/__init__.py +0 -0
  189. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/visualization/cockpit.py +0 -0
  190. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints/visualization/uncertainty_cloud.py +0 -0
  191. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints_sdk_python35.egg-info/dependency_links.txt +0 -0
  192. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints_sdk_python35.egg-info/entry_points.txt +0 -0
  193. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints_sdk_python35.egg-info/requires.txt +0 -0
  194. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/iints_sdk_python35.egg-info/top_level.txt +0 -0
  195. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_ai/__init__.py +0 -0
  196. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_ai/lineage.py +0 -0
  197. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/__init__.py +0 -0
  198. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/audit.py +0 -0
  199. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/bias_hooks.py +0 -0
  200. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/bundle.py +0 -0
  201. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/certification.py +0 -0
  202. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/cli.py +0 -0
  203. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/compare.py +0 -0
  204. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/conformance.py +0 -0
  205. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/contracts.py +0 -0
  206. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/crypto.py +0 -0
  207. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/data/conformance/vectors/delegation.json +0 -0
  208. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/data/conformance/vectors/fingerprint.json +0 -0
  209. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/data/conformance/vectors/grading.json +0 -0
  210. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/data/conformance/vectors/signing.json +0 -0
  211. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/delegate.py +0 -0
  212. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/diffing.py +0 -0
  213. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/drift.py +0 -0
  214. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/exceptions.py +0 -0
  215. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/fingerprint.py +0 -0
  216. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/fingerprint_store.py +0 -0
  217. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/hf.py +0 -0
  218. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/keys/mdmp_pub_v1.pem +0 -0
  219. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/llm_provenance.py +0 -0
  220. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/migrate.py +0 -0
  221. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/policy.py +0 -0
  222. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/prov.py +0 -0
  223. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/registry.py +0 -0
  224. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/runner.py +0 -0
  225. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/schema_export.py +0 -0
  226. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/synthetic.py +0 -0
  227. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/trust.py +0 -0
  228. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_core/visualizer.py +0 -0
  229. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_flavors/__init__.py +0 -0
  230. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_integrations/__init__.py +0 -0
  231. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_integrations/dvc.py +0 -0
  232. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_integrations/mlflow.py +0 -0
  233. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/src/mdmp_integrations/wandb.py +0 -0
  234. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_bergman.py +0 -0
  235. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_cli_booth_demo.py +0 -0
  236. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_cli_carelink_workbench.py +0 -0
  237. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_cli_cloud_import_security.py +0 -0
  238. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_cli_demo_export.py +0 -0
  239. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_cli_patient_runtime.py +0 -0
  240. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_cli_poster.py +0 -0
  241. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_install_doctor.py +0 -0
  242. {iints_sdk_python35-1.5.3 → iints_sdk_python35-1.5.4}/tests/test_population.py +0 -0
@@ -0,0 +1,200 @@
1
+ Metadata-Version: 2.4
2
+ Name: iints-sdk-python35
3
+ Version: 1.5.4
4
+ Summary: A pre-clinical Edge-AI SDK for diabetes management validation.
5
+ Author-email: Rune Bobbaers <rune.bobbaers@gmail.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/python35/IINTS-SDK
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Development Status :: 5 - Production/Stable
15
+ Requires-Python: >=3.10
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ License-File: NOTICE
19
+ License-File: LICENSE-MIT-IINTS-LEGACY
20
+ Requires-Dist: fastapi>=0.115.0
21
+ Requires-Dist: numpy>=1.24.0
22
+ Requires-Dist: pandas>=2.0.0
23
+ Requires-Dist: pydantic>=2.0.0
24
+ Requires-Dist: PyYAML
25
+ Requires-Dist: rich>=12.0.0
26
+ Requires-Dist: scipy>=1.9.0
27
+ Requires-Dist: typer[all]
28
+ Requires-Dist: uvicorn>=0.30.0
29
+ Provides-Extra: edge
30
+ Requires-Dist: pyserial>=3.5; extra == "edge"
31
+ Provides-Extra: reports
32
+ Requires-Dist: fpdf2>=2.8.0; extra == "reports"
33
+ Requires-Dist: matplotlib>=3.5.0; extra == "reports"
34
+ Requires-Dist: openpyxl>=3.0.0; extra == "reports"
35
+ Requires-Dist: pillow>=12.1.1; extra == "reports"
36
+ Requires-Dist: seaborn>=0.11.0; extra == "reports"
37
+ Provides-Extra: full
38
+ Requires-Dist: fpdf2>=2.8.0; extra == "full"
39
+ Requires-Dist: matplotlib>=3.5.0; extra == "full"
40
+ Requires-Dist: openpyxl>=3.0.0; extra == "full"
41
+ Requires-Dist: pyserial>=3.5; extra == "full"
42
+ Requires-Dist: pillow>=12.1.1; extra == "full"
43
+ Requires-Dist: seaborn>=0.11.0; extra == "full"
44
+ Provides-Extra: dev
45
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
46
+ Requires-Dist: hypothesis>=6.0.0; extra == "dev"
47
+ Requires-Dist: flake8; extra == "dev"
48
+ Requires-Dist: httpx>=0.27.0; extra == "dev"
49
+ Requires-Dist: mypy; extra == "dev"
50
+ Requires-Dist: pandas-stubs; extra == "dev"
51
+ Requires-Dist: types-PyYAML; extra == "dev"
52
+ Requires-Dist: types-psutil; extra == "dev"
53
+ Provides-Extra: torch
54
+ Requires-Dist: torch>=1.9.0; extra == "torch"
55
+ Provides-Extra: nightscout
56
+ Requires-Dist: py-nightscout; extra == "nightscout"
57
+ Provides-Extra: research
58
+ Requires-Dist: torch>=2.0.0; extra == "research"
59
+ Requires-Dist: pyarrow>=12.0.0; extra == "research"
60
+ Requires-Dist: h5py>=3.10.0; extra == "research"
61
+ Requires-Dist: onnx>=1.16.0; extra == "research"
62
+ Requires-Dist: onnxscript>=0.1.0; extra == "research"
63
+ Provides-Extra: mdmp
64
+ Requires-Dist: cryptography>=42.0.0; extra == "mdmp"
65
+ Dynamic: license-file
66
+
67
+ # IINTS-AF SDK
68
+ [![EUCYS 2026](https://img.shields.io/badge/EUCYS-2026%20Selected-gold?style=flat)](https://eucys.eu)
69
+ [![PyPI version](https://badge.fury.io/py/iints-sdk-python35.svg)](https://badge.fury.io/py/iints-sdk-python35)
70
+ [![Python Package CI](https://github.com/python35/IINTS-SDK/actions/workflows/python-package.yml/badge.svg)](https://github.com/python35/IINTS-SDK/actions/workflows/python-package.yml)
71
+ [![Docs](https://img.shields.io/badge/docs-IINTS--AF-0a66c2?style=flat&logo=firefox-browser&logoColor=white)](https://python35.github.io/IINTS-SDK/)
72
+
73
+ > "Code shouldn't be a secret when it's managing a life."
74
+
75
+ Insulin pumps make hundreds of autonomous decisions about drug delivery every day.
76
+ The algorithms behind those decisions are proprietary, unauditable, and difficult to inspect or improve, even by the patients whose lives depend on them.
77
+
78
+ IINTS-AF is an open-source research platform that changes that.
79
+
80
+ ## Core Research Question
81
+
82
+ **Can open-source simulation and deterministic safety supervision make insulin delivery algorithm development safer and more transparent for researchers and patients?**
83
+
84
+ ---
85
+
86
+ ## What It Does
87
+
88
+ **Simulate:** Run virtual patients through thousands of scenarios before any algorithm reaches a real device. A deterministic safety supervisor audits every AI decision. The AI may suggest. The supervisor decides.
89
+
90
+ **Certify:** Every dataset is fingerprinted and graded before it touches a study workflow. The goal is to keep benchmark inputs traceable, reviewable, and reproducible.
91
+
92
+ **Understand:** Generate audit-ready reports, visual posters, and local AI summaries from the same study bundle. IINTS-AF can use local models such as Ministral for explanation workflows on your own hardware.
93
+
94
+ ---
95
+
96
+ ## Research Results
97
+
98
+ Final locked benchmark: `3600` simulation runs, `6` profiles, `4` scenario families, `5` algorithms, `10` fixed seeds.
99
+
100
+ | Metric | ExampleAlgorithm | PID Baseline | Delta |
101
+ |---|---:|---:|---:|
102
+ | Time in Range | 87.16% | 83.72% | +3.44% |
103
+ | Time < 70 mg/dL | 1.28% | 5.25% | -3.97% |
104
+ | Supervisor interventions | 99 | 177 | -78 |
105
+
106
+ Additional benchmark result:
107
+ - clean certified conditions showed `+17.64` Time-in-Range points versus corrupted uncertified conditions
108
+
109
+ For the full scientific write-up, see:
110
+ - `research/EUCYS_REPORT.md`
111
+ - `research/EUCYS_REPORT.pdf`
112
+ - `results/eucys_2026/EUCYS_RESULTS/EUCYS_SUMMARY.md`
113
+
114
+ ---
115
+
116
+ ## Install
117
+
118
+ ```bash
119
+ python3 -m venv .venv && source .venv/bin/activate
120
+ pip install -U "iints-sdk-python35[full,mdmp]"
121
+ iints doctor --smoke-run
122
+ ```
123
+
124
+ **Edge devices (Raspberry Pi 5, Arduino UNO Q):**
125
+
126
+ ```bash
127
+ pip install -U "iints-sdk-python35[edge,mdmp]"
128
+ ```
129
+
130
+ ---
131
+
132
+ ## Quick Start
133
+
134
+ ```bash
135
+ iints quickstart --project-name my_study
136
+ cd my_study
137
+ iints presets run --name baseline_t1d --algo algorithms/example_algorithm.py
138
+ iints data certify contracts/clinical_mdmp_contract.yaml data/demo/diabetes_cgm.csv --output-json audit/certification.json
139
+ iints ai report results/<run_id>
140
+ ```
141
+
142
+ ---
143
+
144
+ ## Final Benchmark Workflow
145
+
146
+ ```bash
147
+ tools/research/run_eucys_final.sh \
148
+ --algo algorithms/example_algorithm.py \
149
+ --output-dir results/eucys_2026 \
150
+ --seeds 1,2,3,4,5,6,7,8,9,10
151
+ ```
152
+
153
+ Then render the report:
154
+
155
+ ```bash
156
+ tools/research/render_eucys_report_pdf.sh
157
+ ```
158
+
159
+ Main final artifacts:
160
+ - `results/eucys_2026/`
161
+ - `results/eucys_2026/EUCYS_RESULTS/EUCYS_MAIN_FIGURE.png`
162
+ - `results/eucys_2026/EUCYS_RESULTS/EUCYS_RESULTS_TABLE.csv`
163
+ - `research/EUCYS_REPORT.md`
164
+ - `research/EUCYS_REPORT.pdf`
165
+
166
+ ---
167
+
168
+ ## Live Digital Patient (Raspberry Pi)
169
+
170
+ ```bash
171
+ iints patient start \
172
+ --algo algorithms/example_algorithm.py \
173
+ --scenario-profile expo_hot_start \
174
+ --mode demo-time --speed 60x
175
+ ```
176
+
177
+ Open `http://127.0.0.1:8765/dashboard`. You will see a virtual patient running continuously, reacting to meals, exercise, and sleep in real time.
178
+
179
+ ---
180
+
181
+ ## Documentation
182
+
183
+ | | |
184
+ |---|---|
185
+ | Getting started | [Open guide](https://python35.github.io/IINTS-SDK/GETTING_STARTED/) |
186
+ | Edge hardware | [Open guide](https://python35.github.io/IINTS-SDK/EDGE_HARDWARE/) |
187
+ | Raspberry Pi setup | [Open guide](https://python35.github.io/IINTS-SDK/DIGITAL_PATIENT_PI/) |
188
+ | Data certification | [Open guide](https://python35.github.io/IINTS-SDK/MDMP_QUICKSTART/) |
189
+ | Full manual | [Open PDF manual](https://python35.github.io/IINTS-SDK/manuals/IINTS-AF_SDK_Manual.pdf) |
190
+ | Research report | [Open report source](research/EUCYS_REPORT.md) |
191
+
192
+ ---
193
+
194
+ > IINTS-AF is research software. Not a medical device.
195
+ > No clinical dosing advice. MIT Licensed.
196
+
197
+ ---
198
+
199
+ *Built by a 17-year-old with type 1 diabetes who wanted to
200
+ understand the device managing his life.*
@@ -0,0 +1,134 @@
1
+ # IINTS-AF SDK
2
+ [![EUCYS 2026](https://img.shields.io/badge/EUCYS-2026%20Selected-gold?style=flat)](https://eucys.eu)
3
+ [![PyPI version](https://badge.fury.io/py/iints-sdk-python35.svg)](https://badge.fury.io/py/iints-sdk-python35)
4
+ [![Python Package CI](https://github.com/python35/IINTS-SDK/actions/workflows/python-package.yml/badge.svg)](https://github.com/python35/IINTS-SDK/actions/workflows/python-package.yml)
5
+ [![Docs](https://img.shields.io/badge/docs-IINTS--AF-0a66c2?style=flat&logo=firefox-browser&logoColor=white)](https://python35.github.io/IINTS-SDK/)
6
+
7
+ > "Code shouldn't be a secret when it's managing a life."
8
+
9
+ Insulin pumps make hundreds of autonomous decisions about drug delivery every day.
10
+ The algorithms behind those decisions are proprietary, unauditable, and difficult to inspect or improve, even by the patients whose lives depend on them.
11
+
12
+ IINTS-AF is an open-source research platform that changes that.
13
+
14
+ ## Core Research Question
15
+
16
+ **Can open-source simulation and deterministic safety supervision make insulin delivery algorithm development safer and more transparent for researchers and patients?**
17
+
18
+ ---
19
+
20
+ ## What It Does
21
+
22
+ **Simulate:** Run virtual patients through thousands of scenarios before any algorithm reaches a real device. A deterministic safety supervisor audits every AI decision. The AI may suggest. The supervisor decides.
23
+
24
+ **Certify:** Every dataset is fingerprinted and graded before it touches a study workflow. The goal is to keep benchmark inputs traceable, reviewable, and reproducible.
25
+
26
+ **Understand:** Generate audit-ready reports, visual posters, and local AI summaries from the same study bundle. IINTS-AF can use local models such as Ministral for explanation workflows on your own hardware.
27
+
28
+ ---
29
+
30
+ ## Research Results
31
+
32
+ Final locked benchmark: `3600` simulation runs, `6` profiles, `4` scenario families, `5` algorithms, `10` fixed seeds.
33
+
34
+ | Metric | ExampleAlgorithm | PID Baseline | Delta |
35
+ |---|---:|---:|---:|
36
+ | Time in Range | 87.16% | 83.72% | +3.44% |
37
+ | Time < 70 mg/dL | 1.28% | 5.25% | -3.97% |
38
+ | Supervisor interventions | 99 | 177 | -78 |
39
+
40
+ Additional benchmark result:
41
+ - clean certified conditions showed `+17.64` Time-in-Range points versus corrupted uncertified conditions
42
+
43
+ For the full scientific write-up, see:
44
+ - `research/EUCYS_REPORT.md`
45
+ - `research/EUCYS_REPORT.pdf`
46
+ - `results/eucys_2026/EUCYS_RESULTS/EUCYS_SUMMARY.md`
47
+
48
+ ---
49
+
50
+ ## Install
51
+
52
+ ```bash
53
+ python3 -m venv .venv && source .venv/bin/activate
54
+ pip install -U "iints-sdk-python35[full,mdmp]"
55
+ iints doctor --smoke-run
56
+ ```
57
+
58
+ **Edge devices (Raspberry Pi 5, Arduino UNO Q):**
59
+
60
+ ```bash
61
+ pip install -U "iints-sdk-python35[edge,mdmp]"
62
+ ```
63
+
64
+ ---
65
+
66
+ ## Quick Start
67
+
68
+ ```bash
69
+ iints quickstart --project-name my_study
70
+ cd my_study
71
+ iints presets run --name baseline_t1d --algo algorithms/example_algorithm.py
72
+ iints data certify contracts/clinical_mdmp_contract.yaml data/demo/diabetes_cgm.csv --output-json audit/certification.json
73
+ iints ai report results/<run_id>
74
+ ```
75
+
76
+ ---
77
+
78
+ ## Final Benchmark Workflow
79
+
80
+ ```bash
81
+ tools/research/run_eucys_final.sh \
82
+ --algo algorithms/example_algorithm.py \
83
+ --output-dir results/eucys_2026 \
84
+ --seeds 1,2,3,4,5,6,7,8,9,10
85
+ ```
86
+
87
+ Then render the report:
88
+
89
+ ```bash
90
+ tools/research/render_eucys_report_pdf.sh
91
+ ```
92
+
93
+ Main final artifacts:
94
+ - `results/eucys_2026/`
95
+ - `results/eucys_2026/EUCYS_RESULTS/EUCYS_MAIN_FIGURE.png`
96
+ - `results/eucys_2026/EUCYS_RESULTS/EUCYS_RESULTS_TABLE.csv`
97
+ - `research/EUCYS_REPORT.md`
98
+ - `research/EUCYS_REPORT.pdf`
99
+
100
+ ---
101
+
102
+ ## Live Digital Patient (Raspberry Pi)
103
+
104
+ ```bash
105
+ iints patient start \
106
+ --algo algorithms/example_algorithm.py \
107
+ --scenario-profile expo_hot_start \
108
+ --mode demo-time --speed 60x
109
+ ```
110
+
111
+ Open `http://127.0.0.1:8765/dashboard`. You will see a virtual patient running continuously, reacting to meals, exercise, and sleep in real time.
112
+
113
+ ---
114
+
115
+ ## Documentation
116
+
117
+ | | |
118
+ |---|---|
119
+ | Getting started | [Open guide](https://python35.github.io/IINTS-SDK/GETTING_STARTED/) |
120
+ | Edge hardware | [Open guide](https://python35.github.io/IINTS-SDK/EDGE_HARDWARE/) |
121
+ | Raspberry Pi setup | [Open guide](https://python35.github.io/IINTS-SDK/DIGITAL_PATIENT_PI/) |
122
+ | Data certification | [Open guide](https://python35.github.io/IINTS-SDK/MDMP_QUICKSTART/) |
123
+ | Full manual | [Open PDF manual](https://python35.github.io/IINTS-SDK/manuals/IINTS-AF_SDK_Manual.pdf) |
124
+ | Research report | [Open report source](research/EUCYS_REPORT.md) |
125
+
126
+ ---
127
+
128
+ > IINTS-AF is research software. Not a medical device.
129
+ > No clinical dosing advice. MIT Licensed.
130
+
131
+ ---
132
+
133
+ *Built by a 17-year-old with type 1 diabetes who wanted to
134
+ understand the device managing his life.*
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "iints-sdk-python35"
7
- version = "1.5.3"
7
+ version = "1.5.4"
8
8
  authors = [
9
9
  { name="Rune Bobbaers", email="rune.bobbaers@gmail.com" },
10
10
  ]
@@ -11,7 +11,7 @@ except ImportError: # pragma: no cover - Python < 3.8 fallback
11
11
  try:
12
12
  __version__ = version("iints-sdk-python35")
13
13
  except PackageNotFoundError: # pragma: no cover - source tree fallback
14
- __version__ = "1.5.3"
14
+ __version__ = "1.5.4"
15
15
 
16
16
  # Note to developers: this SDK is currently maintained by a single author.
17
17
  # Please report bugs via GitHub issues and feel free to contribute fixes via PRs.
@@ -160,7 +160,7 @@ def _render_local_check(console: Console, status: dict[str, object]) -> None:
160
160
  console.print("[bold red]Ollama is too old for the open Ministral 3 runtime.[/bold red]")
161
161
 
162
162
 
163
- @app.command("models")
163
+ @app.command(name="models")
164
164
  def models() -> None:
165
165
  console = Console()
166
166
  table = Table(title="IINTS AI Local Mistral Model Guide")
@@ -189,7 +189,7 @@ def models() -> None:
189
189
  )
190
190
 
191
191
 
192
- @app.command("prepare")
192
+ @app.command(name="prepare")
193
193
  def prepare(
194
194
  run_dir: Annotated[Path, typer.Argument(help="Run output directory containing results.csv and run_metadata.json.")],
195
195
  create_dev_mdmp_cert: Annotated[
@@ -254,7 +254,7 @@ def _build_assistant(
254
254
  )
255
255
 
256
256
 
257
- @app.command("local-check")
257
+ @app.command(name="local-check")
258
258
  def local_check(
259
259
  model: Annotated[str, typer.Option(help="Ollama model name to validate locally.")] = DEFAULT_MINISTRAL_MODEL,
260
260
  ollama_host: Annotated[Optional[str], typer.Option(help="Override the Ollama base URL.")] = None,
@@ -294,7 +294,7 @@ def local_check(
294
294
  raise typer.Exit(code=1)
295
295
 
296
296
 
297
- @app.command("explain")
297
+ @app.command(name="explain")
298
298
  def explain(
299
299
  input_json: Annotated[Path, typer.Argument(help="Prepared run directory or JSON file with a single simulation step or decision context.")],
300
300
  mdmp_cert: Annotated[Optional[Path], typer.Option(help="Signed MDMP artifact required before AI analysis can run.")] = None,
@@ -335,7 +335,7 @@ def explain(
335
335
  raise typer.Exit(code=1)
336
336
 
337
337
 
338
- @app.command("trends")
338
+ @app.command(name="trends")
339
339
  def trends(
340
340
  input_json: Annotated[Path, typer.Argument(help="Prepared run directory or JSON file with glucose trace data or a run payload.")],
341
341
  mdmp_cert: Annotated[Optional[Path], typer.Option(help="Signed MDMP artifact required before AI analysis can run.")] = None,
@@ -376,7 +376,7 @@ def trends(
376
376
  raise typer.Exit(code=1)
377
377
 
378
378
 
379
- @app.command("anomalies")
379
+ @app.command(name="anomalies")
380
380
  def anomalies(
381
381
  input_json: Annotated[Path, typer.Argument(help="Prepared run directory or JSON file with simulation results or run summary.")],
382
382
  mdmp_cert: Annotated[Optional[Path], typer.Option(help="Signed MDMP artifact required before AI analysis can run.")] = None,
@@ -417,7 +417,7 @@ def anomalies(
417
417
  raise typer.Exit(code=1)
418
418
 
419
419
 
420
- @app.command("report")
420
+ @app.command(name="report")
421
421
  def report(
422
422
  input_json: Annotated[Path, typer.Argument(help="Prepared run directory or JSON file with run-level simulation outputs.")],
423
423
  mdmp_cert: Annotated[Optional[Path], typer.Option(help="Signed MDMP artifact required before AI analysis can run.")] = None,
@@ -458,7 +458,7 @@ def report(
458
458
  raise typer.Exit(code=1)
459
459
 
460
460
 
461
- @app.command("review")
461
+ @app.command(name="review")
462
462
  def review(
463
463
  input_json: Annotated[Path, typer.Argument(help="Prepared run directory or JSON file with run-level simulation outputs.")],
464
464
  mdmp_cert: Annotated[Optional[Path], typer.Option(help="Signed MDMP artifact required before AI analysis can run.")] = None,
@@ -15,6 +15,12 @@ from .study_protocol import (
15
15
  render_study_protocol_markdown,
16
16
  write_study_protocol_bundle,
17
17
  )
18
+ from .study_experiment import (
19
+ StudyExperimentConfig,
20
+ build_study_experiment_template,
21
+ load_study_experiment_config,
22
+ render_study_experiment_yaml,
23
+ )
18
24
  from .study_analysis import (
19
25
  analyze_run_directory,
20
26
  analyze_study_directory,
@@ -112,8 +118,11 @@ __all__ = [
112
118
  "build_algorithm_registry",
113
119
  "build_study_design_payload",
114
120
  "build_study_protocol_payload",
121
+ "build_study_experiment_template",
115
122
  "render_study_protocol_markdown",
123
+ "render_study_experiment_yaml",
116
124
  "write_study_protocol_bundle",
125
+ "load_study_experiment_config",
117
126
  "load_study_summary",
118
127
  "quality_badges_for_metrics",
119
128
  "run_baseline_comparison",
@@ -121,6 +130,7 @@ __all__ = [
121
130
  "StudyArmSpec",
122
131
  "StudyComparison",
123
132
  "StudyDesignPayload",
133
+ "StudyExperimentConfig",
124
134
  "StudyMatrixRow",
125
135
  "StudyProfileSpec",
126
136
  "StudyRunSummary",
@@ -8,6 +8,7 @@ import pandas as pd
8
8
 
9
9
  from iints.analysis.clinical_metrics import ClinicalMetricsCalculator
10
10
  from iints.api.base_algorithm import InsulinAlgorithm
11
+ from iints.core.algorithms.clinical_baseline import ClinicalBaselineAlgorithm
11
12
  from iints.core.algorithms.pid_controller import PIDController
12
13
  from iints.core.algorithms.standard_pump_algo import StandardPumpAlgorithm
13
14
  from iints.core.patient.models import PatientModel
@@ -51,7 +52,10 @@ def run_baseline_comparison(
51
52
  }
52
53
  )
53
54
 
54
- baselines: List[Tuple[str, InsulinAlgorithm]] = [("Standard PID", PIDController())]
55
+ baselines: List[Tuple[str, InsulinAlgorithm]] = [
56
+ ("Clinical Baseline", ClinicalBaselineAlgorithm()),
57
+ ("Standard PID", PIDController()),
58
+ ]
55
59
  if compare_standard_pump:
56
60
  baselines.append(("Standard Pump", StandardPumpAlgorithm()))
57
61
 
@@ -43,7 +43,7 @@ def _round(value: Any, digits: int = 2) -> float | int | None:
43
43
  return None
44
44
  try:
45
45
  number = float(value)
46
- except Exception:
46
+ except (TypeError, ValueError, OverflowError):
47
47
  return None
48
48
  if math.isnan(number) or math.isinf(number):
49
49
  return None
@@ -70,7 +70,7 @@ def build_eucys_abstract_draft_markdown() -> str:
70
70
  "",
71
71
  "The central research question is whether a transparent, safety-first benchmark can evaluate candidate insulin-decision algorithms more rigorously than isolated demo runs or single-metric comparisons. "
72
72
  "The platform combines virtual patient simulation, baseline comparison, safety-layer analysis, protocol bundles, subgroup summaries, and exportable study artifacts. "
73
- "Instead of showing one favorable run, IINTS-AF compares a candidate algorithm against classical baselines such as `PID Controller`, `Standard Pump`, and `Correction Bolus` across predefined patient profiles, scenario families, and random seeds.",
73
+ "Instead of showing one favorable run, IINTS-AF compares a candidate algorithm against classical baselines such as `Clinical Baseline`, `PID Controller`, `Standard Pump`, and `Correction Bolus` across predefined patient profiles, scenario families, and random seeds.",
74
74
  "",
75
75
  "In the final benchmark bundle, the platform evaluated **[RUN_COUNT]** runs across **[PROFILE_COUNT]** patient profiles, **[SCENARIO_COUNT]** scenario families, and **[ALGORITHM_COUNT]** algorithms. "
76
76
  "The candidate algorithm achieved **[CANDIDATE_TIR]%** time in range compared with **[BASELINE_TIR]%** for the strongest baseline, while the safety analysis showed **[SAFETY_RESULT]**. "
@@ -235,7 +235,7 @@ def build_eucys_filled_abstract_markdown(
235
235
  "In this project, I developed **IINTS-AF**, a simulation-first benchmark platform for testing insulin-decision algorithms under fixed study protocols.",
236
236
  "",
237
237
  "The platform combines virtual patient simulation, baseline comparison, safety-layer analysis, protocol bundles, subgroup summaries, and exportable study artifacts. "
238
- "Instead of showing a single favorable run, IINTS-AF compares a candidate algorithm against classical baselines such as `PID Controller`, `Standard Pump`, and `Correction Bolus` across predefined profiles, scenario families, and random seeds.",
238
+ "Instead of showing a single favorable run, IINTS-AF compares a candidate algorithm against classical baselines such as `Clinical Baseline`, `PID Controller`, `Standard Pump`, and `Correction Bolus` across predefined profiles, scenario families, and random seeds.",
239
239
  "",
240
240
  f"In the current benchmark bundle, the platform evaluated **{run_count}** runs across **{counts['profile_count']}** patient profiles, **{counts['scenario_count']}** scenario families, and **{counts['algorithm_count']}** algorithms. "
241
241
  f"In the clean certified arm, **{candidate_name}** achieved **{candidate_tir}** time in range compared with **{baseline_tir}** for **{strongest_baseline}**, while the safety layer recorded **{safety_result}**. "
@@ -1,11 +1,17 @@
1
+ from __future__ import annotations
2
+
3
+ import json
4
+ import logging
1
5
  import time
2
6
  import subprocess
3
7
  import threading
4
8
  import psutil
5
- import json
6
9
  from typing import Dict, List, Optional
7
10
  from dataclasses import dataclass, asdict
8
11
 
12
+
13
+ logger = logging.getLogger(__name__)
14
+
9
15
  @dataclass
10
16
  class PerformanceMetrics:
11
17
  timestamp: float
@@ -32,7 +38,8 @@ class HardwareBenchmark:
32
38
  with open('/proc/device-tree/model', 'r') as f:
33
39
  model = f.read().strip()
34
40
  return 'jetson' in model.lower()
35
- except:
41
+ except (FileNotFoundError, OSError, ValueError) as exc:
42
+ logger.debug("Jetson detection unavailable: %s", exc)
36
43
  return False
37
44
 
38
45
  def _get_tegrastats_metrics(self) -> Optional[Dict]:
@@ -51,8 +58,11 @@ class HardwareBenchmark:
51
58
  line = lines[-1] # Get last line
52
59
  # This is a simplified parser - real implementation would be more robust
53
60
  return {"raw_tegrastats": line}
54
- except:
55
- pass
61
+ logger.debug("tegrastats exited with non-zero status: %s", result.returncode)
62
+ except subprocess.TimeoutExpired as exc:
63
+ logger.debug("tegrastats timed out: %s", exc)
64
+ except (FileNotFoundError, OSError, ValueError) as exc:
65
+ logger.debug("tegrastats unavailable: %s", exc)
56
66
  return None
57
67
 
58
68
  def _collect_metrics(self) -> PerformanceMetrics:
@@ -82,8 +92,8 @@ class HardwareBenchmark:
82
92
  with open('/sys/class/thermal/thermal_zone0/temp', 'r') as f:
83
93
  temp_millicelsius = int(f.read().strip())
84
94
  temperature = temp_millicelsius / 1000.0
85
- except:
86
- pass
95
+ except (FileNotFoundError, OSError, ValueError) as exc:
96
+ logger.debug("temperature probe unavailable: %s", exc)
87
97
 
88
98
  return PerformanceMetrics(
89
99
  timestamp=timestamp,
@@ -218,4 +228,4 @@ class HardwareBenchmark:
218
228
 
219
229
  def clear_metrics(self):
220
230
  """Clear collected metrics."""
221
- self.metrics_history.clear()
231
+ self.metrics_history.clear()
@@ -1,5 +1,6 @@
1
1
  import os
2
2
  import tempfile
3
+ import logging
3
4
  from pathlib import Path
4
5
  from typing import Any, Dict, Optional
5
6
 
@@ -14,6 +15,8 @@ from fpdf.enums import XPos, YPos
14
15
  from iints.analysis.clinical_metrics import ClinicalMetricsCalculator
15
16
  from iints.utils.plotting import apply_plot_style
16
17
 
18
+ logger = logging.getLogger("iints")
19
+
17
20
 
18
21
  class ClinicalReportGenerator:
19
22
  """Generate a clean, publication-ready PDF report."""
@@ -41,8 +44,8 @@ class ClinicalReportGenerator:
41
44
  x_pos = pdf.w - pdf.r_margin - logo_width
42
45
  y_pos = 6
43
46
  pdf.image(str(logo_path), x=x_pos, y=y_pos, w=logo_width)
44
- except Exception:
45
- # Fallback silently if image fails to load
47
+ except (OSError, RuntimeError, ValueError) as exc:
48
+ logger.debug("Skipping report logo render: %s", exc)
46
49
  return
47
50
 
48
51
  def _plot_glucose(self, df: pd.DataFrame, output_path: Path) -> None:
@@ -9,6 +9,7 @@ from iints.scenarios.study_pack import build_eucys_study_pack
9
9
 
10
10
  DEFAULT_PROFILE_SET = "clinic_safe_core"
11
11
  DEFAULT_BASELINE_ALGORITHMS = [
12
+ "Clinical Baseline",
12
13
  "PID Controller",
13
14
  "Standard Pump",
14
15
  "Correction Bolus",