Skip to content

Commit

Permalink
add doc for use_jax and test for use_jax
Browse files Browse the repository at this point in the history
  • Loading branch information
PFLeget committed Jul 2, 2024
1 parent 54e1975 commit 3a68eb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions piff/basis_interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ class BasisPolynomial(BasisInterp):
and is somewhat slower (nearly a factor of 2); however, it is significantly
less susceptible to numerical errors from high condition matrices.
Therefore, it may be preferred for some use cases. [default: False]
:param use_jax: Use JAX in _solve_direct compared to classic numpy/scipy. [default: False]
:param logger: A logger object for logging debug info. [default: None]
"""
_type_name = 'BasisPolynomial'
Expand Down
3 changes: 2 additions & 1 deletion tests/test_pixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,8 @@ def test_single_image():
},
'interp' : {
'type' : 'BasisPolynomial',
'order' : order
'order' : order,
'use_jax' : True,
},
},
}
Expand Down

0 comments on commit 3a68eb6

Please sign in to comment.