Initializing help system before first use

Model.get_annotations

Purpose
Retrieve model annotations (metadata). Annotations can be accessed after loading a model, without running it.
Synopsis
function model.get_annotations(ident=None, prefix=None) -> dict
Arguments
ident 
Filter by identifier name (optional)
prefix 
Filter by annotation prefix (optional)
Return value
Dictionary mapping annotation names to values
Further information
1. Annotations are metadata defined in the Mosel source using special comments: !@name value for single-line annotations. They are organized in dot-separated categories ( e.g., doc.descr, insight.alias).
2. Use !@mc.flush to mark the end of model-level annotations before any immediately following block (declarations, subroutine definitions, etc.).
3. Annotations can be global (model-level) or associated with specific public symbols depending on their location in the source. The -D compiler option records annotations of the doc category; annotations in other categories ( e.g., insight) are stored independently of this flag.
Module
moselpy

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.