midas-integrate 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,124 @@
1
+ """midas-integrate — pure-Python radial integration for area X-ray detectors.
2
+
3
+ Public API surface (re-exports from submodules so users can do
4
+ `from midas_integrate import build_csr` etc.).
5
+ """
6
+ from __future__ import annotations
7
+
8
+ __version__ = "0.1.0"
9
+
10
+ from midas_integrate.bin_io import (
11
+ PXLIST_DTYPE,
12
+ MAP_HEADER_MAGIC,
13
+ MAP_HEADER_SIZE,
14
+ MapHeader,
15
+ PixelMap,
16
+ load_map,
17
+ write_map,
18
+ write_synthetic_map,
19
+ )
20
+ from midas_integrate.params import IntegrationParams, parse_params
21
+ from midas_integrate.geometry import (
22
+ DEG2RAD,
23
+ RAD2DEG,
24
+ build_tilt_matrix,
25
+ pixel_to_REta,
26
+ REta_to_YZ,
27
+ build_bin_edges,
28
+ build_q_bin_edges_in_R,
29
+ polygon_area,
30
+ circle_seg_intersect,
31
+ ray_seg_intersect,
32
+ point_in_quad,
33
+ invert_REta_to_pixel,
34
+ )
35
+ from midas_integrate.detector_mapper import build_map, BuildMapResult
36
+ from midas_integrate.kernels import (
37
+ AREA_THRESHOLD,
38
+ CSRGeometry,
39
+ build_csr,
40
+ integrate,
41
+ profile_1d,
42
+ )
43
+ from midas_integrate.image import (
44
+ bytes_per_pixel,
45
+ decode_payload,
46
+ decode_hybrid_payload,
47
+ NUMPY_DTYPE_FOR_CODE,
48
+ DTYPE_CODE_UINT8,
49
+ DTYPE_CODE_UINT16,
50
+ DTYPE_CODE_UINT32,
51
+ DTYPE_CODE_INT64,
52
+ DTYPE_CODE_FLOAT32,
53
+ DTYPE_CODE_FLOAT64,
54
+ DTYPE_CODE_HYBRID,
55
+ )
56
+ from midas_integrate.peakfit import (
57
+ fit_peaks,
58
+ fit_peaks_autodetect,
59
+ pseudo_voigt,
60
+ snip_background,
61
+ PF_PARAMS_PER_PEAK,
62
+ )
63
+ from midas_integrate.fused_csr import build_fused_geometry
64
+ from midas_integrate.postprocess import gauss_smooth_eta, median_filter_eta
65
+
66
+ __all__ = [
67
+ "__version__",
68
+ # bin_io
69
+ "PXLIST_DTYPE",
70
+ "MAP_HEADER_MAGIC",
71
+ "MAP_HEADER_SIZE",
72
+ "MapHeader",
73
+ "PixelMap",
74
+ "load_map",
75
+ "write_map",
76
+ "write_synthetic_map",
77
+ # params
78
+ "IntegrationParams",
79
+ "parse_params",
80
+ # geometry
81
+ "DEG2RAD",
82
+ "RAD2DEG",
83
+ "build_tilt_matrix",
84
+ "pixel_to_REta",
85
+ "REta_to_YZ",
86
+ "build_bin_edges",
87
+ "build_q_bin_edges_in_R",
88
+ "polygon_area",
89
+ "circle_seg_intersect",
90
+ "ray_seg_intersect",
91
+ "point_in_quad",
92
+ "invert_REta_to_pixel",
93
+ # detector_mapper
94
+ "build_map",
95
+ "BuildMapResult",
96
+ # kernels
97
+ "AREA_THRESHOLD",
98
+ "CSRGeometry",
99
+ "build_csr",
100
+ "integrate",
101
+ "profile_1d",
102
+ # image
103
+ "bytes_per_pixel",
104
+ "decode_payload",
105
+ "decode_hybrid_payload",
106
+ "NUMPY_DTYPE_FOR_CODE",
107
+ "DTYPE_CODE_UINT8",
108
+ "DTYPE_CODE_UINT16",
109
+ "DTYPE_CODE_UINT32",
110
+ "DTYPE_CODE_INT64",
111
+ "DTYPE_CODE_FLOAT32",
112
+ "DTYPE_CODE_FLOAT64",
113
+ "DTYPE_CODE_HYBRID",
114
+ # peakfit
115
+ "fit_peaks",
116
+ "fit_peaks_autodetect",
117
+ "pseudo_voigt",
118
+ "snip_background",
119
+ "PF_PARAMS_PER_PEAK",
120
+ # alias-mitigation API (Family II + III)
121
+ "build_fused_geometry",
122
+ "gauss_smooth_eta",
123
+ "median_filter_eta",
124
+ ]