Deltares-research / coastviewer

Coast viewer server side. Serves several sources as KML and geojson.
Other
5 stars 2 forks source link

Timestack not functioning properly #19

Open SiggyF opened 7 years ago

SiggyF commented 7 years ago

Description

Request timestack not working.

   response = function(request)
  File "/opt/conda/envs/py35/lib/python3.5/site-packages/connexion/decorators/validation.py", line 293, in wrapper
    return function(request)
  File "/opt/conda/envs/py35/lib/python3.5/site-packages/connexion/decorators/produces.py", line 38, in wrapper
    response = function(request)
  File "/opt/conda/envs/py35/lib/python3.5/site-packages/connexion/decorators/decorator.py", line 42, in wrapper
    response = function(request)
  File "/opt/conda/envs/py35/lib/python3.5/site-packages/connexion/decorators/parameter.py", line 201, in wrapper
    return function(**kwargs)
  File "/app/coastviewer/controllers.py", line 103, in timestack
    fig, ax = plots.timestack(data)
  File "/app/coastviewer/plots.py", line 21, in timestack
    cmap=coastviewer.extra_cm.GMT_drywet_r
  File "/opt/conda/envs/py35/lib/python3.5/site-packages/matplotlib/__init__.py", line 1898, in inner
    return func(ax, *args, **kwargs)
  File "/opt/conda/envs/py35/lib/python3.5/site-packages/matplotlib/axes/_axes.py", line 5805, in pcolorfast
    **kwargs)
  File "/opt/conda/envs/py35/lib/python3.5/site-packages/matplotlib/image.py", line 981, in __init__
    self.set_data(x, y, A)
  File "/opt/conda/envs/py35/lib/python3.5/site-packages/matplotlib/image.py", line 1042, in set_data
    (A.shape[:2], (y.size - 1, x.size - 1)))
ValueError: Axes don't match array shape. Got (52, 1925), expected (51, 1924).

What I Did

Request timestack through info page.