Skip to content

Commit

Permalink
shorten warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Nov 4, 2018
1 parent 3f0b87b commit 9f1630a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anndata/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ def transpose(self):
if self._X is not None and self._X.dtype.name != 'float32':
logger.warn(
'Up to anndata 0.6.12, `.transpose()` cast a '
'non-\'float32\' data matrix X to \'float32\'. '
'non-\'float32\' `.X` to \'float32\'. '
'Now, the dtype \'{}\' is maintained. '
.format(self._X.dtype.name))
if not self.isbacked: X = self._X
Expand Down Expand Up @@ -1520,7 +1520,7 @@ def copy(self, filename=None):
if self._X is not None and self._X.dtype.name != 'float32':
logger.warn(
'Up to anndata 0.6.12, `.copy()` cast a '
'non-\'float32\' data matrix X to \'float32\'. '
'non-\'float32\' `.X` to \'float32\'. '
'Now, the dtype \'{}\' is maintained. '
.format(self._X.dtype.name))
return AnnData(self._X.copy() if self._X is not None else None,
Expand Down

0 comments on commit 9f1630a

Please sign in to comment.