Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up deprecations in sandpile #22933

Closed
dimpase opened this issue May 2, 2017 · 15 comments
Closed

clean up deprecations in sandpile #22933

dimpase opened this issue May 2, 2017 · 15 comments

Comments

@dimpase
Copy link
Member

dimpase commented May 2, 2017

Some deprecation in sandpile are in fact already removed, but still present in lazy imports. This breaks ups vars() and locals().

Namely, these are grid_sandpile and complete_sandpile.

In fact, we should clean up everything that was deprecated in #18618.

However, we leave sandlib in the code, only remove it from the global namespace, as e.g. sandlib('gor') does not have an equivalent.

Also, it turns out that while calling vars() directly still fails, one now can at least do

v=vars()
for k in v.keys(): print v[k]

Depends on #22582

CC: @jhpalmieri @sagetrac-dperkinson

Component: packages: standard

Author: Dima Pasechnik

Branch/Commit: 81e8959

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/22933

@dimpase dimpase added this to the sage-8.0 milestone May 2, 2017
@dimpase
Copy link
Member Author

dimpase commented May 2, 2017

Branch: u/dimpase/spfix

@dimpase

This comment has been minimized.

@dimpase
Copy link
Member Author

dimpase commented May 2, 2017

Author: Dima Pasechnik

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2017

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

dc46ea2trac 22582: fix merge conflicts
bc4c2f5trac 22582: rename build/bin/sage-python to sage-python23
0d30e20trac 22582: use sage-python23 to build the Sage library
7e7b5bctrac 22582: build and test packages using sage-python23 instead of python
b954864trac 22582: no need to make python2 a dependency for python3
2dad104trac 22582: a little documentation
5a645fdMerge branch 'public/22582' of trac.sagemath.org:sage into t/22582/public/22582
2179ac8Merge branch 8.0.beta3 into t/22582/public/22582
6d54e12Merge remote-tracking branch 'trac/public/22582' into spfix
d4b7838removed lazy_imports with deprecations

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2017

Commit: d4b7838

@jhpalmieri
Copy link
Member

comment:4

Why is random_digraph no longer deprecated? (I know nothing about the sandpiles code, just wondering.)

@jhpalmieri
Copy link
Member

comment:5

There are several other places where you are removing deprecation warnings without removing the (previously) deprecated functions.

@dimpase
Copy link
Member Author

dimpase commented May 2, 2017

comment:6

Replying to @jhpalmieri:

There are several other places where you are removing deprecation warnings without removing the (previously) deprecated functions.

Deprecated was placing them into the global namespace. These functions are still used internally in the module.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

f86a910removed previously deprecated firing_vector and random_digraph
81e8959fix a typo in a message

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2017

Changed commit from d4b7838 to 81e8959

@dimpase
Copy link
Member Author

dimpase commented May 2, 2017

comment:8

OK, I've removed two removable deprecated functions.

@jhpalmieri
Copy link
Member

comment:10

This is not an issue that we should deal with on this ticket, but according to the deprecation notices, someone should move the functionality from sandlib to the catalog of examples accessible using sandpiles.

@jhpalmieri
Copy link
Member

Reviewer: John Palmieri

@jhpalmieri
Copy link
Member

comment:11

I'm happy with the changes here.

@vbraun
Copy link
Member

vbraun commented May 8, 2017

Changed branch from u/dimpase/spfix to 81e8959

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants