opentof 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.
opentof/__init__.py ADDED
@@ -0,0 +1,171 @@
1
+ # Copyright 2026 Aerodyne Research, Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # opentof/__init__.py
16
+ from opentof.deployment import Deployment
17
+
18
+ from opentof.runner import run_do_it, main
19
+
20
+ from opentof.mass_calibration import (
21
+ generate_averaged_dataset,
22
+ run_mass_calibration,
23
+ define_reference_spectrum,
24
+ combined_mc_aux_plots,
25
+ mass_dependent_error_plot,
26
+ estimate_global_noise_level,
27
+ determine_baseline,
28
+ apply_mass_calibration,
29
+ fit_mass_calibration,
30
+ MASS_CAL_MODES,
31
+ get_mass_axis_for_ms_i,
32
+ calibrate_mass,
33
+ low_pass_filter,
34
+ )
35
+
36
+ from opentof.peak_width_shape import (
37
+ peak_width, peak_shape, ransac_peak_width,
38
+ )
39
+
40
+ from opentof.peak_fitting import (
41
+ gaussian, lorentzian, pseudo_voigt,
42
+ peak_function_selector,
43
+ fit_and_extract_pos,
44
+ fit_single_peak,
45
+ fit_mopf_nm,
46
+ unpack_fit_result,
47
+ generate_peak_mask,
48
+ estimate_local_noise_level,
49
+ multi_overlap_peak_fit,
50
+ levenberg_marquardt,
51
+ fit_unconstrained_peaks,
52
+ full_fitting_integration_unconstrained,
53
+ full_fitting_integration_constrained,
54
+ fit_partially_constrained_nm,
55
+ )
56
+
57
+ from opentof.isotopes import (
58
+ convolve_distributions,
59
+ element_distribution,
60
+ calculate_isotope_masses,
61
+ batch_isotope_masses,
62
+ isotope_signal_on_axis,
63
+ subtract_isotopes,
64
+ reconstruct_total_isotope_signal,
65
+ )
66
+
67
+ from opentof.utils import (
68
+ return_mass, get_raw_nm_data, get_nm_segment_data,
69
+ std_list_array_lengths,
70
+ GlobalMinMaxScaler, ptoe,
71
+ plot_peak_fits,
72
+ plot_apd_peaks,
73
+ print_h5_structure,
74
+ median_absolute_deviation,
75
+ calculate_rolling_average,
76
+ activity_classifier,
77
+ truncate,
78
+ spectra_nm_split,
79
+ aggregate_tw_expicit_time_export,
80
+ regr_model_metrics,
81
+ regr_scatter_plot,
82
+ load_peak_list,
83
+ ensure_dir,
84
+ find_possible_compositions,
85
+ cluster_discovered_peaks,
86
+ get_default_plot_dir,
87
+ )
88
+
89
+ from opentof.quantification import (
90
+ load_TWEB_sensitivity_calibration_file,
91
+ quantify_signal,
92
+ )
93
+
94
+ # Experimental
95
+ from opentof.som_helpers import (
96
+ RowMinMaxScaler, build_nm_som, organize_som_data,
97
+ process_som_weight_peaks,
98
+ )
99
+
100
+ __all__ = [
101
+ "Deployment",
102
+ "run_do_it",
103
+ "main",
104
+ "return_mass",
105
+ "get_raw_nm_data",
106
+ "get_nm_segment_data",
107
+ "std_list_array_lengths",
108
+ "GlobalMinMaxScaler",
109
+ "ptoe",
110
+ "plot_peak_fits",
111
+ "plot_apd_peaks",
112
+ "print_h5_structure",
113
+ "median_absolute_deviation",
114
+ "calculate_rolling_average",
115
+ "activity_classifier",
116
+ "truncate",
117
+ "spectra_nm_split",
118
+ "aggregate_tw_expicit_time_export",
119
+ "regr_model_metrics",
120
+ "regr_scatter_plot",
121
+ "load_peak_list",
122
+ "generate_averaged_dataset",
123
+ "run_mass_calibration",
124
+ "define_reference_spectrum",
125
+ "combined_mc_aux_plots",
126
+ "mass_dependent_error_plot",
127
+ "estimate_global_noise_level",
128
+ "determine_baseline",
129
+ "apply_mass_calibration",
130
+ "fit_mass_calibration",
131
+ "MASS_CAL_MODES",
132
+ "get_mass_axis_for_ms_i",
133
+ "calibrate_mass",
134
+ "low_pass_filter",
135
+ "gaussian",
136
+ "lorentzian",
137
+ "pseudo_voigt",
138
+ "peak_function_selector",
139
+ "fit_and_extract_pos",
140
+ "fit_single_peak",
141
+ "fit_mopf_nm",
142
+ "unpack_fit_result",
143
+ "generate_peak_mask",
144
+ "estimate_local_noise_level",
145
+ "multi_overlap_peak_fit",
146
+ "levenberg_marquardt",
147
+ "full_fitting_integration_unconstrained",
148
+ "fit_unconstrained_peaks",
149
+ "full_fitting_integration_constrained",
150
+ "fit_partially_constrained_nm",
151
+ "peak_width",
152
+ "ransac_peak_width",
153
+ "peak_shape",
154
+ "RowMinMaxScaler",
155
+ "build_nm_som",
156
+ "organize_som_data",
157
+ "process_som_weight_peaks",
158
+ "load_TWEB_sensitivity_calibration_file",
159
+ "quantify_signal",
160
+ "ensure_dir",
161
+ "find_possible_compositions",
162
+ "cluster_discovered_peaks",
163
+ "get_default_plot_dir",
164
+ "convolve_distributions",
165
+ "element_distribution",
166
+ "calculate_isotope_masses",
167
+ "batch_isotope_masses",
168
+ "isotope_signal_on_axis",
169
+ "subtract_isotopes",
170
+ "reconstruct_total_isotope_signal",
171
+ ]
Binary file