Skip to content
Snippets Groups Projects
Commit 8842f776 authored by Danilo Ferreira de Lima's avatar Danilo Ferreira de Lima
Browse files

Added function to retrieve low res range.

parent 24b3f47f
No related branches found
No related tags found
No related merge requests found
......@@ -540,6 +540,10 @@ class Model(TransformerMixin, BaseEstimator):
"""Get x-axis of high-resolution data."""
return self.y_model.named_steps["smoothen"].energy
def get_low_resolution_range(self) -> Tuple[int, int]:
"""Get bin number with first and last relevant bins in the low-resolution spectrum."""
return self.x_model.named_steps['select'].tof_start, (self.x_model.named_steps['select'].tof_start + self.y_model.named_steps['select'].delta_tof)
def debug_peak_finding(self, low_res_data: Dict[str, np.ndarray], filename: str):
"""
Produce image to understand if the peak finding step worked well.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment