iode.ComputedTable.files

property ComputedTable.files: List[str]

The list of files associated with the computed table.

Examples

>>> from pathlib import Path
>>> from iode import SAMPLE_DATA_DIR
>>> from iode import Table, tables, variables
>>> tables.load(f"{SAMPLE_DATA_DIR}/fun.tbl")
Loading .../fun.tbl
46 objects loaded 
>>> variables.load(f"{SAMPLE_DATA_DIR}/fun.var")
Loading .../fun.var
394 objects loaded
>>> # simple time series (current workspace + one extra file) - 5 observations
>>> computed_table = tables["C8_1"].compute("2010[1-2]:5", extra_files=f"{SAMPLE_DATA_DIR}/ref.av")
>>> computed_table.nb_files
2
>>> for filepath in computed_table.files:
...     print(Path(filepath).name)
fun.var
ref.av
>>> computed_table.nb_operations_between_files
1
>>> computed_table
   line title \ period[file]     | 10[1-2] | 11[1-2] | 12[1-2] | 13[1-2] | 14[1-2]
-----------------------------------------------------------------------------------
Output potentiel                 |  138.72 |  140.91 |  143.23 |  146.05 |  149.20
Stock de capital                 |  225.88 |  230.50 |  234.74 |  239.51 |  245.28
Intensité de capital             |    0.01 |    0.01 |    0.01 |    0.01 |    0.01
Productivité totale des facteurs |    0.02 |    0.02 |    0.02 |    0.02 |    0.02