NSLS-II / Bug-Reports

Unified issue-tracker for bugs in the data acquisition, management, and analysis software at NSLS-II
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Bluesky scan plan becomes empty after doing print_summary #176

Closed yugangzhang closed 6 years ago

yugangzhang commented 6 years ago

We found that a predefined bluesky scan plan, e.g., relative_outer_product_scan, becomes [ ] after doing print_summary( that_plan ).

hhslepicka commented 6 years ago

@yugangzhang relative_outer_product_scan is a generator and it was exhausted by print_summary that consumed all the messages inside of it. You need to create the plan again! This is not a bug it is just how it works! Check this part of the documentation... http://nsls-ii.github.io/bluesky/plans_intro.html?highlight=generators#a-primer-on-yield-and-yield-from

yugangzhang commented 6 years ago

@hhslepicka Thanks! I see.