Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[default.extend-words]
# evn = short for "event name" (loop variable) in the verbatim cohort check
# scripts (scripts/cohort/cohort_check_mimic.py and cohort_check_eicu.py),
# not a typo for "even". These files cannot be edited without redefining the
# published cohort groups; see the header comment in each file.
evn = "evn"
# ND = MIMIC-IV prescription route abbreviation (nasal, with NU/NS/NAS) in
# odyssey/data/concepts.py's ANTIBIOTIC_ROUTE_EXCLUDE, not a typo for "AND".
ND = "ND"
Expand Down
21 changes: 18 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
# MIMIC-IV -> MEDS extraction (hosp + icu modules; ED not yet covered upstream)
"MIMIC_IV_MEDS",
# Used directly (not just transitively via MIMIC_IV_MEDS) for concept labeling.
"polars>=1.44.1",
"polars>=1.44.2",
# Model dev. Mac (local, CPU/MPS) installs plain torch, floating freely.
# On the GCP A100 host, torch is pinned to an exact cu124 build and
# mamba-ssm (below) to an exact version -- discovered the hard way that
Expand Down Expand Up @@ -106,7 +106,7 @@ gemini = [
# dependencies above) since run.sh's minimal extract-node install is
# `--no-deps` + this extra only, and skips the base dependency list
# entirely.
"polars>=1.44.1",
"polars>=1.44.2",
]

# TabICLv2 in-context-learning baseline (odyssey/inference/tabicl_baseline.py),
Expand Down Expand Up @@ -222,7 +222,7 @@ explicit = true
# Same reason as the ruff exclude above: these two ran on the VMs and
# are committed verbatim, so they cannot be annotated without editing
# the code that produced the published table.
exclude = "^scripts/cohort/cohort_check_(mimic|eicu)\\.py$"
exclude = "cohort_check_(mimic|eicu)\\.py$"
ignore_missing_imports = true
install_types = true
pretty = true
Expand All @@ -244,6 +244,21 @@ implicit_reexport = false
strict_equality = true
extra_checks = true

# The cohort check scripts are committed verbatim as they ran on the VM.
# They cannot be annotated without redefining the published cohort groups.
# polars 1.44.2 tightened quantile()'s return type to float | None, which
# triggers new mypy errors in these files. The exclude above handles file
# discovery; this override silences errors when pre-commit passes the files
# explicitly on the command line (mypy ignores exclude for explicit args).
[[tool.mypy.overrides]]
module = [
"cohort_check_mimic",
"cohort_check_eicu",
"scripts.cohort.cohort_check_mimic",
"scripts.cohort.cohort_check_eicu",
]
ignore_errors = true

[tool.ruff]
include = ["*.py", "pyproject.toml", "*.ipynb"]
exclude = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@
"n_positive_gaps": 3639349
},
"tail_slice": null
}
}
2 changes: 1 addition & 1 deletion scripts/gemini/out/evals/gemini_full_DEC_v12_alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -1913,4 +1913,4 @@
},
"landmark_protocol_version": 4
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -1913,4 +1913,4 @@
},
"landmark_protocol_version": 4
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -13011,4 +13011,4 @@
"mean_activation": 0.4445817383871991
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -543,4 +543,4 @@
},
"value_metrics": null,
"tail_slice": null
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14428,4 +14428,4 @@
"sign_agreement": 1.0
}
]
}
}
2 changes: 1 addition & 1 deletion scripts/gemini/out/evals/gemini_full_v10_15c_alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -1913,4 +1913,4 @@
},
"landmark_protocol_version": 4
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -704,4 +704,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,4 @@
},
"value_metrics": null,
"tail_slice": null
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@
"n_boot": 2000
}
}
}
}
2 changes: 1 addition & 1 deletion scripts/gemini/out/evals/gemini_smoke_2_eval_forecast.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@
"n_positive_gaps": 3639349
},
"tail_slice": null
}
}
34 changes: 17 additions & 17 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading