Skip to content

The no_bpm setting doesn't always work #428

@timbeccue

Description

@timbeccue

Expected Behavior

If I set context.no_bpm = True, I expect to be able to process images without getting errors like BPM does not exist.

Actual Behavior

I've noticed the above error happening anyways.

How to reproduce

In docs/example_reduction.ipynb, append settings.no_bpm = True at the bottom of the fourth code cell (where all the settings are configured).

In the following cell, you can verify that this was applied correctly to the context object with print(vars(context)['no_bpm']).

In the Download Data section, remove the block that downloads the bpm. Then in the Set up the database section, remove the block that adds the bpm to the database.

If you run the notebook with these changes applied, the logs for each of the processing cells will contain errors ERROR: banzai: Master BPM does not exist. Running the notebook in its original form does not produce these errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions