Package schrodinger :: Package test :: Package squish :: Package maestro :: Module project_table :: Class ProjectTable
[hide private]
[frames] | no frames]

Class ProjectTable

Interact with project table with minimal use of Squish object map.

Instance Methods [hide private]
 
__init__(self)
Open Python shell and instantiate project table using Schrodinger API
 
open(self)
Open the project table panel
 
close(self)
Close the project table panel
 
import_file(self, filename)
Import file with filename from maestro cwd
 
entryid_from_row(self, row)
 
include(self, to_include)
Include in WS the entry with entry_title matching string or row matching int.
 
also_include(self, to_include)
Include in WS all entries with entry_title matching string or row matching int.
 
exclude(self, to_exclude)
Exclude from the WS only the entry with entry_title matching string or row matching int.
 
get_all_entryids(self)
Get complete list of entry ids in PT as ints, in PT order (not sorted)
 
get_all_titles(self)
Get complete list of entry titles in PT, in PT order (not sorted)
 
get_entryids(self, to_find, all_entryids=None, all_titles=None)
Return a list of unique entry ids from PT with entry title matching string or visible row matching int.
 
get_selected_entryids(self)
Get entry ids from PT for just those rows that are selected
 
delete_rows(self, to_delete)
Delete from the PT only the entries with entry_title matching string or visible row matching int.
 
delete_selected(self)
Delete from the PT those rows that are currently selected
 
select(self, to_select)
Select only the entry with entry_title matching string or row matching int.
 
also_select(self, to_select)
Also select the entries with entry_title matching string or row matching int i.e.
 
deselect(self, to_deselect)
Deselect the entries with entry_title matching string or row matching int i.e.
 
select_all(self)
Select all rows in the PT
 
deselect_all(self)
Deselect all rows in the PT
 
invert_selection(self)
Invert PT selection
 
show_all_properties(self)
 
hide_all_properties(self)
 
show_properties(self, prop_string)
Show only specified properties.
 
get(self, key_prop, property_name)
Get property value from project table cell indicated by given key property vs column property name.
 
get_properties(self, row_ids, property_names)
Return all properties matching indicated row and property lists.
 
selected_rows(self)
 
included_rows(self)
 
all_properties(self)
 
visible_properties(self)
Method Details [hide private]

include(self, to_include)

 

Include in WS the entry with entry_title matching string or row matching int. Exclude others. Simulates left-click.

also_include(self, to_include)

 

Include in WS all entries with entry_title matching string or row matching int. Also accepts list of mixed int and str. Simulates right-click.

exclude(self, to_exclude)

 

Exclude from the WS only the entry with entry_title matching string or row matching int. Also accepts list of mixed int and str.

get_entryids(self, to_find, all_entryids=None, all_titles=None)

 

Return a list of unique entry ids from PT with entry title matching string or visible row matching int. Also accepts list of mixed int, str, or list.

delete_rows(self, to_delete)

 

Delete from the PT only the entries with entry_title matching string or visible row matching int. Also accepts list of mixed int, str, or list.

also_select(self, to_select)

 

Also select the entries with entry_title matching string or row matching int i.e. identical to Ctrl-Click. Also accepts list of mixed int and str.

deselect(self, to_deselect)

 

Deselect the entries with entry_title matching string or row matching int i.e. identical to Ctrl-Click. Also accepts list of mixed int and str.

show_properties(self, prop_string)

 

Show only specified properties. Copy output from Mastro Window --> 'Command Script Editor' e.g. '"Title" "Entry ID" "Entry Name"' etc

get(self, key_prop, property_name)

 

Get property value from project table cell indicated by given key property vs column property name. Key Property can be either Entry row number as integer or Entry Title as string. If Project Table contains multiple entries matching the title, then first matching entry will be taken.

get_properties(self, row_ids, property_names)

 

Return all properties matching indicated row and property lists. row_ids can include row numbers mixed with strings. Properties will be returned for all rows matching a given title.

Parameters:
  • row_ids (list of ints and/or strings) - list of row numbers or ct titles.
  • property_names (list of strings) - list of property names