REGISTER NOW: DdS Autumn School! 🇨🇭 Grosshöchstetten (Switzerland) 🗓️ 6.-11. October 2024

bw2io.importers.exiobase3_monetary#

Module Contents#

Classes#

Exiobase3MonetaryImporter

Base class for format-specific importers.

class bw2io.importers.exiobase3_monetary.Exiobase3MonetaryImporter(dirpath, db_name, ignore_small_balancing_corrections=True)[source]#

Bases: bw2io.importers.base_lci.LCIImporter

Inheritance diagram of bw2io.importers.exiobase3_monetary.Exiobase3MonetaryImporter

Base class for format-specific importers.

Defines workflow for applying strategies.

Takes a database name (string) as initialization parameter.

format = 'Exiobase 3'[source]#
add_unlinked_flows_to_new_biosphere_database(biosphere_name=None)[source]#
apply_strategies(biosphere=None)[source]#
abstract apply_strategy(*args, **kwargs)[source]#
patch_lcia_methods(new_biosphere)[source]#
write_activities_as_database()[source]#
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, if activate_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 not None) - the same is true for activity parameters. If you need finer-grained control, please use the DatabaseParameter, etc. objects directly.

Args:
  • data (dict, optional): The data to write to the Database. Default is self.data.

  • delete_existing (bool, default True): See above.

  • activate_parameters (bool, default False). Instead of storing parameters in Activity and other proxy objects, create ActivityParameter and other parameter objects, and evaluate all variables and formulas.

  • backend (string, optional): Storage backend to use when creating Database. Default is the default backend.

Returns:

Database instance.