Open farrieta9 opened 8 years ago
@farrieta9 Plotting on the simulations tab does not work at all.
Are you on branch 0.1.6? What error are you getting?
Right click -> view
No handlers could be found for logger "sqlalchemy.pool.NullPool"
Traceback (most recent call last):
File "/Users/tonycastronova/code/EMIT/gui/views/ContextView.py", line 531, in on_view
sub[2].UnitObj.UnitsAbbreviation,
AttributeError: 'Results' object has no attribute 'UnitObj'
Try again, are you still getting this error?
Traceback (most recent call last):
File "/Users/tonycastronova/code/EMIT/gui/controller/DatabaseCtrl.py", line 71, in onDoubleClick
self.Parent.open_simulation_viewer(obj.GetObjectAt(id))
File "/Users/tonycastronova/code/EMIT/gui/views/LowerPanelView.py", line 530, in open_simulation_viewer
sub[2].UnitObj.UnitsAbbreviation,
AttributeError: 'Results' object has no attribute 'UnitObj'
double click produces:
Traceback (most recent call last):
File "/Users/tonycastronova/code/EMIT/gui/controller/DatabaseCtrl.py", line 71, in onDoubleClick
self.Parent.open_simulation_viewer(obj.GetObjectAt(id))
File "/Users/tonycastronova/code/EMIT/gui/views/LowerPanelView.py", line 530, in open_simulation_viewer
sub[2].UnitObj.UnitsAbbreviation,
AttributeError: 'Results' object has no attribute 'UnitObj'
right click -> view. No window appears.
This is happening because we are transferring to the new odm api.
@farrieta9 please be more specific so that we don't forget what is causing this issue when we go to fix.
These errors are only thrown when double clicking on simulations in the local sqlite database. We believe the error is due to the controller using the old_api
which works with the deployed ODM2 databases (postgres and mysql) only because they are implementing an older version of the ODM2 spec. These databases will need to be migrated to the same spec that our local sqlite database uses. To fix this bug we need to:
odm2api
library. old_api
entirely
Right click->plot in context menu should behave the same as double clicking.
Also consider changing the name plot to something like View for example. The reason for the change is clicking on plot does not plot it, but bring up the view controller.