optimamodel / optima

Optima HIV software tool
http://optimamodel.com
GNU Lesser General Public License v3.0
7 stars 1 forks source link

Geospatial optimizations don't work #1618

Closed cliffckerr closed 7 years ago

cliffckerr commented 7 years ago
  1. Go to sandbox.optimamodel.com

  2. Enter dbtest / dbtest

  3. Go to geospatial

  4. Create a new portfolio

BUG 1: "Run budget-objective curves" and "Run geospatial optimization" are not greyed out even though know projects have been added. (NB: this is a bug even on develop.)

  1. Click "Add region" and select both projects and click Save

  2. Select 2 seconds per optimization and click "Run budget-objective curves"

You will get one of the following errors:


May 09 08:57:40 athena python[119789]: 2017-05-09 08:57:40,639 ERROR: Exception during request <Request 'http://sandbox.optimamodel.com/api/task' [POST]>: Traceback (most recent call last):
May 09 08:57:40 athena python[119789]:   File "server/webapp/dataio.py", line 257, in _report_exception
May 09 08:57:40 athena python[119789]:     return api_call(*args, **kwargs)
May 09 08:57:40 athena python[119789]:   File "/software/anaconda/lib/python2.7/site-packages/flask_login.py", line 758, in decorated_view
May 09 08:57:40 athena python[119789]:     return func(*args, **kwargs)
May 09 08:57:40 athena python[119789]:   File "server/api.py", line 143, in run_remote_async_task
May 09 08:57:40 athena python[119789]:     result = fn(*args, **kwargs)
May 09 08:57:40 athena python[119789]:   File "server/webapp/tasks.py", line 119, in check_task
May 09 08:57:40 athena python[119789]:     raise Exception(calc_state['error_text'])
May 09 08:57:40 athena python[119789]: Exception: Traceback (most recent call last):
May 09 08:57:40 athena python[119789]:   File "/home/optima/installations/sandbox/server/webapp/tasks.py", line 144, in run_task
May 09 08:57:40 athena python[119789]:     task_fn(*args)
May 09 08:57:40 athena python[119789]:   File "/home/optima/installations/sandbox/server/webapp/tasks.py", line 342, in boc
May 09 08:57:40 athena python[119789]:     portfolio = dataio.load_portfolio(portfolio_id)
May 09 08:57:40 athena python[119789]:   File "/home/optima/installations/sandbox/server/webapp/dataio.py", line 1468, in load_portfolio
May 09 08:57:40 athena