bw2io.importers.simapro_csv#
Classes#
Base class for format-specific importers. |
Module Contents#
- class bw2io.importers.simapro_csv.SimaProCSVImporter(filepath, name=None, delimiter=';', encoding='latin-1', normalize_biosphere=True, biosphere_db=None, extractor=SimaProCSVExtractor)[source]#
Bases:
bw2io.importers.base_lci.LCIImporterBase class for format-specific importers.
Defines workflow for applying strategies.
Takes a database name (string) as initialization parameter.
Initialize the ImportBase object.
- Parameters:
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- Raises:
NotImplemented : – This class should be subclassed.
- write_database(data=None, name=None, *args, **kwargs)[source]#
Write data to a
Database.All arguments are optional, and are normally not specified.
delete_existingeffects both the existing database (it will be emptied prior to writing if True, which is the default), and, ifactivate_parametersis 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_parametersis 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:
Databaseinstance.