Skip to content

Commit 7f91f3c

Browse files
committed
Made example file compatible with new foil classes
1 parent f944e45 commit 7f91f3c

File tree

9 files changed

+367
-442
lines changed

9 files changed

+367
-442
lines changed

docs/examples/foil_analysis/data.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from libra_toolbox.neutron_detection.activation_foils.settings import ureg
22

3-
foil_dict = {
3+
foil_data = {
44
"20231109_BABY-4_Nb-2I_0659_4hr": {
55
"foil_name": "2I",
66
"element": "Nb",
@@ -11,7 +11,7 @@
1111
"photon_counts_uncertainty": 554.976 * ureg.count,
1212
"time_generator_off": "11/8/2023 20:00:00",
1313
"start_time_counting": "11/9/2023 6:59:00",
14-
"counting_time": 4 * ureg.h,
14+
"real_count_time": 4 * ureg.h,
1515
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
1616
},
1717
"20231109_BABY-4_Nb-2I_1623_4hr": {
@@ -24,7 +24,7 @@
2424
"photon_counts_uncertainty": 553.67 * ureg.count,
2525
"time_generator_off": "11/8/2023 20:00:00",
2626
"start_time_counting": "11/9/2023 16:23:00",
27-
"counting_time": 4 * ureg.h,
27+
"real_count_time": 4 * ureg.h,
2828
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
2929
},
3030
"20231109_BABY-4_Nb-2J_2027_4hr": {
@@ -37,7 +37,7 @@
3737
"photon_counts_uncertainty": 392.842 * ureg.count,
3838
"time_generator_off": "11/8/2023 20:00:00",
3939
"start_time_counting": "11/9/2023 20:27:00",
40-
"counting_time": 4 * ureg.h,
40+
"real_count_time": 4 * ureg.h,
4141
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
4242
},
4343
"20231110_BABY-4_Nb-2J_1442_4hr": {
@@ -50,7 +50,7 @@
5050
"photon_counts_uncertainty": 403.716 * ureg.count,
5151
"time_generator_off": "11/8/2023 20:00:00",
5252
"start_time_counting": "11/10/2023 14:42:00",
53-
"counting_time": 4 * ureg.h,
53+
"real_count_time": 4 * ureg.h,
5454
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
5555
},
5656
"20231209_BABY-5_Nb-B_A125dt_0922_4hr": {
@@ -63,7 +63,7 @@
6363
"photon_counts_uncertainty": 406.153 * ureg.count,
6464
"time_generator_off": "12/6/2023 21:48:00",
6565
"start_time_counting": "12/9/2023 9:22:00",
66-
"counting_time": 4 * ureg.h,
66+
"real_count_time": 4 * ureg.h,
6767
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
6868
},
6969
"20231209_BABY-5_Nb-B_A125dt_1609_4hr": {
@@ -76,7 +76,7 @@
7676
"photon_counts_uncertainty": 400.639 * ureg.count,
7777
"time_generator_off": "12/6/2023 21:48:00",
7878
"start_time_counting": "12/9/2023 16:09:00",
79-
"counting_time": 4 * ureg.h,
79+
"real_count_time": 4 * ureg.h,
8080
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
8181
},
8282
"20231208_BABY-5_Nb-D_P383dt_1132_4hr": {
@@ -89,7 +89,7 @@
8989
"photon_counts_uncertainty": 524.683 * ureg.count,
9090
"time_generator_off": "12/6/2023 21:48:00",
9191
"start_time_counting": "12/8/2023 11:32:00",
92-
"counting_time": 4 * ureg.h,
92+
"real_count_time": 4 * ureg.h,
9393
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
9494
},
9595
"20231208_BABY-5_Nb-D_P383dt_1555_4hr": {
@@ -102,7 +102,7 @@
102102
"photon_counts_uncertainty": 647.726 * ureg.count,
103103
"time_generator_off": "12/6/2023 21:48:00",
104104
"start_time_counting": "12/8/2023 15:55:00",
105-
"counting_time": 4 * ureg.h,
105+
"real_count_time": 4 * ureg.h,
106106
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
107107
},
108108
"20240128_BABY6_Nb-A_A-325_1054_4hr": {
@@ -115,7 +115,7 @@
115115
"photon_counts_uncertainty": 416.398 * ureg.count,
116116
"time_generator_off": "1/26/2024 21:38:00",
117117
"start_time_counting": "1/28/2024 10:54:00",
118-
"counting_time": 4 * ureg.h,
118+
"real_count_time": 4 * ureg.h,
119119
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
120120
},
121121
"20240128_BABY6_Nb-A_A-325_1638_4hr": {
@@ -128,7 +128,7 @@
128128
"photon_counts_uncertainty": 408.274 * ureg.count,
129129
"time_generator_off": "1/26/2024 21:38:00",
130130
"start_time_counting": "1/28/2024 16:38:00",
131-
"counting_time": 4 * ureg.h,
131+
"real_count_time": 4 * ureg.h,
132132
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
133133
},
134134
"20240127_BABY6_Nb-C_P383_1313_4hr": {
@@ -141,7 +141,7 @@
141141
"photon_counts_uncertainty": 535.974 * ureg.count,
142142
"time_generator_off": "1/26/2024 21:38:00",
143143
"start_time_counting": "1/27/2024 13:13:00",
144-
"counting_time": 4 * ureg.h,
144+
"real_count_time": 4 * ureg.h,
145145
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
146146
},
147147
"20240127_BABY6_Nb-C_P383_1738_4hr": {
@@ -154,7 +154,7 @@
154154
"photon_counts_uncertainty": 531.229 * ureg.count,
155155
"time_generator_off": "1/26/2024 21:38:00",
156156
"start_time_counting": "1/27/2024 17:38:00",
157-
"counting_time": 4 * ureg.h,
157+
"real_count_time": 4 * ureg.h,
158158
"distance_from_center_of_target_plane": 5.08 * ureg.cm,
159159
},
160160
}

0 commit comments

Comments
 (0)