Main Content

slmetric.config.Configuration.open

Class: slmetric.config.Configuration
Namespace: slmetric.config

(To be removed) Create configuration object associated with XML configuration file in base workspace

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.

Description

Reads the contents of an XML file containing Metrics Dashboard customizations into memory and returns the corresponding configuration object. The XML file contains customizations pertaining to metric thresholds and custom metric families. If you modify the contents of the configuration object, invoke the save method to write to the associated XML file.

example

Co = slmetric.config.Configuration.open('FileName','myConfig.xml',... 'Location', pwd) reads a configuration file.

Note

If you do not supply an input argument, the slmetric.config.Configuration.open command reads the contents of the default Metrics Dashboard configuration XML file into memory and returns the corresponding slmetric.dashboard.Configuration object.

Input Arguments

expand all

Name of XML file containing Metrics Dashboard customizations pertaining to metric thresholds and custom metric families.

Data Types: char

Name of folder containing XML file that contains Metrics Dashboard customizations pertaining to metric thresholds and custom metric families. This input argument is optional.

Data Types: char

Name of folder containing XML file that contains Metrics Dashboard customizations. This input argument is optional.

Data Types: char

Output Arguments

expand all

slmetric.config.Configuration object that you want to open.

Data Types: char

Examples

expand all

Use the open method to add an existing slmetric.config.Configuration object to the base workspace. As an input, specify the name of the XML file that contains the information on the custom metric families and metric thresholds corresponding to the configuration object. If you modify the information that this configuration object contains, use the slmetric.config.Configuration.save method to save this information to the XML file.

CONF = slmetric.config.Configuration.open('FileName', 'myConfig.xml',...
 'Location', pwd()); 

Version History

Introduced in R2018b

collapse all

R2022a: Metrics Dashboard will be removed

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.