Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 0f86c707eccca096d821b9018110d06e89455665
  • Loading branch information
scanisius committed May 12, 2023
1 parent dbb1c3e commit bcbb62a
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 41 deletions.
14 changes: 12 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,23 @@ of the Python package would have features that do not exist in version
0.9 series
==========

:Latest Python version: 0.9.4 (July 28, 2021)
:Latest Python version: 0.9.5 (May 11, 2023)
:Latest R version: 0.9.4 (July 28, 2021)


Python package
--------------

0.9.5 (May 11, 2023)
~~~~~~~~~~~~~~~~~~~~

**Fixed**:

- If pandas >= 2.0 was installed, constructing a DiscoverMatrix object
gave rise to "AttributeError: 'DataFrame' object has no attribute
'__array_wrap__'".


0.9.4 (July 28, 2021)
~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -55,7 +65,7 @@ Python package
**Fixed**:

- If pandas >= 1.0 was installed, subsetting a DiscoverMatrix object
gave rise to "AttributeError: 'DataFrame' objects has no attribute
gave rise to "AttributeError: 'DataFrame' object has no attribute
'ix'".

- Fixed the underlying Fortran code to make it compile with GNU
Expand Down
2 changes: 1 addition & 1 deletion python/.bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ commit = True
message = [Python package] Bump version: {current_version} → {new_version}
tag = True
tag_name = py_v{new_version}
current_version = 0.9.4
current_version = 0.9.5
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}.{release}
Expand Down
20 changes: 17 additions & 3 deletions python/conda-recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,24 @@ blas_impl:
# - openblas # [not win]

python:
- 3.6
- 3.7
- 3.8
- 3.9
- 3.10
- 3.11

numpy:
- 1.19
# python 3.8-3.9
- 1.16 # [not (osx and arm64)]
- 1.16 # [not (osx and arm64)]
# python 3.8-3.9
- 1.19 # [osx and arm64]
- 1.19 # [osx and arm64]
# python 3.10
- 1.21
# python 3.11
- 1.23

zip_keys:
-
- python
- numpy
3 changes: 1 addition & 2 deletions python/conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package:
name: discover
version: 0.9.4
version: 0.9.5

source:
path: ..
patches:
- arch-core2.patch
- no-stack-arrays.patch
- no-lto.patch # [osx]
- restore-old-nan-code.patch # [osx]

build:
number: 0
Expand Down
30 changes: 0 additions & 30 deletions python/conda-recipe/restore-old-nan-code.patch

This file was deleted.

2 changes: 1 addition & 1 deletion python/discover/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from .pairwise import pairwise_discover_test


__version__ = "0.9.4"
__version__ = "0.9.5"
2 changes: 1 addition & 1 deletion python/discover/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self, events, bg=None, strata=None):
self._events = events.copy(deep=False)

if bg is None:
self._bg = events.__array_wrap__(estimate_background(events, strata))
self._bg = pandas.DataFrame(estimate_background(events, strata), index=events.index, columns=events.columns)
else:
if strata is not None:
import warnings
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_sorted_source_files(src_dir):

if __name__ == "__main__":
setup(name="discover",
version="0.9.4",
version="0.9.5",
description="DISCOVER mutual exclusivity and co-occurrence analysis",
author="Sander Canisius",
author_email="s.canisius@nki.nl",
Expand Down

0 comments on commit bcbb62a

Please sign in to comment.