Add variant field

Thu, 25 Apr 2024 14:57:54 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Thu, 25 Apr 2024 14:57:54 -0500
changeset 43
b1e4b1d2ef56
parent 42
ddcf355f0b2d
child 44
7fb55885d85f

Add variant field

src/Run.jl file | annotate | diff | comparison | revisions
--- a/src/Run.jl	Thu Apr 25 14:54:34 2024 -0500
+++ b/src/Run.jl	Thu Apr 25 14:57:54 2024 -0500
@@ -94,6 +94,9 @@
     else
         e.mod.identifier
     end
+    if haskey(p, :variant)
+        id *= "_" * p.variant
+    end
     # return "$(ig.name)_$(e.mod.identifier)_$(@sprintf "%x" hash(p))"
     return "$(ig.name)_$(id)_$(Int64(100*p.α))_$(Int64(10000*p.σ₀))_$(Int64(10000*p.τ₀))"
 end

mercurial