@@ -23,12 +23,16 @@ def build_network():
2323 )
2424
2525 parser .add_argument (
26- "--min-overlap" , "-p" , type = float , help = "minimum overlap area to associate observations" , default = 0.2
26+ "--min-overlap" ,
27+ "-p" ,
28+ type = float ,
29+ help = "minimum overlap area to associate observations" ,
30+ default = 0.2 ,
2731 )
2832 parser .add_argument (
2933 "--minimal-area" ,
30- action = "store_true" ,
31- help = "If True, use intersection/little polygon, else intersection/union" ,
34+ action = "store_true" ,
35+ help = "If True, use intersection/little polygon, else intersection/union" ,
3236 )
3337
3438 parser .contour_intern_arg ()
@@ -42,7 +46,9 @@ def build_network():
4246 intern = args .intern ,
4347 memory = args .memory ,
4448 )
45- group = n .group_observations (min_overlap = args .min_overlap , minimal_area = args .minimal_area )
49+ group = n .group_observations (
50+ min_overlap = args .min_overlap , minimal_area = args .minimal_area
51+ )
4652 n .build_dataset (group ).write_file (filename = args .out )
4753
4854
@@ -55,12 +61,16 @@ def divide_network():
5561 "--window" , "-w" , type = int , help = "Half time window to search eddy" , default = 1
5662 )
5763 parser .add_argument (
58- "--min-overlap" , "-p" , type = float , help = "minimum overlap area to associate observations" , default = 0.2
64+ "--min-overlap" ,
65+ "-p" ,
66+ type = float ,
67+ help = "minimum overlap area to associate observations" ,
68+ default = 0.2 ,
5969 )
6070 parser .add_argument (
6171 "--minimal-area" ,
62- action = "store_true" ,
63- help = "If True, use intersection/little polygon, else intersection/union" ,
72+ action = "store_true" ,
73+ help = "If True, use intersection/little polygon, else intersection/union" ,
6474 )
6575 args = parser .parse_args ()
6676 contour_name = TrackEddiesObservations .intern (args .intern , public_label = True )
@@ -70,7 +80,12 @@ def divide_network():
7080 )
7181 n = NetworkObservations .from_split_network (
7282 TrackEddiesObservations .load_file (args .input , raw_data = True ),
73- e .split_network (intern = args .intern , window = args .window , min_overlap = args .min_overlap , minimal_area = args .minimal_area ),
83+ e .split_network (
84+ intern = args .intern ,
85+ window = args .window ,
86+ min_overlap = args .min_overlap ,
87+ minimal_area = args .minimal_area ,
88+ ),
7489 )
7590 n .write_file (filename = args .out )
7691
@@ -94,9 +109,7 @@ def subset_network():
94109 help = "Remove short dead end, first is for minimal obs number and second for minimal segment time to keep" ,
95110 )
96111 parser .add_argument (
97- "--remove_trash" ,
98- action = "store_true" ,
99- help = "Remove trash (network id == 0)" ,
112+ "--remove_trash" , action = "store_true" , help = "Remove trash (network id == 0)" ,
100113 )
101114 parser .add_argument (
102115 "-p" ,
0 commit comments