Skip to main content

Streamlined API

  • Added support for Device Code Flow authentication, making it easier to use the Scripting Toolkit in environments where a web browser is not available. Use OIDCSessionBuilder.with_device_code_flow().
  • Fixed an issue where it was not possible to authenticate with Microsoft Entra ID from Linux environments.
  • Fixed an issue where it was not possible to refresh the OIDC access token a second time if token rotation was disabled.
  • Session.get_db() called with the argument version_guid incorrectly attempted to match the provided value to database names. It now correctly matches databases by version guid.
  • Database.version_guid incorrectly returned the database name. It now correctly returns the database version guid.
  • Added a Table.bulk_fetch_all_record_versions() method, which fetches all versions of one or more records in bulk.
  • Fixed an issue where results from Table.bulk_fetch_associated_records() were created with an incorrect Table reference.
  • The unit property has been removed from attribute definition classes that do not have units. The following classes are now the only ones that have a unit property:
  • Attribute definition classes that expose the unit property now return None if the corresponding attribute has no associated unit, not an empty string.
  • Units returned by AttributeDefinitionTabular.column_units are now None for attributes with no associated unit columns, not an empty string.
  • Added property AttributeDefinitionDiscrete.is_ordered, which describes whether the discrete type associated with the discrete attribute is ordered.
  • The unit property returned by parameter definitions is now None if the corresponding parameter is dimensionless, not an empty string.
  • Record.last_modified_on, Record.created_on, and Record.released_on now include timezone information. This allows these values to be localized correctly.
  • Searching for records by date attribute value with naive datetime objects could cause unexpected results if the server was set to a non-UTC timezone. This has been resolved by enforcing search with date objects only.
  • Exporter.save() no longer raises an exception when saving the output of an FEA Export template configured to include a byte order mark.
  • Fixed an issue where modifying AttributeBinary.value did not update the corresponding BinaryType.mime_file_type.

Foundation API

Documentation

  • Added new example Data with Precision.
  • Removed example Create Functional Data. See Data analytics example notebooks for examples that show how to fit raw test data.
  • Replaced example Import Functional Data with Float Functional Data.
  • Replaced examples Edit Tabular Data and Create and edit tabular data with new examples Local Tabular Data and Linked Tabular Data.
  • Added new section Package overview. This section provides an overview of the structure of MI Scripting Toolkit and guidance on direct use of the Foundation API.
  • Added new section Exceptions. This section describes the different exceptions raised by MI Scripting Toolkit, and how to handle them appropriately.
  • Improved Streamlined API reference by adding additional cross-reference for parameter types, guidance around which methods and properties trigger Service Layer calls, and how to obtain correctly-instantiated classes for existing Granta MI items.