Consolidate overlays into "chaco.overlays"#741
Conversation
IMO the recommendation will be to prefer
Before we make that move/decision, we need to first know who uses |
|
The only additional comment i have regarding this draft PR is that the final PR will also need to search for and move the relevant tests to |
| # All other metadata is interpreted as a mask on dataspace | ||
| else: | ||
| ar = numpy.arange(0, len(selection), 1) | ||
| runs = arg_find_runs(ar[selection]) |
There was a problem hiding this comment.
this flake8 error makes me suspect this code is actually broken:
chaco/overlays/layers/svg_range_selection_overlay.py:107:20: F821 undefined name 'arg_find_runs'
It appears many are untested (at least not explicitly tested). Searching for test files containing |
…ng deprecation warnigns. Also expose layers in the chaco.overlays.api
…ot get updated in merge of master
|
I had old files left as stubs in chaco/layers which raise deprecation warnings to preserve backwards compatibility. I also have the layers exposed in chaco.overlays.api, chaco.api, chaco.overlays.layers.api (this one really probably shouldn't exist?) and the now deprecated Also, currently the svg images in layers/data are duplicated, but perhaps the old set in chaco/layers/data can be removed |
I did a github search of |
|
I am going to convert this from a draft PR to a real PR now as we do aim to merge this going forward. |
|
Note |
|
@aaronayres35 looks like grid and axis aren't included in this refactor - which are mentioned in the issue. I don't remember if we had already discussed why they aren't included. |
I don't recall if we discussed it either, all I remember was Corran's comment: #699 (comment) EDIT: Lines 41 to 59 in a600fc2 |
SGTM. Go ahead with this PR and the rest of the rc process. |
* copy modules into chaco/overlays * make original modules stubs raising deprecation warnings * copy layers into overlays * fully populate chaco.overlays.api and chaco.api * flake8 * update tox.ini by running flake8 -q * somehow this is also needed in tox.ini but I did not see this flake8 error locally * remove bad trailing comma * move data label test to sit in chaco/overlays/tests * add stub modules in chaco/layers importing from new location and adding deprecation warnigns. Also expose layers in the chaco.overlays.api * add layers to the chaco.api as well * old files that were moved have since been changed on master and did not get updated in merge of master * flake8 * typo * update deprecation warning messages * remove stub modules from autogenerated api docs * remove chaco/layers/data * import from chaco.plots in overlay modules * import Legend from chaco.overlays.api
* FIX: fix scrollbar demo and update docstring (#489) Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com> * Add new chaco.plots submodule (#738) * add new chaco.plots submodule * move contour_line_plot.py and contour_poly_plot.py into chaco/plots/contour * import from api in tests * move relevant tests into chaco/plots/tests * add stub files at old file locations which raise Deprecation warning and import objects from their new chaco/plots modules * flake8 * update warning message * set stacklevel=2 in deprecation warnings * add a chaco.plots.api * typo * update deprecation warning messages, and remove module docstrings * Apply suggestions from code review Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com> * ignore stub modules when generating api docs * flake8 * update api module docstrings * reorder imports * suggestions from code review Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com> * add pyproject.toml to MANIFEST.in (#747) * Consolidate overlays into "chaco.overlays" (#741) * copy modules into chaco/overlays * make original modules stubs raising deprecation warnings * copy layers into overlays * fully populate chaco.overlays.api and chaco.api * flake8 * update tox.ini by running flake8 -q * somehow this is also needed in tox.ini but I did not see this flake8 error locally * remove bad trailing comma * move data label test to sit in chaco/overlays/tests * add stub modules in chaco/layers importing from new location and adding deprecation warnigns. Also expose layers in the chaco.overlays.api * add layers to the chaco.api as well * old files that were moved have since been changed on master and did not get updated in merge of master * flake8 * typo * update deprecation warning messages * remove stub modules from autogenerated api docs * remove chaco/layers/data * import from chaco.plots in overlay modules * import Legend from chaco.overlays.api Co-authored-by: Xiaoyu Wu <xiaoyu-wu@users.noreply.github.com> Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>
This PR would close #699
We still need to decide how we plan to deal with
chaco.apiandchaco.overlays.api(and alsochaco.layers.apiwhich will be moved intochaco/overlays/layers)