bw2io.importers.exiobase3_monetary#
Classes#
Base class for format-specific importers. |
Module Contents#
- class bw2io.importers.exiobase3_monetary.Exiobase3MonetaryImporter(dirpath, db_name, ignore_small_balancing_corrections=True)[source]#
Bases:
bw2io.importers.base_lci.LCIImporter
Base class for format-specific importers.
Defines workflow for applying strategies.
Takes a database name (string) as initialization parameter.
- write_database(biosphere=None)[source]#
Write data to a
Database
.All arguments are optional, and are normally not specified.
delete_existing
effects both the existing database (it will be emptied prior to writing if True, which is the default), and, ifactivate_parameters
is True, existing database and activity parameters. Database parameters will only be deleted if the import data specifies a new set of database parameters (i.e.database_parameters
is notNone
) - the same is true for activity parameters. If you need finer-grained control, please use theDatabaseParameter
, etc. objects directly.- Parameters:
data (*) β The data to write to the
Database
. Default isself.data
.delete_existing (*) β See above.
activate_parameters (*)
backend (*) β Storage backend to use when creating
Database
. Default is the default backend.
- Returns:
Database
instance.