cleaner way to get initial time

This commit is contained in:
guillaume 2018-05-29 20:03:05 -04:00
parent 73d8b4a043
commit 29222f69cf
2 changed files with 1 additions and 4 deletions

View file

@ -76,9 +76,6 @@ results = openmc.deplete.ResultsList("depletion_results.h5")
# Obtain K_eff as a function of time
time, keff = results.get_eigenvalue()
print(time/24/60/60)
print(keff)
# Plot eigenvalue as a function of time
plt.figure()

View file

@ -47,7 +47,7 @@ def predictor(operator, timesteps, power, print_out=True):
if operator.prev_res == None:
t = 0.0
else:
t = operator.prev_res.get_eigenvalue()[0][-1]
t = operator.prev_res[-1].time[-1]
# Initialize starting index for saving results
if operator.prev_res == None: