Initial commit

Base modular structure (phase space, Fermi function)
Initial .gitignore
This commit is contained in:
2026-04-02 15:38:37 +03:00
commit a5e1962fe2
16 changed files with 491 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# spectrum.py
import numpy as np
from typing import List
from .base import SpectrumComponent
class BetaSpectrum:
def __init__(self, components: List[SpectrumComponent]):
self.components = components
def __call__(self, W: np.ndarray) -> np.ndarray:
result = np.ones_like(W)
for comp in self.components:
result *= comp(W)
return result