There's another ticket of wants for completions, but I should keep these small and closable:
- code fragment for "assert isinstance( p, Plot )"
- p,pe= plot(...) will assign the type Plot to p and PlotElement to pe
- p.getController().<t> results in "name error: p"</t>
item 4. from org.das2.graph import Das<t> doesn't show DasAxis as a completion.</t>
Last edit: Jeremy Faden 3 days ago
See https://github.com/autoplot/dev/blob/master/bugs/ghdas2/0179/demoUnitsHandling.jy
(1) is added. (2) appears to be handled already.
(3) is kludged in
I'm not sure what's going on with (4). I looked at the code which looks for the symbols and the code looks clean. Actually there are two relevant paths:
The first path works properly and sees the symbol, but the second doesn't.
Last edit: Jeremy Faden 3 days ago
Okay, the problem is with Jython, where it doesn't know about the symbol DasAxis unless someone has told it. If I first import the symbol then run the code:
(which is what is used for completions) it does see the symbol. So I think the fix is to also look at the giant list of imports to see if there are other known imports.
This is fixed by importing the known names before querying the module.