Skip to content

Commit

Permalink
Pad times also when writing the weights (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored May 24, 2021
1 parent e55a72b commit 54fe391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/model/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 54fe391

Please sign in to comment.