populse_mia.user_interface.data_browser.rapid_search¶
Rapid Search Widget Module.
This module provides the RapidSearch widget, a specialized QLineEdit component for performing quick searches across visualized tags in the data browser table.
The RapidSearch widget enables users to filter DataBrowser using various search patterns and wildcards. It supports searching for specific text patterns as well as finding entries with undefined or missing values.
Classes
|
Widget for pattern searching in table data across visualized tags. |
- class populse_mia.user_interface.data_browser.rapid_search.RapidSearch(databrowser)[source]¶
Bases:
QLineEditWidget for pattern searching in table data across visualized tags.
- Supports special search syntax:
‘%’: Wildcard for any string.
‘_’: Wildcard for any single character.
‘Not Defined’: Matches scans with missing values.
Dates should be formatted as: yyyy-mm-dd hh:mm:ss.fff.
Contains:
Methods:
prepare_filter: Prepares the rapid search filter.
prepare_not_defined_filter: Prepares the rapid search filter for not defined values.
- __init__(databrowser)[source]¶
Initialize the RapidSearch widget.
- Parameters:
databrowser – Parent data browser widget.
- static prepare_filter(search, tags, scans)[source]¶
Create a filter for searching text across specified tags.
- Parameters:
search – (str) Search pattern to look for.
tags – (list) List of tags to search within.
scans – (list) List of scans to restrict the search to.
:Returns (str) SQL-like filter expression for the search.