bluesky / event-model

data model for event-based data collection and analysis
https://blueskyproject.io/event-model
BSD 3-Clause "New" or "Revised" License
13 stars 30 forks source link

UserWarning: 'bulk_events' has been deprecated in favor of 'event_page', #231

Open prjemian opened 1 year ago

prjemian commented 1 year ago

Getting this UserWarning with fly scans (such as in this Howto guide):

${CONDA_PREFIX}/lib/python3.9/site-packages/event_model/__init__.py:208: UserWarning: The document type 'bulk_events' has been deprecated in favor of 'event_page', whose structure is a transpose of 'bulk_events'.

Expected Behavior

Expecting no warning.

Current Behavior

raises UserWarning

Possible Solution

unknown

Steps to Reproduce (for bugs)

see example: https://bcda-aps.github.io/apstools/examples/de_scaler_motor_flyer.html#Scan

Context

Would like to demonstrate bluesky in a way that it does not generate stray warnings. For now, added an ignore filter to pytest.ini configuration file:

[pytest]
filterwarnings =
    ignore:.*bulk_events.*event_page.*:UserWarning

Your Environment

see example: https://bcda-aps.github.io/apstools/examples/de_scaler_motor_flyer.html#Scan

prjemian commented 1 year ago

Since the calling plans do not include the text bulk_events, not sure what my code can do about this warning.