bw_simapro_csv.blocks.calculated_parameters

Classes

CalculatedParameters

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

DatabaseCalculatedParameters

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

DatasetCalculatedParameters

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

ProjectCalculatedParameters

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

Module Contents

class bw_simapro_csv.blocks.calculated_parameters.CalculatedParameters(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 an {} Calculated parameters block.

Has the form:

` Database Calculated parameters empty;1/load; m1;"Iff(m=1; 1; 0)"; Conv_STon_MTon;2/2,20462;Convert short ton  (U.S. ton) to metric ton (tonne) `

Each line has the form:

  1. name

  2. formula

  3. comment

parsed = [][source]
class bw_simapro_csv.blocks.calculated_parameters.DatabaseCalculatedParameters(block: List[tuple], header: dict, **kwargs)[source]

Bases: CalculatedParameters

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

Parse an {} Calculated parameters block.

Has the form:

` Database Calculated parameters empty;1/load; m1;"Iff(m=1; 1; 0)"; Conv_STon_MTon;2/2,20462;Convert short ton  (U.S. ton) to metric ton (tonne) `

Each line has the form:

  1. name

  2. formula

  3. comment

class bw_simapro_csv.blocks.calculated_parameters.DatasetCalculatedParameters(block: List[tuple], header: dict, **kwargs)[source]

Bases: CalculatedParameters

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

Parse an {} Calculated parameters block.

Has the form:

` Database Calculated parameters empty;1/load; m1;"Iff(m=1; 1; 0)"; Conv_STon_MTon;2/2,20462;Convert short ton  (U.S. ton) to metric ton (tonne) `

Each line has the form:

  1. name

  2. formula

  3. comment

class bw_simapro_csv.blocks.calculated_parameters.ProjectCalculatedParameters(block: List[tuple], header: dict, **kwargs)[source]

Bases: CalculatedParameters

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

Parse an {} Calculated parameters block.

Has the form:

` Database Calculated parameters empty;1/load; m1;"Iff(m=1; 1; 0)"; Conv_STon_MTon;2/2,20462;Convert short ton  (U.S. ton) to metric ton (tonne) `

Each line has the form:

  1. name

  2. formula

  3. comment