Commit ffb43539 authored by Jerome Touvier's avatar Jerome Touvier
Browse files

limitations not only with plot option

parent 06248936
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment