Skip to content

Commit 24d7729

Browse files
committed
v0.2.0
1 parent aee839f commit 24d7729

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

CHANGELOG.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@ Changelog
22
=========
33

44

5+
v0.2.0 (2019-04-24)
6+
-------------------
7+
8+
* Make ``.calcs.pearson`` raise a ``ZeroDivisionError`` when the standard
9+
deviation of one/both sets of data is zero. This will be caught by
10+
``Aniffinity.calculate_affinity`` and will then raise the usual
11+
``NoAffinityError``, so scripts using this package will not need to
12+
be modified.
13+
* Fix the faulty URL resolving in the resolving function. Valid usernames
14+
starting with "http" will now be handled correctly, instead of having an
15+
exception raised when no accompanying service is specified.
16+
* Move the user/service resolving functions to ``resolver.py``, and rename
17+
these functions to more meaningful names. Additionally, make these functions
18+
non-protected, adding in official support for them.
19+
* Change the repr of the ``Aniffinity`` class to make it more accurate.
20+
* Update various docstrings to make more sense and be more accurate.
21+
* Bump the version for the dependency ``json-api-doc`` to ``v0.7.x``.
22+
* Handle the ``Decimal`` handling in ``.calcs.pearson`` better, by converting
23+
all of the values in each list to strings before passing them to
24+
``decimal.Decimal``.
25+
* Round affinity values by default to 10dp, so floating-point issues no longer
26+
need to be accounted for. This can be bypassed by the user, should they wish
27+
to do so.
28+
* Don't convert the scores lists to ``list``-s to make them non-lazy, as this
29+
is already done.
30+
* Allow the username & service to be specified as a string, in the
31+
form ``service:username``.
32+
* Resolve the ``user`` before raising exceptions, allowing the exception
33+
messages to include the service as well as the username.
34+
* Include the relevant usernames in the "standard deviation is zero"
35+
exception message in ``NoAffinityError``.
36+
37+
538
v0.1.2 (2019-04-15)
639
-------------------
740

aniffinity/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
__summary__ = "Calculate affinity between anime list users"
1212
__uri__ = "https://github.com/erkghlerngm44/aniffinity"
1313

14-
__version__ = "0.2.0.dev0"
14+
__version__ = "0.2.0"
1515

1616
__author__ = "erkghlerngm44"
1717
__email__ = "erkghlerngm44@protonmail.com"

0 commit comments

Comments
 (0)