We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2569f9b + 645eb79 commit e3f81c4Copy full SHA for e3f81c4
5 files changed
libra_toolbox/neutron_detection/activation_foils/calibration.py
@@ -1,5 +1,5 @@
1
-from dataclasses import dataclass
2
-from typing import List
+from dataclasses import dataclass, field
+from typing import List, Dict, Optional
3
import datetime
4
import numpy as np
5
@@ -26,10 +26,10 @@ class Nuclide:
26
"""
27
28
name: str
29
- energy: List[float] = None
30
- intensity: List[float] = None
31
- half_life: float = None
32
- atomic_mass: float = None
+ energy: Optional[List[float]] = None
+ intensity: Optional[List[float]] = None
+ half_life: Optional[float] = None
+ atomic_mass: Optional[float] = None
33
abundance: float = 1.00
34
35
@property
@@ -42,8 +42,8 @@ def decay_constant(self):
42
43
ba133 = Nuclide(
44
name="Ba133",
45
- energy=[80.9979, 276.3989, 302.8508, 356.0129, 383.8485],
46
- intensity=[0.329, 0.0716, 0.1834, 0.6205, 0.0894],
+ energy=[276.3989, 302.8508, 356.0129, 383.8485],
+ intensity=[0.0716, 0.1834, 0.6205, 0.0894],
47
half_life=10.551 * 365.25 * 24 * 3600,
48
)
49
co60 = Nuclide(
0 commit comments