Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
c49ee7d7
Commit
c49ee7d7
authored
Sep 15, 2014
by
Marc Duez
Browse files
main.cpp : vidjil produce sample field in json output
parent
78440e65
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/vidjil.cpp
View file @
c49ee7d7
...
...
@@ -1462,12 +1462,25 @@ int main (int argc, char **argv)
JsonArray
json_timestamp
;
json_timestamp
.
add
(
time_buffer
);
JsonArray
jsonSortedWindows
=
windowsStorage
->
sortedWindowsToJsonArray
(
json_data_segment
,
norm_list
,
nb_segmented
);
JsonList
*
json_samples
;
json_samples
=
new
JsonList
();
json_samples
->
add
(
"number"
,
"1"
);
JsonArray
json_original_names
;
json_original_names
.
add
(
f_reads
);
json_samples
->
add
(
"original_names"
,
json_original_names
);
JsonArray
json_order
;
json_order
.
add
(
0
);
json_samples
->
add
(
"order"
,
json_order
);
json
->
add
(
"vidjil_json_version"
,
VIDJIL_JSON_VERSION
);
json
->
add
(
"samples"
,
*
json_samples
);
json
->
add
(
"timestamp"
,
json_timestamp
);
json
->
add
(
"commandline"
,
stream_cmdline
.
str
());
// TODO: escape "s in argv
json
->
add
(
"segmentation_info"
,
stream_segmentation_info
.
str
());
...
...
@@ -1479,7 +1492,7 @@ int main (int argc, char **argv)
json
->
add
(
"windows"
,
jsonSortedWindows
);
//Added edges in the json output file
json
->
add
(
"links"
,
jsonLevenshtein
);
//
json->add("links", jsonLevenshtein);
out_json
<<
json
->
toString
();
delete
index
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment