populse_mia 3.0.0-dev+e05f3e3c documentation

populse_mia.user_interface.data_browser.rapid_search

Contents

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

RapidSearch(databrowser)

Widget for pattern searching in table data across visualized tags.

class populse_mia.user_interface.data_browser.rapid_search.RapidSearch(databrowser)[source]¶

Bases: QLineEdit

Widget 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.

prepare_not_defined_filter(tags)[source]¶

Create a filter for finding entries with undefined values.

Parameters:

tags – (list) List of tags to check for null values.

:Returns (str) QL-like filter expression for finding null values.

Contents

© Copyright 2022, populse. Created using Sphinx 8.1.3.