Skip to content

Commit 3aaa649

Browse files
Merge pull request #135 from festim-dev/version-in-json
add version info to json file
2 parents 7f02aca + ee4be1e commit 3aaa649

File tree

11 files changed

+180
-678
lines changed

11 files changed

+180
-678
lines changed

example_graphs/baby.json

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
2+
"version": {
3+
"pathsim_version": "0.8.2",
4+
"pathview_version": "0.1.dev470+g017515800.d20250812"
5+
},
26
"nodes": [
37
{
48
"data": {
59
"gain": "-1",
6-
"label": "x (-1)"
10+
"label": "x (-1)",
11+
"nodeColor": "#DDE6ED"
712
},
813
"dragging": false,
914
"id": "4",
@@ -23,7 +28,8 @@
2328
"label": "Neutron rate",
2429
"labels": "",
2530
"sampling_rate": "",
26-
"t_wait": ""
31+
"t_wait": "",
32+
"nodeColor": "#DDE6ED"
2733
},
2834
"dragging": false,
2935
"id": "6",
@@ -41,7 +47,8 @@
4147
{
4248
"data": {
4349
"gain": "3e-3",
44-
"label": "TBR"
50+
"label": "TBR",
51+
"nodeColor": "#DDE6ED"
4552
},
4653
"dragging": false,
4754
"id": "7",
@@ -61,7 +68,8 @@
6168
"initial_value": "",
6269
"label": "BABY",
6370
"residence_time": "(k_IV + k_OV)/baby_vol",
64-
"source_term": ""
71+
"source_term": "",
72+
"nodeColor": "#DDE6ED"
6573
},
6674
"dragging": false,
6775
"id": "8",
@@ -81,7 +89,8 @@
8189
"label": "IV vial activity",
8290
"labels": "",
8391
"sampling_rate": "",
84-
"t_wait": ""
92+
"t_wait": "",
93+
"nodeColor": "#DDE6ED"
8594
},
8695
"dragging": false,
8796
"id": "21",
@@ -100,7 +109,8 @@
100109
"data": {
101110
"f1": "0.01",
102111
"f2": "0.99",
103-
"label": "soluble vs insoluble"
112+
"label": "soluble vs insoluble",
113+
"nodeColor": "#DDE6ED"
104114
},
105115
"dragging": false,
106116
"id": "1",
@@ -126,7 +136,8 @@
126136
"label": "IV bubbler",
127137
"conversion_efficiency": "0.95",
128138
"vial_efficiency": "0.9",
129-
"replacement_times": "np.arange(5, 50, step=3)"
139+
"replacement_times": "np.arange(5, 50, step=3)",
140+
"nodeColor": "#DDE6ED"
130141
},
131142
"measured": {
132143
"width": 230,
@@ -145,7 +156,8 @@
145156
"data": {
146157
"label": "IV vs OV",
147158
"f1": "k_IV/(k_IV + k_OV)",
148-
"f2": "k_OV/(k_IV + k_OV)"
159+
"f2": "k_OV/(k_IV + k_OV)",
160+
"nodeColor": "#DDE6ED"
149161
},
150162
"measured": {
151163
"width": 120,
@@ -164,7 +176,8 @@
164176
"data": {
165177
"label": "soluble vs insoluble",
166178
"f1": "0.01",
167-
"f2": "0.99"
179+
"f2": "0.99",
180+
"nodeColor": "#DDE6ED"
168181
},
169182
"measured": {
170183
"width": 120,
@@ -184,7 +197,8 @@
184197
"label": "OV bubbler",
185198
"conversion_efficiency": "0.95",
186199
"vial_efficiency": "0.9",
187-
"replacement_times": "np.arange(5, 50, step=5)"
200+
"replacement_times": "np.arange(5, 50, step=5)",
201+
"nodeColor": "#DDE6ED"
188202
},
189203
"measured": {
190204
"width": 230,
@@ -203,7 +217,8 @@
203217
"data": {
204218
"label": "environment",
205219
"initial_value": "",
206-
"reset_times": ""
220+
"reset_times": "",
221+
"nodeColor": "#DDE6ED"
207222
},
208223
"measured": {
209224
"width": 200,
@@ -223,7 +238,8 @@
223238
"label": "OV vial activity",
224239
"labels": "",
225240
"sampling_rate": "",
226-
"t_wait": ""
241+
"t_wait": "",
242+
"nodeColor": "#DDE6ED"
227243
},
228244
"measured": {
229245
"width": 120,
@@ -243,7 +259,8 @@
243259
"label": "BABY inventory",
244260
"labels": "",
245261
"sampling_rate": "",
246-
"t_wait": ""
262+
"t_wait": "",
263+
"nodeColor": "#DDE6ED"
247264
},
248265
"measured": {
249266
"width": 120,
@@ -262,7 +279,8 @@
262279
"data": {
263280
"label": "Stepsource",
264281
"amplitude": "1",
265-
"tau": "4"
282+
"tau": "4",
283+
"nodeColor": "#DDE6ED"
266284
},
267285
"measured": {
268286
"width": 120,
@@ -281,7 +299,8 @@
281299
"data": {
282300
"label": "Stepsource",
283301
"amplitude": "1",
284-
"tau": "2"
302+
"tau": "2",
303+
"nodeColor": "#DDE6ED"
285304
},
286305
"measured": {
287306
"width": 120,
@@ -301,7 +320,8 @@
301320
"label": "Neutron source",
302321
"labels": "",
303322
"sampling_rate": "",
304-
"t_wait": ""
323+
"t_wait": "",
324+
"nodeColor": "#DDE6ED"
305325
},
306326
"measured": {
307327
"width": 120,
@@ -800,5 +820,7 @@
800820
"value": "1",
801821
"nameError": false
802822
}
803-
]
823+
],
824+
"events": [],
825+
"pythonCode": "# Define your Python variables and functions here\n# Example:\n# my_variable = 42\n# def my_function(x):\n# return x * 2\n"
804826
}

example_graphs/events.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"version": {
3+
"pathsim_version": "0.8.2",
4+
"pathview_version": "0.1.dev470+g017515800.d20250812"
5+
},
26
"nodes": [
37
{
48
"id": "0",
@@ -9,11 +13,12 @@
913
},
1014
"data": {
1115
"label": "source",
12-
"value": ""
16+
"value": "",
17+
"nodeColor": "#DDE6ED"
1318
},
1419
"measured": {
15-
"width": 205,
16-
"height": 53
20+
"width": 206,
21+
"height": 54
1722
},
1823
"selected": true
1924
},
@@ -27,7 +32,8 @@
2732
"data": {
2833
"label": "integrator",
2934
"initial_value": "",
30-
"reset_times": ""
35+
"reset_times": "",
36+
"nodeColor": "#DDE6ED"
3137
},
3238
"measured": {
3339
"width": 200,
@@ -47,7 +53,8 @@
4753
"label": "scope 2",
4854
"labels": "",
4955
"sampling_rate": "",
50-
"t_wait": ""
56+
"t_wait": "",
57+
"nodeColor": "#DDE6ED"
5158
},
5259
"measured": {
5360
"width": 120,
@@ -136,5 +143,6 @@
136143
"tolerance": "1e-8",
137144
"id": 1754342253698
138145
}
139-
]
146+
],
147+
"pythonCode": "# Define your Python variables and functions here\n# Example:\n# my_variable = 42\n# def my_function(x):\n# return x * 2\n"
140148
}

