bluesky / databroker

Unified API pulling data from multiple sources
https://blueskyproject.io/databroker
BSD 3-Clause "New" or "Revised" License
33 stars 45 forks source link

Maint: Grant access to replay function from databroker.replay #748

Closed maffettone closed 6 months ago

maffettone commented 1 year ago

Previously this function was not importable.

If this was hidden on purpose, please feel free to close this request.

Description

Made it importable and removed one layer of indirection in the __init__.py

Motivation and Context

Seems like a lovely function to not be able to import.

How Has This Been Tested?

from databroker.replay import replay

maffettone commented 6 months ago

Good point. I followed the initial suggestion to place the importable function into the __init__, then renamed the main script as a script to remove confusion.