Skip to content

Commit

Permalink
Remove old deprecations and prepare 0.7rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Dec 23, 2019
1 parent 10820c3 commit bbc886c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 67 deletions.
63 changes: 0 additions & 63 deletions anndata/_core/anndata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2005,69 +2005,6 @@ def chunk_X(
# all of the following is for backwards compat
# --------------------------------------------------------------------------

@property
@utils.deprecated("X")
def data(self):
return self.X

@data.setter
@utils.deprecated("X")
def data(self, value):
self.X = value

@property
@utils.deprecated("n_obs")
def n_smps(self):
return self.n_obs

@property
@utils.deprecated("obs")
def smp(self):
return self.obs

@smp.setter
@utils.deprecated("obs")
def smp(self, value):
self.obs = value

@property
@utils.deprecated("uns")
def add(self):
return self.uns

@add.setter
@utils.deprecated("uns")
def add(self, value):
self.uns = value

@property
@utils.deprecated("obsm")
def smpm(self):
return self.obsm

@smpm.setter
@utils.deprecated("obsm")
def smpm(self, value):
self.obsm = value

@property
@utils.deprecated("obs_names")
def smp_names(self):
return self.obs_names

@smp_names.setter
@utils.deprecated("obs_names")
def smp_names(self, names):
self.obs_names = names

@utils.deprecated("obs_keys")
def smp_keys(self):
return self.obs_keys()

@utils.deprecated("obsm_keys")
def smpm_keys(self):
return self.obsm_keys()

@property
@utils.deprecated("is_view")
def isview(self):
Expand Down
19 changes: 15 additions & 4 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@
.. role:: noteversion


On Master :small:`July 29, 2019`
--------------------------------
.. note::
Upcoming changes:

- :attr:`~anndata.AnnData.layers` and :attr:`~anndata.AnnData.X` will be unified.
- :attr:`~anndata.AnnData.filename` and :attr:`~anndata.AnnData.isbacked` will be unified under a new name.
- The types of :attr:`~anndata.AnnData.raw`, :attr:`~anndata.AnnData.layers`, :attr:`~anndata.AnnData.obsm`,
:attr:`~anndata.AnnData.varm`, :attr:`~anndata.AnnData.obsp` and :attr:`~anndata.AnnData.varp` will be exported.


0.7rc1 :small:`December 23, 2019`
---------------------------------

.. warning::
Breaking changes on master include:
Breaking changes introduced between 0.6.22.post1 and 0.7rc1:

- Elements of :class:`~anndata.AnnData` objects don’t have their dimensionality reduced when the main object is subset. This is to maintain consistency when subsetting. See discussion in :issue:`145`.
- Elements of :class:`~anndata.AnnData`\ s don’t have their dimensionality reduced when the main object is subset.
This is to maintain consistency when subsetting. See discussion in :issue:`145`.
- Internal modules like `anndata.core` are private and their contents are not stable: See :issue:`174`.
- The old deprecated attributes `.smp*`. `.add` and `.data` have been removed.

Currently broken features

Expand Down

0 comments on commit bbc886c

Please sign in to comment.