Skip to content

Commit

Permalink
Merge pull request #641 from yeganer/fix_j_blue_estimator_hack
Browse files Browse the repository at this point in the history
Fix detailed radiative rates
  • Loading branch information
wkerzendorf committed Aug 19, 2016
2 parents 7e52d3b + 8b77b9d commit bea4d64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tardis/montecarlo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ def run(self, model, no_of_packets, no_of_virtual_packets=0, nthreads=1,last_run
# Workaround so that j_blue_estimator is in the right ordering
# They are written as an array of dimension (no_of_shells, no_of_lines)
# but python expects (no_of_lines, no_of_shells)
self.j_blue_estimator = self.j_blue_estimator.flatten().reshape(
self.j_blue_estimator = np.ascontiguousarray(
self.j_blue_estimator.flatten().reshape(
self.j_blue_estimator.shape, order='F')
)
self.Edotlu_estimator = self.Edotlu_estimator.flatten().reshape(
self.Edotlu_estimator.shape, order='F')

Expand Down

0 comments on commit bea4d64

Please sign in to comment.