Skip to content

Commit

Permalink
Remove warning for array stacking in EXIMS
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrukwa committed Apr 26, 2020
1 parent 42ba6a2 commit d8bcf59
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
env:
MAJOR: ${{ 2 }}
MINOR: ${{ 5 }}
FIXUP: ${{ 6 }}
FIXUP: ${{ 7 }}
PACKAGE_INIT_FILE: ${{ 'divik/__init__.py' }}
PACKAGE_INIT_FILE_VERSION_LINE: ${{ 1 }}
PACKAGE_SETUP_FILE: ${{ 'setup.py' }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ docker pull gmrukwa/divik
To install specific version, you can specify it in the command, e.g.:

```bash
docker pull gmrukwa/divik:2.5.6
docker pull gmrukwa/divik:2.5.7
```

## Python package
Expand Down Expand Up @@ -79,7 +79,7 @@ pip install divik
or any stable tagged version, e.g.:

```bash
pip install divik==2.5.6
pip install divik==2.5.7
```

If you want to have compatibility with
Expand Down
2 changes: 1 addition & 1 deletion divik/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.5.6'
__version__ = '2.5.7'

from ._summary import plot, reject_split

Expand Down
2 changes: 1 addition & 1 deletion divik/feature_selection/_exims/_structness.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _greycomatrix(discrete_image: np.ndarray, mask: np.ndarray) -> np.ndarray:
gcm = _greycomatrix_backend(discrete_image, levels=levels)
if not all_allowed:
gcm = gcm[:-1, :-1, :, :]
return np.dstack(gcm[:, :, i, i] for i in range(gcm.shape[2]))
return np.dstack([gcm[:, :, i, i] for i in range(gcm.shape[2])])


def _ignorance_mask(image: np.ndarray, ignored: List) -> np.ndarray:
Expand Down
4 changes: 2 additions & 2 deletions docs/instructions/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To install latest stable version use::

To install specific version, you can specify it in the command, e.g.::

docker pull gmrukwa/divik:2.5.6
docker pull gmrukwa/divik:2.5.7

Python package
--------------
Expand All @@ -31,7 +31,7 @@ package::

or any stable tagged version, e.g.::

pip install divik==2.5.6
pip install divik==2.5.7

If you want to have compatibility with
`gin-config <https://github.com/google/gin-config>`_, you can install
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
import numpy

__version__ = '2.5.6'
__version__ = '2.5.7'

LINUX_OPTS = {
'extra_link_args': [
Expand Down

0 comments on commit d8bcf59

Please sign in to comment.