Skip to content

Commit

Permalink
Merge pull request #613 from yeganer/fix_postprocess_keyerror
Browse files Browse the repository at this point in the history
Fix bug in montecarlo.pyx
  • Loading branch information
wkerzendorf authored Jun 29, 2016
2 parents 82c7088 + 65507b3 commit e2f3ed5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tardis/montecarlo/montecarlo.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ def montecarlo_radial1d(model, runner, int_type_t virtual_packet_flag=0,
postprocess(model,runner)

def postprocess(model, runner):
Edotlu_norm_factor = (1 /
Edotlu_norm_factor = (1 /
(model.time_of_simulation * model.tardis_config.structure.volumes))
exptau = 1 - np.exp(-
exptau = 1 - np.exp(-
runner.line_lists_tau_sobolevs.reshape(-1,
model.tardis_config.structure["velocity"]["num"]) )
model.Edotlu = Edotlu_norm_factor*exptau*runner.Edotlu_estimator
runner.j_estimator.shape[0]) )
model.Edotlu = Edotlu_norm_factor*exptau*runner.Edotlu_estimator

0 comments on commit e2f3ed5

Please sign in to comment.