Skip to content

Added function that searches for proposals by PI name#249

Open
Juan Marulanda (jmaruland) wants to merge 7 commits intoNSLS2:mainfrom
jmaruland:add-find-proposals-function
Open

Added function that searches for proposals by PI name#249
Juan Marulanda (jmaruland) wants to merge 7 commits intoNSLS2:mainfrom
jmaruland:add-find-proposals-function

Conversation

@jmaruland
Copy link
Copy Markdown

This PR adds a function that will allow BL staff to search in tiled for proposals in by PI name and cycle (optional). The goal is to allow BL staff to import this method in their bsui environment and have this function at hand during their experiments.
This function was tested with the OPLS and SMI catalogs

@jmaruland
Copy link
Copy Markdown
Author

After receiving some feedback from BL staff, I added an additional input parameter that allows optional queries. This is intended for other filed in the start document that BL staff would find useful to search for proposals. I narrowed down the search to string and numerical types; other data types are not included.
E.g.:

>>> find_proposals(
        tiled_reading_client,
        "Smith",
        cycle="2026-1",
        optional_queries={"exposure_time": (">", 10)},
        show_title=True,
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant