From a6815dc7cf1390f0175727f9866dafb4ee98bf55 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 3 Mar 2021 12:41:31 +0100 Subject: [PATCH] fig: add article figure directory --- garlic/fig/index.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/garlic/fig/index.nix b/garlic/fig/index.nix index bb0e052..8d9af00 100644 --- a/garlic/fig/index.nix +++ b/garlic/fig/index.nix @@ -11,6 +11,7 @@ let exp = garlic.exp; pp = garlic.pp; ds = garlic.ds; + fig = garlic.fig; stdPlot = rScript: expList: rPlot { script = rScript; @@ -21,6 +22,11 @@ let script = rScript; dataset = dataset; }; + + linkTree = name: tree: self.linkFarm name ( + self.lib.mapAttrsToList ( + name: value: { name=name; path=value; } + ) tree); in { nbody = with exp.nbody; { @@ -55,4 +61,12 @@ in bw = customPlot ./osu/bw.R (ds.osu.bw bw.result); bwShm = customPlot ./osu/bw.R (ds.osu.bw bwShm.result); }; + + # The figures used in the article contained in a directory per figure + article = with fig; linkTree "article-fig" { + "osu/latency" = osu.latency; + "osu/latencyMt" = osu.latencyMt; + "osu/bw" = osu.bw; + "osu/bwShm" = osu.bwShm; + }; }