Repository navigation
v2.1.0
planetmodel 2.1.0
A feature release for planetmodel.fourier. Nothing breaks: existing calls
give the same values as 2.0.0.
Added
- Transforms at prepared points.
Transform.at(points, *, route=, epsilon=, nthreads=)
prepares a set of points once and returns afourier.PointTransform, whose
synthesise,synthesise_gradientandaccumulatetake no points and give
the same results as the transform's methods of those names. The points'
angles are computed once and, on the finufft route, each plan is made on
first use and kept. At 20 000 points on a 64 × 64 grid an application takes
about a third less time than passing the points on every call. - A
PointTransformcan be copied and pickled (its plans are rebuilt on first
use) and is safe to apply from several threads.
Changed
Transform.from_rfftandTransform.to_rfftare about twice as fast for a
single array or vector without batch axes; values are unchanged.Transform.synthesise,synthesise_gradientandaccumulatenow run
through a prepared-points transform internally; results and refusals are as
before.