Skip to main content
Work with point and range attribute types, including multi-valued points and open-ended ranges.

Connect to MI

Get a database and table.

Create a new record and path

Define a path in the table from a starting folder (in this case the top level folder) using path_from(). If the path does not exist, the required folders will be created. Create a new Record object at the end of the path.
Previous cell output:

Edit the record’s attributes

Access some empty point and range attributes.

Point attributes

Assign a list of numeric values to the points property. If multiple values are assigned, you must also assign a list of dictionaries containing the parameter values to the parameters property. (The two lists must be the same length.) Here, a single parameter called Basis is used to discriminate between the two point values.

Range attributes

Access the value property directly and assign either a dictionary or tuple for high and low values. Omitting either the ‘low’ or ‘high’ value creates an open-ended range.
The high and low values can separately be flagged as either inclusive (≤ and ≥) or exclusive (< and >). Ranges default to inclusive.
Previous cell output:

Write your changes to MI

First, specify the attributes on the record which you want to update on the server. Then write the changes to MI. The list of updated Record objects is returned.

Output the record’s attributes

Access the attribute values via the same properties you used to assign them.
Previous cell output:
Define a function to format ranges as strings with the appropriate inclusive or exclusive inequality symbols.
Previous cell output: