From b5cadefca9e1764ffb9285888bb6063cafdccad3 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 17 Dec 2020 15:24:23 +0100 Subject: [PATCH] Allow a space before time tag This matches the fortran format for creams --- garlic/pp/timetable.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garlic/pp/timetable.nix b/garlic/pp/timetable.nix index 021d64d..586d407 100644 --- a/garlic/pp/timetable.nix +++ b/garlic/pp/timetable.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation { cd ${inputResult}/$exp/$unit conf=garlic_config.json for run in $(ls -d [0-9]* | sort -n); do - time=$(awk '/^time /{print $2}' $run/stdout.log) + time=$(awk '/^ ?time /{print $2}' $run/stdout.log) jq -cn "{ exp:\"$exp\", unit:\"$unit\", config:inputs, time:$time, run:$run }" $conf >> $out done done