Skip to content

Commit

Permalink
Fix sparse sampling for Lambda == 1e8.
Browse files Browse the repository at this point in the history
This is a stopgap solution to make sparse-ir work with very large Lambdas
of 1e8 and 1e9. At some point, we may want to infer the grid from the
grid points in the piecewise Legendre poly.
  • Loading branch information
iskakoff authored and mwallerb committed Apr 15, 2024
1 parent c592c08 commit 698404c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparse_ir/poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class PiecewiseLegendreFT:
``n`` must be odd.
"""
_DEFAULT_GRID = np.hstack([np.arange(2**6),
(2**np.linspace(6, 25, 16*(25-6)+1)).astype(int)])
(2**np.linspace(6, 35, 16*(35-6)+1)).astype(int)])

def __init__(self, poly, freq='even', n_asymp=None, power_model=None):
if poly.xmin != -1 or poly.xmax != 1:
Expand Down

0 comments on commit 698404c

Please sign in to comment.