Skip to content

Commit 688213a

Browse files
Align with changes to LCA_oM (#139)
2 parents 893359c + 9d3bc8f commit 688213a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CarbonQueryDatabase_Adapter/Convert/ToBHoM.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static EnvironmentalProductDeclaration ToEnvironmentalProductDeclaration(
8989

9090
double nan = double.NaN;
9191

92-
ClimateChangeTotalMetric metric = new ClimateChangeTotalMetric(nan, nan, nan, gwpVal, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan);
92+
ClimateChangeTotalMetric metric = new ClimateChangeTotalMetric { Indicators = new Dictionary<Module, double> { { Module.A1toA3, gwpVal } } };
9393

9494
AdditionalEPDData data = new AdditionalEPDData
9595
{
@@ -114,7 +114,7 @@ public static EnvironmentalProductDeclaration ToEnvironmentalProductDeclaration(
114114
EnvironmentalProductDeclaration epd = new EnvironmentalProductDeclaration
115115
{
116116
Type = config.Type,
117-
EnvironmentalMetrics = new List<EnvironmentalMetric> { metric },
117+
EnvironmentalMetrics = new List<IEnvironmentalMetric> { metric },
118118
QuantityType = quantityType,
119119
Name = obj.PropertyValue("name")?.ToString() ?? "",
120120
};

0 commit comments

Comments
 (0)