From 5227304e2290bd0d4083b3926784963faa84c925 Mon Sep 17 00:00:00 2001
From: Maxim Gonchar <maxim.mg.gonchar@gmail.com>
Date: Tue, 16 May 2023 12:27:08 +0300
Subject: [PATCH] feat: partial graphs

---
 models/dayabay_v0.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/models/dayabay_v0.py b/models/dayabay_v0.py
index 5454f14..a9cd301 100644
--- a/models/dayabay_v0.py
+++ b/models/dayabay_v0.py
@@ -83,4 +83,8 @@ def model_dayabay_v0():
 
     storage.to_datax('output/dayabay_v0_data.tex')
 
-    savegraph(g, "output/dayabay_v0.dot", show='all')
+    from dagflow.graphviz import GraphDot
+    GraphDot.from_graph(g, show='all').savegraph("output/dayabay_v0.dot")
+    GraphDot.from_node(storage['parameter_node.constrained.reactor.fission_fraction_scale.DB1'].constraint._norm_node, show='all', minsize=2).savegraph("output/dayabay_v0_large.dot")
+    GraphDot.from_node(storage['stat.nuisance.all'], show='all', mindepth=-1).savegraph("output/dayabay_v0_top.dot")
+
-- 
GitLab