iode.Comments.index

Comments.index(name: str) int

Return the position of the IODE object with name name in the database.

Parameters:
name: str

Name of the IODE object to search for in the database.

Returns:
int

Examples

>>> from iode import SAMPLE_DATA_DIR
>>> from iode import comments
>>> comments.load(f"{SAMPLE_DATA_DIR}/fun.cmt")
Loading .../fun.cmt
317 objects loaded 
>>> comments.index("ACAF")
0