iode.Database.__contains__
Note
Below, Database represents either:
Comments
Equations
Identities
Lists
Scalars
Tables
Variables
- Database.__contains__()
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") >>> "ACAF" in comments True >>> "ZCAF" in comments False