Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Seitosh
Seitosh
Commits
650753df
Commit
650753df
authored
Jan 01, 2019
by
thomas.forbriger
Browse files
croposp [WP]: add debug output of series index range
parent
6ee035e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ts/wf/croposp.cc
View file @
650753df
...
...
@@ -21,6 +21,7 @@
#include
<iostream>
#include
<tfxx/commandline.h>
#include
<tfxx/error.h>
#include
<tfxx/misc.h>
#include
<tsioxx/cmdlinefiles.h>
#include
<tsxx/tscollection.h>
...
...
@@ -38,7 +39,8 @@ typedef ts::TimeSeriesCollection<double> TCollection;
/* ====================================================================== */
void
report_collection
(
const
TCollection
&
collection
)
void
report_collection
(
const
TCollection
&
collection
,
const
bool
&
debug
=
false
)
{
TCollection
::
const_iterator
i_series
=
collection
.
begin
();
while
(
i_series
!=
collection
.
end
())
...
...
@@ -51,6 +53,12 @@ void report_collection(const TCollection& collection)
<<
"begin: "
<<
i_series
->
header
.
date
.
timestring
()
<<
" "
<<
"n: "
<<
i_series
->
header
.
nsamples
<<
endl
;
TFXX_debug
(
debug
,
"report_collection"
,
TFXX_value
(
i_series
->
f
())
<<
" "
<<
TFXX_value
(
i_series
->
l
())
<<
" "
<<
TFXX_value
(
i_series
->
size
()));
++
i_series
;
}
}
// void report_collection(const Tcollection& collection)
...
...
@@ -196,7 +204,7 @@ int main(int iargc, char* argv[])
if
(
opt
.
verbose
)
{
cout
<<
"Time series after trimming:"
<<
endl
;
report_collection
(
collection_of_series
);
report_collection
(
collection_of_series
,
opt
.
debug
);
}
}
...
...
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