Skip to content

Commit

Permalink
Run in black
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Sep 5, 2023
1 parent 49fabff commit b565b55
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/ctsm/test/test_sys_mesh_modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ def setUp(self):
self.createLandMaskFile()

def createLandMaskFile(self):
""" Create the LandMask file from the input fsurdat_in file"""
"""Create the LandMask file from the input fsurdat_in file"""
if os.path.exists(self._landmask_file):
os.remove(self._landmask_file)
os.remove(self._landmask_file)
ncap2_cmd = (
"ncap2 -A -v -s 'mod_lnd_props=LANDFRAC_PFT.convert(NC_INT)' "
+ "-A -v -s 'landmask=LANDFRAC_PFT.convert(NC_INT)' "
Expand All @@ -110,7 +110,9 @@ def createLandMaskFile(self):
try:
subprocess.check_call(ncap2_cmd, shell=True)
except subprocess.CalledProcessError as e:
sys.exit(f"{e} ERROR using ncap2 to generate {self._landmask_file} from {self.fsurdat_in}")
sys.exit(
f"{e} ERROR using ncap2 to generate {self._landmask_file} from {self.fsurdat_in}"
)

def tearDown(self):
"""
Expand Down

0 comments on commit b565b55

Please sign in to comment.