Skip to content

Bug: searchCatalog no longer works due to databroker bug #171

@PriyankaKetkarBNL

Description

@PriyankaKetkarBNL

Related to Issues #168 and #170, searchCatalog no longer works due to Regex not being imported from databroker.queries. Dan Allen let me know that all queries are available in bluesky-tiled-plugins. I have made a branch Issue170_UpdateDatabrokerImports to make these updates. Now, databroker is only needed for certain older usages.

Also added to this branch is an alternative way to load scans if the loader is unable to produce catalog of scan IDs and instead produces a container of UIDs in the future. This should be the second line of defense to proper imports.

The following blocks of code were successfully run from this branch.

!pip install "git+https://github.com/usnistgov/PyHyperScattering.git@Issue170_UpdateDatabrokerImports#egg=PyHyperScattering[bluesky]"

import PyHyperScattering as phs
Loader = phs.load.SST1RSoXSDB(corr_mode="none")
Catalog = Loader.c
Catalog
FilteredList = Loader.searchCatalog(cycle="2024-3", proposal_id ="314142", project="Carr")
FilteredList
ScanID = 91175
Scan = Loader.loadRun(ScanID).unstack('system')
Scan

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