From 42b8ef79fc3c4eebea65cc7d89c9992e3ec1b66c Mon Sep 17 00:00:00 2001 From: niklasmueboe Date: Mon, 28 Oct 2024 15:00:29 +0100 Subject: [PATCH] fix serialization --- src/gridcounts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gridcounts.rs b/src/gridcounts.rs index e46e46a..d24a20d 100644 --- a/src/gridcounts.rs +++ b/src/gridcounts.rs @@ -258,7 +258,7 @@ impl GridCounts { self.counts = counts; self.shape = shape; self.resolution = resolution; - self.set_n_threads(n_threads)?; + self.set_n_threads(Some(n_threads))?; Ok(()) }