Skip to content

Commit

Permalink
Merge pull request #3168 from silx-kit/speedup_get_next_power
Browse files Browse the repository at this point in the history
Speed up image.tomography.get_next_power()
  • Loading branch information
payno authored Jul 28, 2020
2 parents f1bcf32 + 0f09540 commit 221eb8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions silx/image/tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

import numpy as np
from math import pi
from functools import lru_cache
from itertools import product
from bisect import bisect
from silx.math.fit import leastsq
Expand Down Expand Up @@ -128,6 +129,7 @@ def compute_fourier_filter(dwidth_padded, filter_name, cutoff=1.):
return filt_f


@lru_cache(maxsize=1)
def generate_powers():
"""
Generate a list of powers of [2, 3, 5, 7],
Expand Down

0 comments on commit 221eb8a

Please sign in to comment.