From df4ce404b19aabe781618e0f732be8e3d1404cb2 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 2 Apr 2021 14:43:09 -0400 Subject: [PATCH] Changed simulated ignition delay from 0.0 to nan when no ignition found. Changed corresponding warning message. --- pyteck/simulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyteck/simulation.py b/pyteck/simulation.py index ec37087..84c0c81 100644 --- a/pyteck/simulation.py +++ b/pyteck/simulation.py @@ -533,10 +533,10 @@ def process_results(self): self.meta['simulated-ignition-delay'] = (ignition_delays[0] - time_comp) * units.second else: warnings.warn('No ignition for case ' + self.meta['id'] + - ', setting value to 0.0 and continuing', + ', setting value to nan and continuing', RuntimeWarning ) - self.meta['simulated-ignition-delay'] = 0.0 * units.second + self.meta['simulated-ignition-delay'] = np.nan * units.second # TODO: detect two-stage ignition. self.meta['simulated-first-stage-delay'] = np.nan * units.second