From 20452c42f787df5a70d9162f7a8e2efaf6997390 Mon Sep 17 00:00:00 2001 From: Hsin-Fang Chiang Date: Fri, 19 Jan 2024 14:14:59 -0800 Subject: [PATCH] Do not assume home folder --- prompt-processing/groups.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prompt-processing/groups.ipynb b/prompt-processing/groups.ipynb index bf82fc9..9f9a054 100644 --- a/prompt-processing/groups.ipynb +++ b/prompt-processing/groups.ipynb @@ -448,7 +448,7 @@ "metadata": {}, "outputs": [], "source": [ - "!realpath ~" + "!/sdf/data/rubin/user/hchiang2/times_square/logcli-linux-amd64 --help " ] }, { @@ -467,7 +467,7 @@ "outputs": [], "source": [ "def get_loki_command_with_phrase(time_start, time_end, phrase, extra=\"\"):\n", - " command = f\"\"\"~/binaries/logcli-linux-amd64 --output=jsonl --tls-skip-verify query --addr=http://sdfloki.slac.stanford.edu:80 --timezone=UTC -q --limit=200 --from=\"{time_start}\" --to=\"{time_end}\" --proxy-url=http://sdfproxy.sdf.slac.stanford.edu:3128 '{{namespace=\"vcluster--usdf-prompt-processing\", container=\"user-container\", pod=~\"prompt-proto-service-.+\"}} |~ \"{phrase}\" {extra} ' \"\"\"\n", + " command = f\"\"\"/sdf/home/h/hchiang2/binaries/logcli-linux-amd64 --output=jsonl --tls-skip-verify query --addr=http://sdfloki.slac.stanford.edu:80 --timezone=UTC -q --limit=200 --from=\"{time_start}\" --to=\"{time_end}\" --proxy-url=http://sdfproxy.sdf.slac.stanford.edu:3128 '{{namespace=\"vcluster--usdf-prompt-processing\", container=\"user-container\", pod=~\"prompt-proto-service-.+\"}} |~ \"{phrase}\" {extra} ' \"\"\"\n", " return command" ] },