From c891eb5761ed327a303218cc266ab4c3722571f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20D=2E=20Ot=C3=A1lvaro?= Date: Mon, 17 Nov 2025 13:06:18 +0000 Subject: [PATCH 1/2] some methods needed in hermes --- Cargo.toml | 3 ++- src/routines/output/mod.rs | 12 ++++++++++++ src/routines/output/predictions.rs | 4 ++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b8de530fb..7cf93ae3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,8 @@ tracing-subscriber = { version = "0.3.19", features = [ ] } faer = "0.23.1" faer-ext = { version = "0.7.1", features = ["nalgebra", "ndarray"] } -pharmsol = "=0.20.0" +pharmsol = "=0.21.0" +# pharmsol = {path = "../pharmsol"} rand = "0.9.0" anyhow = "1.0.100" rayon = "1.10.0" diff --git a/src/routines/output/mod.rs b/src/routines/output/mod.rs index 34f968493..2a9e43d69 100644 --- a/src/routines/output/mod.rs +++ b/src/routines/output/mod.rs @@ -98,6 +98,18 @@ impl NPResult { &self.theta } + pub fn data(&self) -> &Data { + &self.data + } + + pub fn cycle_log(&self) -> &CycleLog { + &self.cyclelog + } + + pub fn settings(&self) -> &Settings { + &self.settings + } + /// Get the [Psi] structure pub fn psi(&self) -> &Psi { &self.psi diff --git a/src/routines/output/predictions.rs b/src/routines/output/predictions.rs index d0efc06ba..64f78e41b 100644 --- a/src/routines/output/predictions.rs +++ b/src/routines/output/predictions.rs @@ -64,6 +64,10 @@ impl NPPredictionRow { pub fn post_median(&self) -> f64 { self.post_median } + + pub fn censoring(&self) -> Censor { + self.cens + } } #[derive(Debug, Clone, Serialize, Deserialize)] From a34f51d545b7c770ffed0ff2fd26db25b3f079c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20D=2E=20Ot=C3=A1lvaro?= Date: Mon, 17 Nov 2025 13:07:08 +0000 Subject: [PATCH 2/2] clean --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7cf93ae3e..164c98b25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,6 @@ tracing-subscriber = { version = "0.3.19", features = [ faer = "0.23.1" faer-ext = { version = "0.7.1", features = ["nalgebra", "ndarray"] } pharmsol = "=0.21.0" -# pharmsol = {path = "../pharmsol"} rand = "0.9.0" anyhow = "1.0.100" rayon = "1.10.0"