Коммит 306489cd создал по автору Dealga McArdle's avatar Dealga McArdle
Просмотр файлов

use cleaner names

владелец 55ac000c
......@@ -11,7 +11,7 @@ from sverchok.dependencies import numba
local_numba_storage = {}
def gofaster(function_to_compile):
def use_numba_if_possible(function_to_compile):
if numba:
function_name = function_to_compile.__name__
if function_name not in local_numba_storage:
......
......@@ -47,7 +47,7 @@ from sverchok.data_structure import match_long_repeat, describe_data_shape
from sverchok.utils.math import np_mixed_product
from sverchok.utils.logging import debug, info
from sverchok.utils.decorators_warpspeed import gofaster
from sverchok.utils.decorators_compilation import use_numba_if_possible
identity_matrix = Matrix()
......@@ -235,7 +235,7 @@ class CubicSpline(Spline):
if n < 2:
raise Exception("Cubic spline can't be built from less than 3 vertices")
@gofaster
@use_numba_if_possible
def calc_cubic_splines(tknots, n, locs):
"""
returns splines
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать