tree_model

Module Contents

Classes

DatasetTreeNode

Contains the files with their respective particles. Also seems to house the actual data objects.

DatasetTreeModel

An item model for the dataset tree view.

Attributes

logger

tree_model.logger = "'tree_model'"[source]
class tree_model.DatasetTreeNode(name, dataobj, datatype, checked=False)[source]

Bases: object

Contains the files with their respective particles. Also seems to house the actual data objects.

_data[source]
_columncount[source]
_children = '[]'[source]
_parent = 'None'[source]
_row = '0'[source]
datatype[source]
dataobj[source]
checked()[source]

Appears to be used internally.

Return type:

Returns check status.

setChecked(checked=True)[source]
data(in_column)[source]

Return the data from a provided index

Parameters:

in_column (Index of column)

Return type:

data

columnCount()[source]

Returns the number of columns within the node.

Return type:

int

childCount()[source]

Returns the number of children within the node.

Return type:

int

child(in_row)[source]

Returns the child of the provided row index.

Parameters:

in_row (Row index)

Return type:

child

parent()[source]

Returns the parent of this node.

Return type:

parent

row()[source]

Returns the row of this node.

Return type:

row

addChild(in_child)[source]

Add a child at the provided index.

Parameters:

in_child

class tree_model.DatasetTreeModel[source]

Bases: PyQt5.QtCore.QAbstractItemModel

An item model for the dataset tree view.

_root[source]
none[source]
r[source]
l[source]
a[source]
e[source]
rl[source]
rg[source]
ra[source]
re[source]
la[source]
le[source]
ae[source]
rlg[source]
rla[source]
rle[source]
rga[source]
rge[source]
rae[source]
lae[source]
rlga[source]
rlge[source]
rlae[source]
rgae[source]
rlgae[source]
flags(index)[source]
rowCount(in_index)[source]

TODO: Docstring

Parameters:

in_index

addChild(in_node, in_parent=None)[source]

TODO: Docstring

Parameters:
  • in_node

  • in_parent

  • progress_sig

index(in_row, in_column, in_parent=None)[source]

TODO: Docstring

Parameters:
  • in_row

  • in_column

  • in_parent

parent(in_index)[source]

TODO: Docstring

Parameters:

in_index

columnCount(in_index)[source]

TODO: Docstring

Parameters:

in_index

get_particle(ind) smsh5.Particle[source]

Returns the smsh5.Particle object of the ind’th tree particle.

Parameters:

ind (int) – The index of the particle.

Return type:

smsh5.Particle

data(in_index, role)[source]

TODO: Docstring

Parameters:
  • in_index

  • role

setData(index, value, role=Qt.EditRole)[source]