From db7062fcfd3c382d9aea64d20242cffef4618865 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Sun, 14 Aug 2022 14:04:00 -0600 Subject: [PATCH] black format --- SNOPO | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/SNOPO b/SNOPO index b2497b6..0ca2b3b 100755 --- a/SNOPO +++ b/SNOPO @@ -35,7 +35,11 @@ g = graphviz.Digraph( edge_attr="", ) g.attr(rankdir="LR") -g.attr(bgcolor='seashell2:seashell', label='DRAFT SatNOGS Optical Process Overview DRAFT', fontcolor='black') +g.attr( + bgcolor="seashell2:seashell", + label="DRAFT SatNOGS Optical Process Overview DRAFT", + fontcolor="black", +) with g.subgraph(name="cluster_hardware") as a: a.attr(style="filled", color="lightgrey") @@ -48,15 +52,29 @@ with g.subgraph(name="cluster_hardware") as a: b.edge("Raspberry Pi", "Video") b.edge("ZWO ASI", "Video") with a.subgraph(name="cluster_camera") as c: - c.attr(style="filled", color="lightskyblue", label="Still Cameras", fontcolor="black") - c.node_attr.update(style="filled", color="midnightblue", shape="doubleoctagon", fontcolor="white") + c.attr( + style="filled", + color="lightskyblue", + label="Still Cameras", + fontcolor="black", + ) + c.node_attr.update( + style="filled", + color="midnightblue", + shape="doubleoctagon", + fontcolor="white", + ) c.edge("gphoto2", "Camera") c.edge("Canon DSLR", "Camera") c.edge("Nikon DSLR", "Camera") c.edge("INDI", "Camera") with a.subgraph(name="cluster_allsky") as d: - d.attr(style="filled", color="slateblue", label="Allsky Cameras", fontcolor="white") - d.node_attr.update(style="filled", color="peru", shape="octagon", fontcolor="black") + d.attr( + style="filled", color="slateblue", label="Allsky Cameras", fontcolor="white" + ) + d.node_attr.update( + style="filled", color="peru", shape="octagon", fontcolor="black" + ) d.edge("ZWO ASI Allsky", "Allsky") d.edge("Starlight Xpress Oculus", "Allsky") d.edge("INDI Allsky", "Allsky") @@ -102,7 +120,10 @@ with g.subgraph(name="cluster_platesolver") as a: with a.subgraph(name="cluster_camera_plate_solver") as b: b.attr(color="lightblue") b.node_attr["style"] = "filled" - b.edge("sattools/scripts/get.sh\ngphoto2\njpg2fits", "sattools/scripts/find.sh\nsource-extractor") + b.edge( + "sattools/scripts/get.sh\ngphoto2\njpg2fits", + "sattools/scripts/find.sh\nsource-extractor", + ) b.edge("stphot/acquire.py", "stphot/UNKNOWN-find.py") b.edge("asm/capture", "asm/UNKNOWN-find") b.attr(label="Camera\nPlate Solver") @@ -119,7 +140,10 @@ with g.subgraph(name="cluster_satdetect") as a: with a.subgraph(name="cluster_camera_satdetect") as b: b.attr(color="tan") b.node_attr["style"] = "filled" - b.edge("sattools/scripts/find.sh\nsource-extractor", "sattools/scripts/id.sh\naddwcs\nsatid\nDetect") + b.edge( + "sattools/scripts/find.sh\nsource-extractor", + "sattools/scripts/id.sh\naddwcs\nsatid\nDetect", + ) b.edge("stphot/UNKNOWN-find.py", "stphot/UNKNOWN-id.py\nDetect") b.edge("asm/UNKNOWN-find", "asm/UNKNOWN-id\nDetect") b.attr(label="Camera\nDetect Satellites") @@ -136,7 +160,10 @@ with g.subgraph(name="cluster_satid") as a: with a.subgraph(name="cluster_camera_satid") as b: b.attr(color="tan") b.node_attr["style"] = "filled" - b.edge("sattools/scripts/id.sh\naddwcs\nsatid\nDetect", "sattools/scripts/id.sh\naddwcs\nsatid\nID") + b.edge( + "sattools/scripts/id.sh\naddwcs\nsatid\nDetect", + "sattools/scripts/id.sh\naddwcs\nsatid\nID", + ) b.edge("stphot/UNKNOWN-id.py\nDetect", "stphot/UNKNOWN-id.py\nID") b.edge("asm/UNKNOWN-id\nDetect", "asm/UNKNOWN-id\nID") b.attr(label="Camera\nID Satellite")