Skip to content

Commit

Permalink
convenience constructor from filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
kcarloni committed Dec 26, 2023
1 parent cf4aa17 commit 60fb63a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_SplineTable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function SplineTable( f::FITS )
return SplineTable( ndim, orders, extents, knots, coeffs)
end

SplineTable( fpath ) = FITS( fpath ) do f; SplineTable(f); end

# -----------------

(f::SplineTable)(x) = evaluate_simple(x, f)
Expand Down

0 comments on commit 60fb63a

Please sign in to comment.