From 54fe3912a79f82f33dd04d9e6376c18a023ea40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Mon, 24 May 2021 10:34:40 +0100 Subject: [PATCH] Pad times also when writing the weights (#191) --- test/model/model.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/model/model.jl b/test/model/model.jl index 3e1b0a10..6bf96aaf 100644 --- a/test/model/model.jl +++ b/test/model/model.jl @@ -593,7 +593,7 @@ end function write_weights(file::HDF5.File, weights::AbstractVector, unit::String, it::Int, params::ModelParameters) group_name = "weights" - dataset_name = "t" * string(it) + dataset_name = "t" * lpad(string(it),4,'0') group, subgroup = ParticleDA.create_or_open_group(file, group_name)