From 5f8c7580ceb6bc4edb564d171178d3cf78ace3d8 Mon Sep 17 00:00:00 2001 From: craig-warren Date: Tue, 21 Apr 2020 09:23:29 +0100 Subject: [PATCH] Tidy up exceptions. --- gprMax/subgrids/precursor_nodes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gprMax/subgrids/precursor_nodes.py b/gprMax/subgrids/precursor_nodes.py index 43a6c0d1..9fe7a46b 100644 --- a/gprMax/subgrids/precursor_nodes.py +++ b/gprMax/subgrids/precursor_nodes.py @@ -176,9 +176,7 @@ class PrecursorNodesBase: try: val = c1 * getattr(self, f + '_0') + c2 * getattr(self, f + '_1') except ValueError: - print(self.ex_front_0.shape) - print(self.ex_front_1.shape) - raise Exception(f) + raise setattr(self, f, val) def calc_exact_field(self, field_names):