APS-USAXS / usaxs-bluesky-ended-2023

Bluesky instrument for USAXS
0 stars 0 forks source link

use bps.checkpoint() in batch plans #556

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

@tcaswell suggest that we add calls to yield from bps.checkpoint() in between the lines of a user batch plan to clear out some temporary caches. It is expected this will help with memory management (see #500, #522, maybe #546, for a few recent examples of problems with memory).

Perhaps after this code:

https://github.com/APS-USAXS/ipython-usaxs/blob/981b4743d77ecf92d4f75768dd9ec3019215109b/profile_bluesky/startup/instrument/plans/command_list.py#L458-L460

prjemian commented 2 years ago

See: