Skip to content

Conversation

@effigies
Copy link

Resolves enh/cifti2 with nipy#479.

Also cleans up some duplicate/unused imports.

matthew-brett and others added 11 commits August 12, 2016 11:49
Add function to compare our package version to others.  We'll use this
to see whether the deprecations have expired.
Add deprecation class and function that allows you to specify at which
version deprecation began, and at which version deprecation will raise
an error.
Check that dev version doesn't trigger error from deprecation decorator.
Replace `np.deprecate_with_doc` with `deprecate_with_version`.

There are other deprecations around the code-base that could be
signalled with this decorator.
It was already broken, and has been deprecated since version 1.0.
Specify version at which DeprecationWarning was first raised, and
planned version for removal.

Add tests for some deprecations that were not being tested.
Thanks to Chris M for reminding me.
ECAT overriding deprecated (now removed) from_filespec method in
SpatialImages.  Deprecate pending removal.
MRG: add routine to deprecate with from/to versions

Add deprecation routine that allows you to specify at which version
deprecation began, and at which version deprecation will raise an error.

Add version comparison routine for our versions, to deal with extra `dev` etc strings at end of version.
@demianw
Copy link
Collaborator

demianw commented Aug 15, 2016

Isn't it preferable to do a rebase?

@effigies
Copy link
Author

If you like. This was just fast.

@demianw
Copy link
Collaborator

demianw commented Aug 15, 2016

I think it will be less obtrusive with respect to the PR's history

@effigies
Copy link
Author

Sounds good.

@effigies effigies closed this Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants