logo

Convert LCAByg Files

LCAbyg

LCAbyg is a software tool that calculates life cycle assessments for buildings. With LCAbyg, you can calculate a building's environmental profile and resource consumption.1

LCAbyg has been developed by the BUILD Institute at Aalborg University.

Exporting Files from LCAbyg

In the video below you can see how to export JSON files from LCAbyg.

LCAByg Projects

An example of how to convert a LCAbyg project to LCAx can be seen below. You will notice how we need to unpack the return value from convert_lcabyg.

The reason is that the function can convert multiple types of LCAbyg objects. Fx. it is also possible to only convert LCAbyg products into LCAx EPDs. An example of that can be found further down this page.

from pathlib import Path
import lcax

lcabyg_file = Path("lcabyg_project.json")

project = lcax.convert_lcabyg(lcabyg_file.read_text())

LCAByg Projects with Results

LCAbyg have separated their export into two files: project and results. In the example above we saw how to work with only the project file.

In this example we add the result file to the conversion as well to get a LCAx project with impact results.

from pathlib import Path
import lcax

lcabyg_file = Path("lcabyg_project.json")
results_file = Path("lcabyg_project_results.json")

project = lcax.convert_lcabyg(lcabyg_file.read_text(), results_file.read_text())

LCAByg Stages

As mentioned above, it is also possible only convert LCAbyg products to LCAx EPDs.

from pathlib import Path
import lcax

lcabyg_file = Path("lcabyg_project.json")

project = lcax.convert_lcabyg(lcabyg_file.read_text())

LCAx to LCAByg

It is also possible to convert a LCAx EPD into a LCAbyg product.

from pathlib import Path
import lcax

epd = lcax.EPD.loads(Path("epd.json").read_text())

lcabyg_string = lcax.to_lcabyg(epds=[epd])