example_graphs/events_advanced.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"version": {
3+
"pathsim_version": "0.8.2",
4+
"pathview_version": "0.1.dev470+g017515800.d20250812"
5+
},
26
"nodes": [
37
{
48
"id": "2",
@@ -11,7 +15,8 @@
1115
"label": "process 2",
1216
"initial_value": "",
1317
"residence_time": "30",
14-
"source_term": ""
18+
"source_term": "",
19+
"nodeColor": "#DDE6ED"
1520
},
1621
"measured": {
1722
"width": 200,
@@ -29,7 +34,8 @@
2934
},
3035
"data": {
3136
"label": "amplifier 5",
32-
"gain": "-1"
37+
"gain": "-1",
38+
"nodeColor": "#DDE6ED"
3339
},
3440
"measured": {
3541
"width": 90,
@@ -49,7 +55,8 @@
4955
"label": "scope 6",
5056
"labels": "",
5157
"sampling_rate": "",
52-
"t_wait": ""
58+
"t_wait": "",
59+
"nodeColor": "#DDE6ED"
5360
},
5461
"measured": {
5562
"width": 120,
@@ -69,7 +76,8 @@
6976
"label": "scope 7",
7077
"labels": "",
7178
"sampling_rate": "",
72-
"t_wait": ""
79+
"t_wait": "",
80+
"nodeColor": "#DDE6ED"
7381
},
7482
"measured": {
7583
"width": 120,
@@ -87,7 +95,8 @@
8795
},
8896
"data": {
8997
"label": "adder 8",
90-
"operations": ""
98+
"operations": "",
99+
"nodeColor": "#DDE6ED"
91100
},
92101
"measured": {
93102
"width": 64,
@@ -106,7 +115,8 @@
106115
"data": {
107116
"label": "storage",
108117
"initial_value": "startup_inv",
109-
"reset_times": ""
118+
"reset_times": "",
119+
"nodeColor": "#DDE6ED"
110120
},
111121
"measured": {
112122
"width": 200,
@@ -129,11 +139,12 @@
129139
"duty": "",
130140
"t_fall": "",
131141
"t_rise": "",
132-
"tau": ""
142+
"tau": "",
143+
"nodeColor": "#DDE6ED"
133144
},
134145
"measured": {
135-
"width": 205,
136-
"height": 53
146+
"width": 206,
147+
"height": 54
137148
},
138149
"selected": true,
139150
"dragging": false
@@ -147,7 +158,8 @@
147158
},
148159
"data": {
149160
"label": "amplifier 12",
150-
"gain": "1.1"
161+
"gain": "1.1",
162+
"nodeColor": "#DDE6ED"
151163
},
152164
"measured": {
153165
"width": 90,

0 commit comments

Comments
 (0)