Skip to content

Commit e3f81c4

Browse files
Merge pull request #90 from cdunn314/hpge
Add HPGe processing capability to activation_foils workflow
2 parents 2569f9b + 645eb79 commit e3f81c4

5 files changed

Lines changed: 405 additions & 58 deletions

File tree

libra_toolbox/neutron_detection/activation_foils/calibration.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from dataclasses import dataclass
2-
from typing import List
1+
from dataclasses import dataclass, field
2+
from typing import List, Dict, Optional
33
import datetime
44
import numpy as np
55

@@ -26,10 +26,10 @@ class Nuclide:
2626
"""
2727

2828
name: str
29-
energy: List[float] = None
30-
intensity: List[float] = None
31-
half_life: float = None
32-
atomic_mass: float = None
29+
energy: Optional[List[float]] = None
30+
intensity: Optional[List[float]] = None
31+
half_life: Optional[float] = None
32+
atomic_mass: Optional[float] = None
3333
abundance: float = 1.00
3434

3535
@property
@@ -42,8 +42,8 @@ def decay_constant(self):
4242

4343
ba133 = Nuclide(
4444
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],
45+
energy=[276.3989, 302.8508, 356.0129, 383.8485],
46+
intensity=[0.0716, 0.1834, 0.6205, 0.0894],
4747
half_life=10.551 * 365.25 * 24 * 3600,
4848
)
4949
co60 = Nuclide(

0 commit comments

Comments
 (0)