Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading in already-calibrated listmode data causes other utils to fail #283

Open
jvavrek opened this issue Sep 3, 2021 · 0 comments
Open

Comments

@jvavrek
Copy link
Contributor

jvavrek commented Sep 3, 2021

For example, in peakfinder.py, the auto-calibrator only looks for the raw edges:

def find_peaks(self, xmin=None, xmax=None, min_snr=2, max_num=40):
        """Find the highest SNR peaks in the data."""
        bin_edges = self.spectrum.bin_edges_raw
        bin_centers = self.spectrum.bin_centers_raw

As a workaround, one can set spec.bin_edges_raw = spec.bin_edges_kev, but we should think about a better solution in the future.

Tagging @markbandstra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant