Package schrodinger :: Module antibody_db_manage_gui :: Class SearchType
[hide private]
[frames] | no frames]

Class SearchType

object --+
         |
        SearchType

Information about and widgets for each set of structures that are to be added to the Database

Instance Methods [hide private]
 
__init__(self, directory=None, files=None, workspace=False, database=None)
Create a SearchType instance
 
remove(self)
Remove this search object from consideration
list
getFiles(self, ext_list=None)
Get the list of files specified by this search object

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, directory=None, files=None, workspace=False, database=None)
(Constructor)

 

Create a SearchType instance

Parameters:
  • directory (str) - Path to the directory if this is for a full directory search. Default is None.
  • files (list) - list of file paths that will be added to the database. It is assumed these are all in the same directory. Default is None.
  • workspace (bool) - True if this is for included entries, False (default) if not.
  • database (str) - The path to a database file if this is for a database
Overrides: object.__init__

getFiles(self, ext_list=None)

 

Get the list of files specified by this search object

Parameters:
  • ext_list (list) - The list of extensions to search for
Returns: list
list of paths to files specified by this object