iode.Comments.__contains__
- Comments.__contains__(item) bool
Test if the IODE object named item is present in the current database.
- Parameters:
- item: str
name of the IODE object.
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 >>> "ACAF" in comments True >>> "ZCAF" in comments False