-
Notifications
You must be signed in to change notification settings - Fork 3
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
Misc fixes 2 #391
base: development
Are you sure you want to change the base?
Misc fixes 2 #391
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
# native imports | ||
|
||
# alphadia imports | ||
# alpha family imports | ||
import alphatims.utils | ||
|
||
# third party imports | ||
import numba as nb | ||
import numpy as np | ||
from numba.experimental import jitclass | ||
|
@@ -13,7 +6,7 @@ | |
from alphadia import utils | ||
|
||
|
||
@alphatims.utils.njit | ||
@nb.njit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you check the alphatims function? I wonder why I did this in the first place ( I already see some weird numbs thing happening :D ) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So much value |
||
def logistic(x: np.array, mu: float, sigma: float): | ||
"""Numba implementation of the logistic function | ||
|
||
|
@@ -41,13 +34,13 @@ def logistic(x: np.array, mu: float, sigma: float): | |
return y | ||
|
||
|
||
@alphatims.utils.njit | ||
@nb.njit | ||
def logistic_rectangle(mu1, mu2, sigma1, sigma2, x): | ||
y = logistic(x, mu1, sigma1) - logistic(x, mu2, sigma2) | ||
return y | ||
|
||
|
||
@alphatims.utils.njit | ||
@nb.njit | ||
def linear(x, m, b): | ||
return m * x + b | ||
|
||
|
@@ -267,7 +260,7 @@ def get_calibrated_cycle(self, treshold=0.01): | |
return new_cycle | ||
|
||
|
||
@alphatims.utils.njit | ||
@nb.njit | ||
def quadrupole_transfer_function_single( | ||
quadrupole_calibration_jit, observation_indices, scan_indices, isotope_mz | ||
): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s breaking in theory :D alphabase can’t use the custom mods with multiprocessing yet. So it’s not being used (yet)