iode.Identities.i

property Identities.i: PositionalIndexer

Allow to select the ith identity in the database.

Examples

>>> from iode import identities, SAMPLE_DATA_DIR
>>> identities.load(f"{SAMPLE_DATA_DIR}/fun.idt")
Loading .../fun.idt
48 objects loaded 
>>> # get the first identity
>>> identities.i[0]
Identity('((WCRH/QL)/(WCRH/QL)[1990Y1])*(VAFF/(VM+VAFF))[-1]+PM*(VM/(VM+VAFF))[-1]')
>>> # get the last identity
>>> identities.i[-1]
Identity('YSFIC/(TWGP*ZJ)')
>>> # update first identity
>>> identities.i[0] = 't'
>>> identities.i[0]
Identity('t')
>>> # update last identity
>>> identities.i[-1] = 't'
>>> identities.i[-1]
Identity('t')