Skip to content

Commit 64f529f

Browse files
author
adelepoulle
committed
Simplify yaml choices
1 parent f5d27a7 commit 64f529f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/py_eddy_tracker/tracking_objects.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ def __init__(self, sign_type, grd, date, **kwargs):
7979
self.diagnostic_type = kwargs.get('DIAGNOSTIC_TYPE', 'SLA')
8080
self.the_domain = kwargs.get('THE_DOMAIN', 'Regional')
8181
self.track_extra_variables = kwargs.get('TRACK_EXTRA_VARIABLES', [])
82+
if self.track_extra_variables is None:
83+
self.track_extra_variables = []
8284
array_properties = kwargs.get('TRACK_ARRAY_VARIABLES', dict())
85+
if array_properties is None:
86+
array_properties = dict()
8387
self.track_array_variables_sampling = array_properties.get('NB_SAMPLES', 0)
8488
self.track_array_variables = array_properties.get('VARIABLES', [])
8589
self.smoothing = kwargs.get('SMOOTHING', True)

0 commit comments

Comments
 (0)