From 0a12aaf4355b2eba7b1156be0b8e24cedaf536e0 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 9 May 2025 19:01:36 +0100 Subject: [PATCH 1/2] Add fields to docstring for AD test utils --- src/test_utils/ad.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test_utils/ad.jl b/src/test_utils/ad.jl index d38915c12..8c926723a 100644 --- a/src/test_utils/ad.jl +++ b/src/test_utils/ad.jl @@ -26,6 +26,9 @@ const REFERENCE_ADTYPE = AutoForwardDiff() Exception thrown when an AD backend returns an incorrect value or gradient. The type parameter `T` is the numeric type of the value and gradient. + +# Fields +$(TYPEDFIELDS) """ struct ADIncorrectException{T<:AbstractFloat} <: Exception value_expected::T @@ -41,6 +44,9 @@ Data structure to store the results of the AD correctness test. The type parameter `Tparams` is the numeric type of the parameters passed in; `Tresult` is the type of the value and the gradient. + +# Fields +$(TYPEDFIELDS) """ struct ADResult{Tparams<:AbstractFloat,Tresult<:AbstractFloat} "The DynamicPPL model that was tested" From 85949efe20902a0a68ddba49036f0107cb1ebf86 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 9 May 2025 19:02:06 +0100 Subject: [PATCH 2/2] Bump patch --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 83b1fe335..860ece8b3 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "DynamicPPL" uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8" -version = "0.36.1" +version = "0.36.2" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"