Skip to content

Conversation

@ziotom78
Copy link
Member

PointingProvider.get_pointings used to run the slerp operation over the whole timeline, thus allocating a significant amount of memory. Now the class' constructor accepts a new argument that limits the maximum amount of memory for the temporary buffer used to store the fully-sampled quaternions (default is 256 MB). This should slow a bit the generation of pointings, but it has the advantage to limit the amount of memory needed for a simulation run.

PointingProvider.get_pointings used to run the slerp operation over the
whole timeline, thus allocating a significant amount of memory. Now the
class' constructor accepts a new argument that limits the maximum amount
of memory for the temporary buffer used to store the fully-sampled
quaternions (default is 256 MB). This should slow a bit the generation
of pointings, but it has the advantage to limit the amount of memory
needed for a simulation run.
@github-actions
Copy link

github-actions bot commented Jan 27, 2026

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  litebird_sim
  beam_convolution.py
  beam_synthesis.py
  constants.py
  coordinates.py
  healpix.py
  hwp_harmonics.py
  observations.py
  pointings.py
  scan_map.py
  simulations.py
  spherical_harmonics.py
  units.py
Project Total  

This report was generated by python-coverage-comment-action

@ziotom78 ziotom78 merged commit ae3d191 into master Jan 27, 2026
12 checks passed
@ziotom78 ziotom78 deleted the optimize_quaternions branch January 27, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants