iode.Database.save
Note
Below, Database represents either:
Comments
Equations
Identities
Lists
Scalars
Tables
Variables
- Database.save(self, filepath: str)
Save objects of the current database into the file ‘filepath’.
- Parameters:
- filepath: str
Examples
>>> from iode import SAMPLE_DATA_DIR >>> from iode import comments >>> comments.load(f"{SAMPLE_DATA_DIR}/fun.cmt") >>> len(comments) 317 >>> comments.save(f"{SAMPLE_DATA_DIR}/fun2.cmt") >>> comments.clear() >>> comments.load(f"{SAMPLE_DATA_DIR}/fun2.cmt") >>> len(comments) 317