optimamodel / optima

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

A migration is broken #1619

Closed cliffckerr closed 7 years ago

cliffckerr commented 7 years ago

Log into an admin account on hiv.optimamodel.com

Get stack trace:

Traceback (most recent call last):
  File "server/webapp/dataio.py", line 257, in _report_exception
    return api_call(*args, **kwargs)
  File "/software/anaconda/lib/python2.7/site-packages/flask_login.py", line 758, in decorated_view
    return func(*args, **kwargs)
  File "server/api.py", line 117, in run_remote_procedure
    result = fn(*args, **kwargs)
  File "server/webapp/dataio.py", line 411, in load_all_project_summaries
    return {'projects': map(load_project_summary_from_project_record, query.all())}
  File "server/webapp/dataio.py", line 393, in load_project_summary_from_project_record
    project = load_project_from_record(project_record)
  File "server/webapp/dataio.py", line 357, in load_project_from_record
    project = project_record.load()
  File "server/webapp/dbmodels.py", line 93, in load
    project = op.loadproj(redis_entry, fromdb=True)
  File "optima/loadtools.py", line 782, in loadproj
    if domigrate: P = migrate(origP, verbose=verbose, die=die)
  File "optima/loadtools.py", line 755, in migrate
    if migrator is not None: migrator(project, verbose=verbose, die=die) # Sometimes there is no upgrader
  File "optima/loadtools.py", line 295, in redotransitions
    for p1 in range(pd[transitkey].shape[0]):
AttributeError: 'list' object has no attribute 'shape'