Skip to content

Error on result page #187

@rcoenen

Description

@rcoenen

Hi, ok I finally managed to get Japonicus complete a full run.
Just for the purpose to test a quick full run, I modified various settings to get the process to speed up:

  • 10 EPOCHS instead of 3000 (default)
  • 10 DeltaDays instead of 90 (default)
  • 20 POP_SIZE instead of 50 (default)
  • 10 dataset_span instead of 0 (default)
  • 10 eval_dataset_span instead of 0 (default)

At the end of the run the terminal showed the settings that I could use on Gekko.
However, when I went to the Japonicus web interface and clicked on the "View Results" tab, the webpage remained empty and I got this in the Terminal:

ERROR:flask.app:Exception on /_dash-update-component [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.6/dist-packages/dash_auth/basic_auth.py", line 33, in wrap
    response = f(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/dash/dash.py", line 1073, in dispatch
    response.set_data(self.callback_map[output]['callback'](*args))
  File "/usr/local/lib/python3.6/dist-packages/dash/dash.py", line 969, in add_context
    output_value = func(*args, **kwargs)
  File "/home/ubuntu/gekko/japonicus/promoterz/webServer/core.py", line 100, in display_page
    return layout.getResults(app)
  File "/home/ubuntu/gekko/japonicus/promoterz/webServer/layout.py", line 87, in getResults
    return [html.P(str(r[0]) + '\n' + r) for r in app.resultParameters]
  File "/home/ubuntu/gekko/japonicus/promoterz/webServer/layout.py", line 87, in <listcomp>
    return [html.P(str(r[0]) + '\n' + r) for r in app.resultParameters]
TypeError: must be str, not tuple

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions