From c7a3b34288494a2f50263af85d3b50d630ec3126 Mon Sep 17 00:00:00 2001
From: Maxim Gonchar <maxim.mg.gonchar@gmail.com>
Date: Wed, 4 Dec 2024 16:43:34 +0300
Subject: [PATCH] chore: script, graph items

---
 scripts/run_dayabay_v0.py | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/scripts/run_dayabay_v0.py b/scripts/run_dayabay_v0.py
index caad70a..05e07f8 100755
--- a/scripts/run_dayabay_v0.py
+++ b/scripts/run_dayabay_v0.py
@@ -108,7 +108,7 @@ def main(opts: Namespace) -> None:
             "reactor": [0],
             "detector": [0, 1],
             "isotope": [0],
-            "period": [2],
+            "period": [1, 2],
         }
         storage["parameter_group.all"].savegraphs(
             opts.graphs / "parameters",
@@ -117,12 +117,16 @@ def main(opts: Namespace) -> None:
             keep_direction=True,
             show="all",
             accept_index=accept_index,
-            filter={
-                "reactor": [0],
-                "detector": [0, 1],
-                "isotope": [0],
-                "period": [2],
-            },
+            filter=accept_index,
+        )
+        storage["parameters.sigma"].savegraphs(
+            opts.graphs / "parameters" / "sigma",
+            mindepth=mindepth,
+            maxdepth=maxdepth,
+            keep_direction=True,
+            show="all",
+            accept_index=accept_index,
+            filter=accept_index,
         )
         storage["nodes"].savegraphs(
             opts.graphs,
@@ -131,12 +135,7 @@ def main(opts: Namespace) -> None:
             keep_direction=True,
             show="all",
             accept_index=accept_index,
-            filter={
-                "reactor": [0],
-                "detector": [0, 1],
-                "isotope": [0],
-                "period": [1],
-            },
+            filter=accept_index,
         )
 
     if opts.graph_from_node:
-- 
GitLab