File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/py_eddy_tracker/appli Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
# rm build/sphinx/ doc/python_module/ doc/gen_modules/ -rf
2
- # rm doc/_ autosummary/ doc/gen_modules - rf
2
+ # rm doc/_ autosummary/ doc/gen_modules -rf
3
3
python setup.py build_sphinx
4
4
rsync -vrltp doc/python_module notebooks/. --include '* /' --include '* .ipynb' --exclude '* ' --prune-empty-dirs
Original file line number Diff line number Diff line change @@ -74,7 +74,16 @@ def subset_network():
74
74
help = "Nb of day which must be cover by network, first minimum number of day and last maximum number of day,"
75
75
"if value is negative, this bound won't be used" ,
76
76
)
77
+ parser .add_argument (
78
+ "--remove_dead_end" ,
79
+ nargs = 2 ,
80
+ type = int ,
81
+ help = "Remove short dead end, first is for minimal obs number and second for minimal segment time to keep" ,
82
+ )
77
83
args = parser .parse_args ()
78
84
n = NetworkObservations .load_file (args .input )
79
- n = n .longer_than (* args .length )
85
+ if args .length is not None :
86
+ n = n .longer_than (* args .length )
87
+ if args .remove_dead_end is not None :
88
+ n = n .remove_dead_end (* args .remove_dead_end )
80
89
n .write_file (filename = args .out )
You can’t perform that action at this time.
0 commit comments