bw_simapro_csv.blocks.wastes

Classes

RemainingWaste

Base class for parsing and cleaning logical blocks in a SimaPro CSV file

SeparatedWaste

Base class for parsing and cleaning logical blocks in a SimaPro CSV file

WasteScenario

Base class for parsing and cleaning logical blocks in a SimaPro CSV file

WasteTreatment

Base class for parsing and cleaning logical blocks in a SimaPro CSV file

Module Contents

class bw_simapro_csv.blocks.wastes.RemainingWaste(block: list[tuple], header: dict, **kwargs)[source]

Bases: SeparatedWaste

Base class for parsing and cleaning logical blocks in a SimaPro CSV file

Parse a Separated waste block.

Has the form:

``` Separated waste Scrap aluminium {RoW};Aluminium;100;comment

```

Each data line has the form:

  1. waste treatment

  2. waste type

  3. fraction (percentage)

  4. comment

class bw_simapro_csv.blocks.wastes.SeparatedWaste(block: list[tuple], header: dict, **kwargs)[source]

Bases: bw_simapro_csv.blocks.base.SimaProCSVBlock

Base class for parsing and cleaning logical blocks in a SimaPro CSV file

Parse a Separated waste block.

Has the form:

``` Separated waste Scrap aluminium {RoW};Aluminium;100;comment

```

Each data line has the form:

  1. waste treatment

  2. waste type

  3. fraction (percentage)

  4. comment

parsed = [][source]
class bw_simapro_csv.blocks.wastes.WasteScenario(block: list[tuple], header: dict, **kwargs)[source]

Bases: WasteTreatment

Base class for parsing and cleaning logical blocks in a SimaPro CSV file

Parse a Waste treatment block.

Has the form:

` Waste treatment Aluminium scrap, post-consumer {GLO};kg;-1;All waste types;Metals\Market;comment here `

Each data line has the form:

  1. name

  2. unit

  3. amount

  4. waste type

  5. category

  6. comment

class bw_simapro_csv.blocks.wastes.WasteTreatment(block: list[tuple], header: dict, **kwargs)[source]

Bases: bw_simapro_csv.blocks.base.SimaProCSVBlock

Base class for parsing and cleaning logical blocks in a SimaPro CSV file

Parse a Waste treatment block.

Has the form:

` Waste treatment Aluminium scrap, post-consumer {GLO};kg;-1;All waste types;Metals\Market;comment here `

Each data line has the form:

  1. name

  2. unit

  3. amount

  4. waste type

  5. category

  6. comment

has_formula = True[source]
parsed = [][source]