Blood test spreadsheets: ferritin, Hb, iron in the health section
- sources/labs.py reads .xlsx/.csv sheets with a Date column; columns are recognised by header (ferritin, Hb, serum iron, transferrin saturation), with the lab's reference range and the user's Min/Max target. Formula cells are skipped. - Importing a sheet from disk remembers it in settings "lab_files"; every dashboard build reads it again. Editable in the app's settings. - Dashboard: ferritin chart (log scale, main lab as a line, a second lab as points, target range dashed), results table and a finding. - openpyxl added as a dependency and to the installer bundle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ for pkg in ('webview', 'clr_loader', 'pythonnet', 'garminconnect', 'curl_cffi',
|
||||
d, b, h = collect_all(pkg); datas += d; binaries += b; hidden += h
|
||||
|
||||
a = Analysis(['launcher.py'], pathex=['../src'], binaries=binaries, datas=datas,
|
||||
hiddenimports=hidden + ['mygarmin.sources.garmin_api', 'mygarmin.sources.watch', 'mygarmin.cli', 'mygarmin.export', 'mygarmin.report', 'mygarmin.dedupe', 'clr'],
|
||||
hiddenimports=hidden + ['mygarmin.sources.garmin_api', 'mygarmin.sources.watch', 'mygarmin.cli', 'mygarmin.export', 'mygarmin.report', 'mygarmin.dedupe', 'mygarmin.sources.labs', 'openpyxl', 'clr'],
|
||||
excludes=['tkinter', 'matplotlib', 'pandas', 'PIL', 'pytest'], noarchive=False)
|
||||
pyz = PYZ(a.pure)
|
||||
exe = EXE(pyz, a.scripts, [], exclude_binaries=True, name='myGarmin', icon='myGarmin.ico',
|
||||
|
||||
Reference in New Issue
Block a user