From bd9f9965f057414b42cc1881271c84ffbfec152d Mon Sep 17 00:00:00 2001 From: "zachary.burnett" Date: Thu, 11 Feb 2021 20:29:23 -0500 Subject: [PATCH] honor None when writing driver --- adcircpy/driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adcircpy/driver.py b/adcircpy/driver.py index 51dc49e3..429c279d 100644 --- a/adcircpy/driver.py +++ b/adcircpy/driver.py @@ -405,10 +405,10 @@ def write( if hotstart: super().write('hotstart', output_directory / hotstart, overwrite) - if isinstance(self._server_config, SlurmConfig): - driver = self._server_config._filename if driver is not None: + if isinstance(self._server_config, SlurmConfig): + driver = self._server_config._filename DriverFile(self).write(output_directory / driver, overwrite) def import_stations(self, fort15):