From a7e1bca6da7cb4fc4baeb186870b38df06b8ffb3 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 6 Aug 2019 16:26:23 -0500 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Paul Romano --- openmc/deplete/integrator/abc.py | 6 +++--- openmc/deplete/integrator/cecm.py | 2 +- openmc/deplete/integrator/celi.py | 6 +++--- openmc/deplete/integrator/cf4.py | 4 ++-- openmc/deplete/integrator/epc_rk4.py | 4 ++-- openmc/deplete/integrator/leqi.py | 4 ++-- openmc/deplete/integrator/predictor.py | 4 ++-- openmc/deplete/integrator/si_celi.py | 4 ++-- openmc/deplete/integrator/si_leqi.py | 4 ++-- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/openmc/deplete/integrator/abc.py b/openmc/deplete/integrator/abc.py index 26ca6b581..52061de0f 100644 --- a/openmc/deplete/integrator/abc.py +++ b/openmc/deplete/integrator/abc.py @@ -84,14 +84,14 @@ class Integrator(ABC): dt : float Time in [s] for the entire depletion interval power : float - Power of the system [W] + Power of the system in [W] i : int Current depletion step index Returns ------- proc_time : float - Time spent in CRAM routines for all materials + Time spent in CRAM routines for all materials in [s] conc_list : list of numpy.ndarray Concentrations at each of the intermediate points with the final concentration as the last element @@ -177,7 +177,7 @@ class Integrator(ABC): power, index, proc_time) def _write_statepoint(self, step_index): - """Use capi to write a statepoint for this index""" + """Use C API to write a statepoint for this index""" statepoint_write( "openmc_simulation_n{}.h5".format(step_index + self._ires), write_source=False) diff --git a/openmc/deplete/integrator/cecm.py b/openmc/deplete/integrator/cecm.py index 8155b55de..54efff09a 100644 --- a/openmc/deplete/integrator/cecm.py +++ b/openmc/deplete/integrator/cecm.py @@ -43,7 +43,7 @@ class CECMIntegrator(Integrator): Returns ------- proc_time : float - Time spent in CRAM routines for all materials + Time spent in CRAM routines for all materials in [s] conc_list : list of numpy.ndarray Concentrations at each of the intermediate points with the final concentration as the last element diff --git a/openmc/deplete/integrator/celi.py b/openmc/deplete/integrator/celi.py index b6bbe231b..137912b6c 100644 --- a/openmc/deplete/integrator/celi.py +++ b/openmc/deplete/integrator/celi.py @@ -37,14 +37,14 @@ class CELIIntegrator(Integrator): dt : float Time in [s] for the entire depletion interval power : float - Power of the system [W] + Power of the system in [W] _i : int Current iteration count. Not used Returns ------- proc_time : float - Time spent in CRAM routines for all materials + Time spent in CRAM routines for all materials in [s] conc_list : list of numpy.ndarray Concentrations at each of the intermediate points with the final concentration as the last element @@ -56,7 +56,7 @@ class CELIIntegrator(Integrator): proc_time, conc_ce = timed_deplete(self.chain, bos_conc, rates, dt) res_ce = self.operator(conc_ce, power) - # deplete using two matrix exponeitials + # deplete using two matrix exponentials list_rates = list(zip(rates, res_ce.rates)) time_le1, conc_inter = timed_deplete( diff --git a/openmc/deplete/integrator/cf4.py b/openmc/deplete/integrator/cf4.py index 96c97b067..82a2dec8b 100644 --- a/openmc/deplete/integrator/cf4.py +++ b/openmc/deplete/integrator/cf4.py @@ -42,14 +42,14 @@ class CF4Integrator(Integrator): dt : float Time in [s] for the entire depletion interval power : float - Power of the system [W] + Power of the system in [W] i : int Current depletion step index Returns ------- proc_time : float - Time spent in CRAM routines for all materials + Time spent in CRAM routines for all materials in [s] conc_list : list of numpy.ndarray Concentrations at each of the intermediate points with the final concentration as the last element diff --git a/openmc/deplete/integrator/epc_rk4.py b/openmc/deplete/integrator/epc_rk4.py index 879f176ba..00694ac9e 100644 --- a/openmc/deplete/integrator/epc_rk4.py +++ b/openmc/deplete/integrator/epc_rk4.py @@ -37,14 +37,14 @@ class EPC_RK4_Integrator(Integrator): dt : float Time in [s] for the entire depletion interval power : float - Power of the system [W] + Power of the system in [W] i : int Current depletion step index, unused. Returns ------- proc_time : float - Time spent in CRAM routines for all materials + Time spent in CRAM routines for all materials in [s] conc_list : list of numpy.ndarray Concentrations at each of the intermediate points with the final concentration as the last element diff --git a/openmc/deplete/integrator/leqi.py b/openmc/deplete/integrator/leqi.py index c4a819d38..5cfcd0684 100644 --- a/openmc/deplete/integrator/leqi.py +++ b/openmc/deplete/integrator/leqi.py @@ -51,14 +51,14 @@ class LEQIIntegrator(Integrator): dt : float Time in [s] for the entire depletion interval power : float - Power of the system [W] + Power of the system in [W] i : int Current depletion step index Returns ------- proc_time : float - Time spent in CRAM routines for all materials + Time spent in CRAM routines for all materials in [s] conc_list : list of numpy.ndarray Concentrations at each of the intermediate points with the final concentration as the last element diff --git a/openmc/deplete/integrator/predictor.py b/openmc/deplete/integrator/predictor.py index d534645b2..038e52fc9 100644 --- a/openmc/deplete/integrator/predictor.py +++ b/openmc/deplete/integrator/predictor.py @@ -51,14 +51,14 @@ class PredictorIntegrator(Integrator): dt : float Time in [s] for the entire depletion interval power : float - Power of the system [W] + Power of the system in [W] _i : int or None Iteration index. Not used Returns ------- proc_time : float - Time spent in CRAM routines for all materials + Time spent in CRAM routines for all materials in [s] conc_list : list of numpy.ndarray Concentrations at end of interval op_results : empty list diff --git a/openmc/deplete/integrator/si_celi.py b/openmc/deplete/integrator/si_celi.py index bfe4f7586..a0fa3cae2 100644 --- a/openmc/deplete/integrator/si_celi.py +++ b/openmc/deplete/integrator/si_celi.py @@ -32,14 +32,14 @@ class SI_CELI_Integrator(SI_Integrator): dt : float Time in [s] for the entire depletion interval power : float - Power of the system [W] + Power of the system in [W] _i : int Current depletion step index. Unused Returns ------- proc_time : float - Time spent in CRAM routines for all materials + Time spent in CRAM routines for all materials in [s] bos_conc_list : list of numpy.ndarray Concentrations at each of the intermediate points with the final bos_concentration as the last element diff --git a/openmc/deplete/integrator/si_leqi.py b/openmc/deplete/integrator/si_leqi.py index 702b098ef..e63219f13 100644 --- a/openmc/deplete/integrator/si_leqi.py +++ b/openmc/deplete/integrator/si_leqi.py @@ -36,14 +36,14 @@ class SI_LEQI_Integrator(SI_Integrator): dt : float Time in [s] for the entire depletion interval power : float - Power of the system [W] + Power of the system in [W] i : int Current depletion step index Returns ------- proc_time : float - Time spent in CRAM routines for all materials + Time spent in CRAM routines for all materials in [s] conc_list : list of numpy.ndarray Concentrations at each of the intermediate points with the final concentration as the last element