Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Add deprecation warning and increase version number to 0.13.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Jul 20, 2020
1 parent ceb3fcd commit 4937384
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions awkward/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@
if distutils.version.LooseVersion(numpy.__version__) < distutils.version.LooseVersion("1.13.1"):
raise ImportError("Numpy 1.13.1 or later required")

import warnings
warnings.warn(
"""Consider switching from 'awkward' to 'awkward1', since the new interface will become the default later this year (2020).
pip install -U awkward1
In Python:
>>> import awkward1 as ak
>>> new_style_array = ak.from_awkward0(old_style_array)
>>> old_style_array = ak.to_awkward0(new_style_array)
""",
DeprecationWarning
)

from awkward.array.base import AwkwardArray
from awkward.array.chunked import ChunkedArray, AppendableArray
from awkward.array.indexed import IndexedArray, SparseArray
Expand Down
2 changes: 1 addition & 1 deletion awkward/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import re

__version__ = "0.12.23"
__version__ = "0.13.0"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit 4937384

Please sign in to comment.