From 13b31cd5c5a336d1b58f80f01fcbab8e9ca2ced8 Mon Sep 17 00:00:00 2001 From: Kirk Byers Date: Tue, 17 Dec 2024 10:31:34 -0800 Subject: [PATCH] Trying to fix notebook dict sort issue --- docs/tutorial/processors.ipynb | 78 +++++++++++++++++----------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/docs/tutorial/processors.ipynb b/docs/tutorial/processors.ipynb index f170de09..e15623eb 100644 --- a/docs/tutorial/processors.ipynb +++ b/docs/tutorial/processors.ipynb @@ -234,117 +234,117 @@ "output_type": "stream", "text": [ "{\n", - " \"hi!\": {\n", + " \"bye!\": {\n", " \"started\": true,\n", " \"host1.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is host1.cmh\"\n", + " \"result\": \"bye! my name is host1.cmh\"\n", " },\n", " \"host2.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is host2.cmh\"\n", + " \"result\": \"bye! my name is host2.cmh\"\n", " },\n", " \"spine00.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is spine00.cmh\"\n", + " \"result\": \"bye! my name is spine00.cmh\"\n", " },\n", - " \"spine01.cmh\": {\n", + " \"leaf00.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is spine01.cmh\"\n", + " \"result\": \"bye! my name is leaf00.cmh\"\n", " },\n", - " \"leaf00.cmh\": {\n", + " \"spine01.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is leaf00.cmh\"\n", + " \"result\": \"bye! my name is spine01.cmh\"\n", " },\n", " \"leaf01.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is leaf01.cmh\"\n", + " \"result\": \"bye! my name is leaf01.cmh\"\n", " },\n", - " \"host1.bma\": {\n", + " \"spine00.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is host1.bma\"\n", + " \"result\": \"bye! my name is spine00.bma\"\n", " },\n", - " \"host2.bma\": {\n", + " \"host1.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is host2.bma\"\n", + " \"result\": \"bye! my name is host1.bma\"\n", " },\n", - " \"spine00.bma\": {\n", + " \"host2.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is spine00.bma\"\n", + " \"result\": \"bye! my name is host2.bma\"\n", " },\n", " \"spine01.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is spine01.bma\"\n", + " \"result\": \"bye! my name is spine01.bma\"\n", " },\n", " \"leaf00.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is leaf00.bma\"\n", + " \"result\": \"bye! my name is leaf00.bma\"\n", " },\n", " \"leaf01.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"hi! my name is leaf01.bma\"\n", + " \"result\": \"bye! my name is leaf01.bma\"\n", " },\n", " \"completed\": true\n", - " },\n", - " \"bye!\": {\n", + " }\n", + " \"hi!\": {\n", " \"started\": true,\n", " \"host1.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is host1.cmh\"\n", + " \"result\": \"hi! my name is host1.cmh\"\n", " },\n", " \"host2.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is host2.cmh\"\n", + " \"result\": \"hi! my name is host2.cmh\"\n", " },\n", " \"spine00.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is spine00.cmh\"\n", + " \"result\": \"hi! my name is spine00.cmh\"\n", " },\n", - " \"spine01.cmh\": {\n", + " \"leaf00.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is spine01.cmh\"\n", + " \"result\": \"hi! my name is leaf00.cmh\"\n", " },\n", - " \"leaf00.cmh\": {\n", + " \"spine01.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is leaf00.cmh\"\n", + " \"result\": \"hi! my name is spine01.cmh\"\n", " },\n", " \"leaf01.cmh\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is leaf01.cmh\"\n", + " \"result\": \"hi! my name is leaf01.cmh\"\n", " },\n", - " \"host1.bma\": {\n", + " \"spine00.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is host1.bma\"\n", + " \"result\": \"hi! my name is spine00.bma\"\n", " },\n", - " \"host2.bma\": {\n", + " \"host1.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is host2.bma\"\n", + " \"result\": \"hi! my name is host1.bma\"\n", " },\n", - " \"spine00.bma\": {\n", + " \"host2.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is spine00.bma\"\n", + " \"result\": \"hi! my name is host2.bma\"\n", " },\n", " \"spine01.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is spine01.bma\"\n", + " \"result\": \"hi! my name is spine01.bma\"\n", " },\n", " \"leaf00.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is leaf00.bma\"\n", + " \"result\": \"hi! my name is leaf00.bma\"\n", " },\n", " \"leaf01.bma\": {\n", " \"completed\": true,\n", - " \"result\": \"bye! my name is leaf01.bma\"\n", + " \"result\": \"hi! my name is leaf01.bma\"\n", " },\n", " \"completed\": true\n", - " }\n", + " },\n", "}\n" ] } ], "source": [ "import json\n", - "print(json.dumps(data, indent=4))" + "print(json.dumps(data, indent=4, sort_keys=True))" ] }, {