Data

class pathomx.data.DataDefinition(target, definition={}, title=None, *args, **kwargs)[source]
can_consume(data)[source]
check(o)[source]
cmp_map = {u'>=': <built-in function ge>, u'=': <built-in function eq>, u'<=': <built-in function le>, u'aloeic': <function at_least_one_element_in_common at 0x7fddc9b045f0>, u'!=': <built-in function ne>, u'<': <built-in function lt>, u'>': <built-in function gt>}
get_cmp_fn(s)[source]
class pathomx.data.DataManager(parent, view, *args, **kwargs)[source]
add_input(interface)[source]
add_output(interface, dso=None, is_public=True)[source]
can_consume(source_manager, source_interface, consumer_defs=None, interface=None)[source]
can_consume_which_of(molist, consumer_defs=None)[source]
consume(source_manager, source_interface)[source]
consume_any_app(app_l)[source]
consume_with(data, consumer_def)[source]
consumed = <pathomx.qt.pyqtSignal object>
get(interface)[source]
geto(interface)[source]
has_consumable(manager)[source]
interfaces_changed = <pathomx.qt.pyqtSignal object>
notify_watchers(interface)[source]
output_updated = <pathomx.qt.pyqtSignal object>
provide(target)[source]
put(interface, dso, update_consumers=True)[source]
refresh_consumed_data()[source]
remove_input(interface)[source]
remove_output(interface)[source]
reset()[source]
source_updated = <pathomx.qt.pyqtSignal object>
stop_consuming(target)[source]
unconsumed = <pathomx.qt.pyqtSignal object>
unget(interface)[source]
unput(interface)[source]
class pathomx.data.DataTreeItem(dso, header, parentItem)[source]

a python object used to return row/column data, and keep note of it’s parents and/or children

appendChild(item)[source]
child(row)[source]
childCount()[source]
columnCount()[source]
data(column)[source]
icon()[source]
parent()[source]
row()[source]
class pathomx.data.DataTreeModel(dsos=[], parent=None)[source]

a model to display a few names, ordered by sex

columnCount(parent=None)[source]
data(index, role)[source]
headerData(column, orientation, role)[source]
index(row, column, parent)[source]
parent(index)[source]
refresh()[source]
rowCount(parent=<pathomx.qt.QModelIndex object>)[source]
setupModelData()[source]
class pathomx.data.ImageDataDefinition(target, definition={}, title=None, *args, **kwargs)[source]

Custom matching definition for PIL Images

check(o)[source]
class pathomx.data.NumpyArrayDataDefinition(target, definition={}, title=None, *args, **kwargs)[source]

Custom matching definition for numpy arrays

check(o)[source]
class pathomx.data.PandasDataDefinition(target, definition={}, title=None, *args, **kwargs)[source]

Custom matching definition for pandas dataframes

check(o)[source]
pathomx.data.at_least_one_element_in_common(l1, l2)[source]