Skip to main content
Create a new tabular attribute, add, delete and swap rows, and edit the units.

Create a new record

Connect to MI and specify a database and table.
Create a new record.

Access a Tabular attribute

Access the (empty) Tabular attribute Workflow history.
Previous cell output:
Inspect the tabular datum. Using the method show() shows the table in ASCII format.
Previous cell output:
Look at the __repr__ of the attribute. There are currently no rows in the table.
Previous cell output:
Tabular attributes can be loaded with the load() method (there is no data to load in this example):

Add rows and data

Add three (empty) rows to the Tabular object, and view the table in an ACSII-style format.
Previous cell output:
Data is added by accessing the tabular property. The column name should be provided as a string followed by the index of the row. Start by populating the first row:
Previous cell output:
Populate the second row:
Previous cell output:
Then populate the third row. The data is stored locally, so the linking values are displayed as <linking value not chosen>.
Previous cell output:
Previous cell output:
Previous cell output:

Edit the table

Rows can be moved using the swap_rows() method.
Previous cell output:
Previous cell output:
Rows can also be deleted; for example, one of the two duplicate rows in this table.

Access the units

Each Tabular object is associated with a TabularUnits object which stores the units for the Tabular data. View (and edit) these units through the tabular.units property.
Previous cell output:
Access the complete set of units for the tabular datum
Previous cell output:

Write your changes to MI

Set your new attribute to update, and write the changes to the server.

Notes about Tabular data:

  • Point-type values in Tabular cannot have parameters, and are always lists.
  • Any changes to linked data will be ignored on import.