Help on PatternSet in module auviewer.patternset object:
class PatternSet(builtins.object)
| PatternSet(projparent, dbmodel)
|
| Represents a pattern set.
|
| Methods defined here:
|
| __init__(self, projparent, dbmodel)
| Initialize self. See help(type(self)) for accurate signature.
|
| addPatterns(self, df, validate=True)
| Add patterns to the pattern set. By default, the rows will be validated (e.g. for matching file ID & filename).
| This may be skipped in the case of extremely high volume, but it may lead to database integrity issues to do so.
|
| During validation, if filename is present and file_id is not, then file_id will be populated according to the
| filename. If both are populated, then the file_id will be validated to match the filename. The provided pattern
| set must contain 'file_id' and/or 'filename' columns as well as ['series', 'left', 'right', 'label'].
| :return: None
|
| assignToUsers(self, user_ids: Union[int, List[int]]) -> None
| Assign the pattern set to user(s).
| :param user_ids: May be single user ID or list of user IDs.
| :return: None
|
| delete(self, deletePatterns=False)
| Deletes the pattern set from the database and the parent project
| instance. If the pattern set has patterns, the deletion will fail,
| unless the deletePatterns flag is True, in which case it will first
| delete the child patterns.
|
| deletePatterns(self) -> int
| Delete the patterns belonging to this pattern set.
| :return: number of deleted patterns
|
| deleteUnannotatedPatterns(self) -> int
| Delete all patterns which have not yet been annotated from the set.
| :return: number of deleted patterns
|
| getAnnotationCount(self) -> int
| Returns a count of annotations which annotate any pattern in this set.
|
| getAnnotations(self) -> pandas.core.frame.DataFrame
| Returns a DataFrame of the annotations in this set.
|
| getPatternCount(self) -> int
| Returns a count of the patterns in this set.
|
| getPatterns(self) -> pandas.core.frame.DataFrame
| Returns a DataFrame of the patterns in this set.
|
| refresh(self)
| Refresh model & update the count of patterns belonging to this set
| (this is normally an internally-used method).
|
| setDescription(self, description: str)
| Set the pattern set's description.
|
| setName(self, name: str)
| Set the pattern set's name.
|
| setShowByDefault(self, show: bool)
| Set whether a pattern set should show by default.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)