From 8424f9b36634d8ce8e1ca78d6eccfc22d5f26f4d Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 8 Dec 2020 06:51:56 -0600 Subject: [PATCH] Ensure CorrelatedAngleEnergy.to_hdf5 works for continuous+discrete eout dists --- openmc/data/correlated.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/data/correlated.py b/openmc/data/correlated.py index 3562482ef..1aa4c20c8 100644 --- a/openmc/data/correlated.py +++ b/openmc/data/correlated.py @@ -120,7 +120,7 @@ class CorrelatedAngleEnergy(AngleEnergy): self.interpolation)) # Determine total number of (E,p) pairs and create array - n_tuple = sum(len(d.x) for d in self.energy_out) + n_tuple = sum(len(d) for d in self.energy_out) eout = np.empty((5, n_tuple)) # Make sure all mu data is tabular