Commit 87b21281 authored by Clément Haëck's avatar Clément Haëck
Browse files

Fix typos

parent 88a9da80
......@@ -74,7 +74,7 @@ def main(args):
ds['mask_low'] = ds.HI < args['thr_lo']
ds['mask_hi'] = ds.HI > args['thr_hi']
ds['mask_mid'] = ~(ds['mask_low'] | ds['mask_hi'])
ds = ds.drop_vars(['HI', 'p_frt'])
ds = ds.drop_vars(['HI'])
m_next("Computing zones datasets")
# Datasets for each zone
......@@ -90,6 +90,7 @@ def main(args):
up[mask] = up[mask] * op(ds.sst, ds.threshold)
zones['GS3_'+zone] = up
m_end()
print("Setting up histogram computations", end='', flush=True)
hists_var = []
for var in VARS:
......
......@@ -116,8 +116,8 @@ def get_args(args, add_args=None, description=''):
if name not in DEFAULTS:
raise KeyError(f"'{name}' not in defaults parameters.")
parser.add_argument('-{}'.format(name),
type=DEFAULTS_TYPES[k],
default=DEFAULTS[k])
type=DEFAULTS_TYPES[name],
default=DEFAULTS[name])
if 'fixes' in args:
parser.add_argument(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment