bw_simapro_csv.blocks.wastes ============================ .. py:module:: bw_simapro_csv.blocks.wastes Classes ------- .. autoapisummary:: bw_simapro_csv.blocks.wastes.RemainingWaste bw_simapro_csv.blocks.wastes.SeparatedWaste bw_simapro_csv.blocks.wastes.WasteScenario bw_simapro_csv.blocks.wastes.WasteTreatment Module Contents --------------- .. py:class:: RemainingWaste(block: list[tuple], header: dict, **kwargs) Bases: :py:obj:`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: 0. waste treatment 1. waste type 2. fraction (percentage) 3. comment .. py:class:: SeparatedWaste(block: list[tuple], header: dict, **kwargs) Bases: :py:obj:`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: 0. waste treatment 1. waste type 2. fraction (percentage) 3. comment .. py:attribute:: parsed :value: [] .. py:class:: WasteScenario(block: list[tuple], header: dict, **kwargs) Bases: :py:obj:`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: 0. name 1. unit 2. amount 3. waste type 4. category 5. comment .. py:class:: WasteTreatment(block: list[tuple], header: dict, **kwargs) Bases: :py:obj:`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: 0. name 1. unit 2. amount 3. waste type 4. category 5. comment .. py:attribute:: has_formula :value: True .. py:attribute:: parsed :value: []