Skip to content

Commit 5671610

Browse files
tildoutildou
authored andcommitted
Add a test to EddyTracking
1 parent 7439dce commit 5671610

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/new_identification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# h.high_filter('Grid_0001', 10, 5)
1212
# h.eddy_identification('Grid_0001', 0.5)
1313

14-
h = UnRegularGridDataset('unregular.nc', 'nav_lon', 'nav_lat')
14+
h = UnRegularGridDataset('/home/tildou/ant_work/data/unregular.nc', 'nav_lon', 'nav_lat')
1515
h.eddy_identification('sossheig')
1616

1717
# h = RegularGridDataset('madt_h_20170425T000000_20170425T000000.nc', 'NbLongitudes', 'NbLatitudes')

src/scripts/EddyTracking

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def usage():
3939
# Read yaml configuration file
4040
with open(args.yaml_file, 'r') as stream:
4141
config = yaml_load(stream)
42-
if not exists(args.correspondance_in):
42+
if args.correspondance_in is not None and not exists(args.correspondance_in):
4343
args.correspondance_in = None
4444
return config, args.save_correspondance_and_stop, args.correspondance_in, args.correspondance_out, args.blank_period
4545

0 commit comments

Comments
 (0)