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): ...@@ -211,13 +211,12 @@ def get_output(params):
return None return None
npoints = sum([len(tr.data) for tr in st]) npoints = sum([len(tr.data) for tr in st])
if params["format"] == "plot": if npoints > MAX_DATA_POINTS:
if npoints > MAX_DATA_POINTS: return overflow_error(Error.TOO_MUCH_DATA)
return overflow_error(Error.TOO_MUCH_DATA) if npoints > MAX_DATA_POINTS_PROCESSING and params["earthunits"]:
if npoints > MAX_DATA_POINTS_PROCESSING and params["earthunits"]: return overflow_error(Error.TOO_MUCH_DATA_PROCESSING)
return overflow_error(Error.TOO_MUCH_DATA_PROCESSING) if len(st) > MAX_PLOTS:
if len(st) > MAX_PLOTS: return overflow_error(Error.PLOTS)
return overflow_error(Error.PLOTS)
if params["earthunits"]: if params["earthunits"]:
try: try:
......
Supports Markdown
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