-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.py
More file actions
34 lines (30 loc) · 769 Bytes
/
Copy pathtypes.py
File metadata and controls
34 lines (30 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# warp_templates/types.py
from typing import TypedDict, Dict, List, Union
import numpy as np
class FitLCResult(TypedDict, total=False):
parameters: List[float]
param_names: List[str]
chisq: float
ndof: int
errors: Dict[str, float]
success: bool
class CorrDataPerBand(TypedDict):
wave: float
phase: List[float]
frac: List[float]
err: List[float]
tphase: np.ndarray
tcorr: np.ndarray
terr: np.ndarray
class TemplateCorrectionResult(TypedDict):
model: str
corrdata: Dict[str, CorrDataPerBand]
corrmodel: Dict[str, Union[np.ndarray, List[float]]]
dps_init: int
dps_tcut: int
dps_fcut: int
dps_allcut: int
success: bool
absmag: float
chidof: float
lceval: Dict[str, int]