camelot-project / frontend

The frontend: The web-facing server software for CAMELOT
BSD 3-Clause "New" or "Revised" License
2 stars 14 forks source link

Query form: plotting does not work when Galactic or Extragalactic are disabled #49

Closed bcommerc closed 9 years ago

bcommerc commented 9 years ago
File "/Users/ben/anaconda/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/ben/anaconda/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Users/ben/anaconda/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/ben/anaconda/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/ben/anaconda/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/ben/anaconda/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/ben/anaconda/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/ben/anaconda/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/ben/Work/Simus_vs_obs/WORKSHOP_FLORENCE/frontend/upload_form.py", line 569, in query
temp_table = [use_table[h].index for h,i in zip(range(len(use_table)),use_table['IsGalactic']) if i == 'False']
File "/Users/ben/anaconda/lib/python2.7/site-packages/astropy/table/table.py", line 849, in __getitem__
return self.columns[item]
File "/Users/ben/anaconda/lib/python2.7/site-packages/astropy/table/table.py", line 107, in __getitem__
return OrderedDict.__getitem__(self, item)
KeyError: 'IsGalactic'
e-koch commented 9 years ago

@bcommerc -- I can't reproduce this error anymore. Selecting neither of them now appears to give a blank plot. Perhaps it was fixed?

Can you retry it when you have a chance to confirm?

If anyone else can confirm this, that would be great as well.

scog1234 commented 9 years ago

I've just tried it, and I also get a blank plot rather than the error that @bcommerc reported.

e-koch commented 9 years ago

Cool, sounds like it was fixed at some point.