Skip to content
Snippets Groups Projects
Commit 978dd963 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Add test for `cost_function.py`

This test requires a specially prepared file `segmented.gt`:

```
head -n 100000 /data/guez/Oceanic_eddies/Global_1993_2020/Eddy_graph_anti/edgelist.csv >edgelist.csv
~/Detection_eddies/segments.py edgelist.csv segmented.gt
```

because we need input with `%Y/SHPC_(anti|cyclo)` arborescence for the
test.
parent 67f46d32
No related branches found
No related tags found
Loading
......@@ -10,5 +10,15 @@
"$src_dir/segments.py", "$tests_old_dir/EGr2nd15md4/edgelist.csv",
"segments.graphml"
]
},
{
"title": "Cost_functions", "command": "$src_dir/cost_function.py",
"env": {"PYTHONPATH": "$src_dir/Overlap:$src_dir/Common"},
"symlink":
[
"$PWD/Global_1993_2020/Eddy_graph_anti/node_id_param.json",
"$PWD/segmented.gt"
],
"input": "anti\n$PWD/Global_1993_2020\n"
}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment