diff --git a/gprMax/config.py b/gprMax/config.py index c1243c98..67a0802d 100644 --- a/gprMax/config.py +++ b/gprMax/config.py @@ -209,9 +209,9 @@ class SimulationConfig: 'subgrid': False, 'precision': 'single'} - # Progress bars on stdoout or not - switch off progressbars - # when > basic logging level is used - self.general['progressbars'] = False if logging.root.level > 20 else True + # Progress bars on stdoout or not - switch off progressbars when + # logging level is greater than info (20) + self.general['progressbars'] = False if args.log_level > 20 else True self.em_consts = {'c': c, # Speed of light in free space (m/s) 'e0': e0, # Permittivity of free space (F/m) @@ -315,7 +315,7 @@ class SimulationConfig: self.vtk_byteorder = 'LittleEndian' if sys.byteorder == 'little' else 'BigEndian' def _set_single_model(self): - if self.model_start == 0 and self.model_end == 1: + if self.model_end - self.model_start == 1: self.single_model = True else: self.single_model = False