Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
ws-timeseries
Commits
ffb43539
Commit
ffb43539
authored
Sep 02, 2020
by
Jerome Touvier
Browse files
limitations not only with plot option
parent
06248936
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/timeseries/output.py
View file @
ffb43539
...
...
@@ -211,13 +211,12 @@ def get_output(params):
return
None
npoints
=
sum
([
len
(
tr
.
data
)
for
tr
in
st
])
if
params
[
"format"
]
==
"plot"
:
if
npoints
>
MAX_DATA_POINTS
:
return
overflow_error
(
Error
.
TOO_MUCH_DATA
)
if
npoints
>
MAX_DATA_POINTS_PROCESSING
and
params
[
"earthunits"
]:
return
overflow_error
(
Error
.
TOO_MUCH_DATA_PROCESSING
)
if
len
(
st
)
>
MAX_PLOTS
:
return
overflow_error
(
Error
.
PLOTS
)
if
npoints
>
MAX_DATA_POINTS
:
return
overflow_error
(
Error
.
TOO_MUCH_DATA
)
if
npoints
>
MAX_DATA_POINTS_PROCESSING
and
params
[
"earthunits"
]:
return
overflow_error
(
Error
.
TOO_MUCH_DATA_PROCESSING
)
if
len
(
st
)
>
MAX_PLOTS
:
return
overflow_error
(
Error
.
PLOTS
)
if
params
[
"earthunits"
]:
try
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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