From 51df68cf2178aacaaefe3e78dc14f6d0013f95fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net> Date: Thu, 5 Oct 2023 13:13:18 +0200 Subject: [PATCH] hotfix for capacitysampling --- src/Dataloaders.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dataloaders.jl b/src/Dataloaders.jl index 8876ed5..2e7f50b 100644 --- a/src/Dataloaders.jl +++ b/src/Dataloaders.jl @@ -767,7 +767,7 @@ end presample(_, ::Nothing, _, _, counts) = (0, sum(values(counts))) presample(_, cumulatedcount, _, _, counts) = (sum(cumulatedcount), sum(values(counts))) -struct CapacitySampling <: RatioBasedSampling +mutable struct CapacitySampling <: RatioBasedSampling selectors maxcount::Integer rng -- GitLab