Commit 2774b404 authored by Akdel's avatar Akdel
Browse files

debug (removed njit)

parent d554246b
......@@ -4,7 +4,7 @@ import numpy as np
MINV = np.finfo(np.float64).min
# @nb.njit
@nb.njit
# @numba_cc.export('_make_dtw_matrix', 'f64[:](f64[:], f64, f64)')
def _make_dtw_matrix(distance_matrix: np.ndarray,
gap_open_penalty: float = 0.,
......@@ -71,7 +71,7 @@ def _make_dtw_matrix(distance_matrix: np.ndarray,
return matrix, backtrack
# @nb.njit
@nb.njit
# @numba_cc.export('_get_dtw_alignment', '(i64, i64[:], i64, i64)')
def _get_dtw_alignment(start_direction, backtrack: np.ndarray, n1, m1):
"""
......
......@@ -46,7 +46,7 @@ def dtw_signals_index(coords_1, coords_2, index, size=30, overlap=1):
return coords_1, coords_2
@nb.njit
# @nb.njit
# @numba_cc.export('get_dtw_signal_score_pos', '(f64[:], f64[:], f64, i64, f64, f64)')
def get_dtw_signal_score_pos(coords_1, coords_2, gamma, index, gap_open_penalty, gap_extend_penalty):
coords_1[:, :3], coords_2[:, :3] = dtw_signals_index(coords_1[:, :3], coords_2[:, :3], index)
......@@ -75,7 +75,7 @@ def get_secondary_distance_matrix(secondary_1, secondary_2, gap=0):
return score_matrix
@nb.njit
# @nb.njit
# @numba_cc.export('get_secondary_rmsd_pos', '(i8[:], i8[:], f64[:], f64[:], f64, f64, f64)')
def get_secondary_rmsd_pos(secondary_1, secondary_2, coords_1, coords_2, gamma, gap_open_sec, gap_extend_sec):
distance_matrix = get_secondary_distance_matrix(secondary_1, secondary_2)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment