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 argumentversion_guidincorrectly attempted to match the provided value to database names. It now correctly matches databases by version guid.Database.version_guidincorrectly 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 incorrectTablereference. - The
unitproperty has been removed from attribute definition classes that do not have units. The following classes are now the only ones that have aunitproperty: - Attribute definition classes that expose the
unitproperty now returnNoneif the corresponding attribute has no associated unit, not an empty string. - Units returned by
AttributeDefinitionTabular.column_unitsare nowNonefor 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
unitproperty returned by parameter definitions is nowNoneif the corresponding parameter is dimensionless, not an empty string. Record.last_modified_on,Record.created_on, andRecord.released_onnow include timezone information. This allows these values to be localized correctly.- Searching for records by date attribute value with naive
datetimeobjects could cause unexpected results if the server was set to a non-UTC timezone. This has been resolved by enforcing search withdateobjects 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.valuedid not update the correspondingBinaryType.mime_file_type.
Foundation API
- The Foundation API has been upgraded to the 23/10 Service Layer SOAP interface, which is supported by Granta MI 2024 R1 or later.
- Removed methods
GRANTA_Logging.debug,GRANTA_Logging.info,GRANTA_Logging.warning, andGRANTA_Logging.error. UseGRANTA_Logging.core_logger()to obtain theLoggerobject directly. - Removed method
OIDC.authorize(), this has been replaced withOIDC.authorize_with_authorization_code_flow() - Import of tabular attributes now uses separate types.
TabularDataImportTypenow accepts a list ofTabularDataImportRowvia theTabularDataImportType.add_import_row_refs()property, or a list ofTabularDataUpdateRowvia theTabularDataImportType.add_update_row_refs()property. - Added new classes
TabularDataImportRow,TabularDataUpdateRow, andTabularDataImportCellto better support updating tabular attributes. - Support has been added for Device Code Flow, this makes it easier to use the Scripting Toolkit in environments where a
web browser is not available. Use
OIDC.authorize_with_device_code_flow()to authenticate. - The Foundation API now follows PEP 8 formatting guidelines.
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 Datawith Float Functional Data. - Replaced examples
Edit Tabular DataandCreate and edit tabular datawith 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.