convexengineering / gplibrary

Useful subsystem models
MIT License
10 stars 11 forks source link

Print solution table in latex error #93

Closed mjburton11 closed 7 years ago

mjburton11 commented 7 years ago

Got the following error in md_template branch while trying to run model.md. Moved from #890 in gpkit.

  File "<string>", line 1, in <module>
  File "model.md.py", line 26, in <module>
    f.write(sol.table(latex=True))
  File "/Users/mjburton11/anaconda/lib/python2.7/site-packages/gpkit/solution_array.py", line 128, in table
    **kwargs)
  File "/Users/mjburton11/anaconda/lib/python2.7/site-packages/gpkit/solution_array.py", line 259, in results_table
    [" & ".join(l) + " \\\\" for l in lines] +
UnboundLocalError: local variable 'coltitles' referenced before assignment
make: *** [model.pdf] Error 1
bqpd commented 7 years ago

ack, https://github.com/hoburg/gpkit/issues/890 is really the right place for this bug, my bad.