pcdshub / happi

Heuristic Access to Positions of Photon Instruments
https://pcdshub.github.io/happi/master
Other
13 stars 29 forks source link

ENH: Cannot search if entry is a list #283

Open tangkong opened 2 years ago

tangkong commented 2 years ago

Expected Behavior

It should be possible to search when the data being matched is a list of values

Current Behavior

Currently if the search term is not a range or a number, it is interpreted as a string.

Possible Solution

A flag to interpret the search term as a list of entries? Or possibly check of the string is in the list?

Steps to Reproduce (for bugs)

With the new lightpath containers, input_branches and output_branches are a list of strings.

Context

Searching by branches is not possible currently, and I'd like it to be

Your Environment

pcds-5.4.1