diff --git a/autofit/__init__.py b/autofit/__init__.py index 9da23e55a..740bf7dca 100644 --- a/autofit/__init__.py +++ b/autofit/__init__.py @@ -26,6 +26,7 @@ from .non_linear.samples import SamplesStored from .database.aggregator import Aggregator from .aggregator.summary.aggregate_csv import AggregateCSV +from .aggregator.summary.aggregate_csv import ValueType from .aggregator.summary.aggregate_images import AggregateImages from .aggregator.summary.aggregate_fits import AggregateFITS, FITSFit from .database.aggregator import Query diff --git a/autofit/aggregator/summary/aggregate_csv/column.py b/autofit/aggregator/summary/aggregate_csv/column.py index 662209e32..879849c0d 100644 --- a/autofit/aggregator/summary/aggregate_csv/column.py +++ b/autofit/aggregator/summary/aggregate_csv/column.py @@ -67,7 +67,7 @@ def value(self, row: "Row"): result[""] = row.median_pdf_sample_kwargs[self.path] if ValueType.MaxLogLikelihood in self.value_types: - result["max_lh"] = row.max_likelihood_kwargs + result["max_lh"] = row.max_likelihood_kwargs[self.path] if ValueType.ValuesAt1Sigma in self.value_types: lower, upper = row.values_at_sigma_1_kwargs[self.path]