diff --git a/README.md b/README.md index a55ce74..a07da96 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Documentation - PyPi + PyPi

@@ -151,7 +151,6 @@ Read the walkthrough below, or the concrete examples here: pot_detector.exeedance_thresholds.head() ``` ```shell - xandr gam adobe datetime 0 58.224653 85.177029 60.362306 2023-10-18 09:01:00 1 58.224653 85.177029 60.362306 2023-10-18 09:02:00 @@ -252,7 +251,6 @@ Read the walkthrough below, or the concrete examples here: Name: detected data, Length: 6570, dtype: bool ``` - 10. Now we can visualize the anomaly scores from the fitting with the anomaly threshold to get the sense of the extremely large values: ```python @@ -340,6 +338,7 @@ You have a project that only needs to be fitted? To be detected? Don't worry! `a print(f"T1: {t1}") print(f"T2: {t2}") ``` + ```shell T0: 65001 T1: 25001 T2: 10000 @@ -549,6 +548,9 @@ We have anomaly you said? Don't worry, `anomalytics` has the implementation to s # Slack slack.send ``` + ```shell + 'Notification sent successfully.' + ``` 3. Check your email or slack, this example produces the following notification via Slack: diff --git a/pyproject.toml b/pyproject.toml index 9682730..1ae5844 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "anomalytics" description = "The ultimate anomaly detection library." readme = "README.md" -version = "0.2.0" +version = "0.2.1" license = {file = "LICENSE"} requires-python = ">=3.10" authors = [ diff --git a/src/anomalytics/__init__.py b/src/anomalytics/__init__.py index fa28556..7a7394f 100644 --- a/src/anomalytics/__init__.py +++ b/src/anomalytics/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.2.0" +__version__ = "0.2.1" __all__ = [ "get_anomaly", diff --git a/src/anomalytics/notifications/email.py b/src/anomalytics/notifications/email.py index 8de383a..d1e86c5 100644 --- a/src/anomalytics/notifications/email.py +++ b/src/anomalytics/notifications/email.py @@ -105,7 +105,7 @@ def send(self): server.login(user=self.sender_address, password=self.password) server.send_message(msg=msg, from_addr=self.sender_address, to_addrs=self.recipient_addresses) server.quit() - print("Email sent successfully.") + print("Notification sent successfully.") except Exception as e: print(f"Failed to send email. Error: {e}") diff --git a/tests/test_version.py b/tests/test_version.py index 6e4bf09..181289a 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -2,4 +2,4 @@ def test_pkg_version(): - assert __version__ == "0.2.0" + assert __version__ == "0.2.1"