From e9c19604dbb00a50c86fdf2cda0a28b8904ccec1 Mon Sep 17 00:00:00 2001 From: Duarte Folgado Date: Sat, 9 Apr 2022 18:36:34 +0100 Subject: [PATCH 1/2] Fixed documentation on the segmentation code. The code section in the segmentation documentation was poiting to deprecated code. --- docs/descriptions/segmentation_search.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/descriptions/segmentation_search.rst b/docs/descriptions/segmentation_search.rst index d4be8c4..a1c2d0e 100644 --- a/docs/descriptions/segmentation_search.rst +++ b/docs/descriptions/segmentation_search.rst @@ -13,12 +13,11 @@ You will need to define the distance used for segmentation and provide a query a .. code:: python import tssearch - import numpy as np - query, weights, sequence = tssearch.examples.get_ecg_example_data() + data = tssearch.load_ecg_example() cfg = tssearch.get_distance_dict(["Dynamic Time Warping"]) - out = tssearch.time_series_segmentation(cfg, query, weights, sequence) + out = tssearch.time_series_segmentation(cfg, data["query"], data["sequence"], data["weight"]) In the code above a ten-second segment from an electrocardiography record is used to define the query and the sequence and the DTW is defined as the distance for the segmentation. Then, the segmentation is calculated and the output is assigned to a variable. The method receives as inputs the configuration file, the query, and the sequence. Additionally, an optional vector input that assigns weights for each time instance of the query is also given as input. From fe601768f5e0fda2edb80950b4150b4053b0683e Mon Sep 17 00:00:00 2001 From: Duarte Folgado Date: Sat, 9 Apr 2022 18:44:57 +0100 Subject: [PATCH 2/2] Temporary fix for readthedocs. Sphinx project version is not compliant with the most recent versions of jinja2. --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index ce069d1..cdc7c46 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ # (Pseudo) Automatically generated by https://github.com/damnever/pigar. Sphinx == 1.8.6 +jinja2 < 3.1.0 h5py >= 3.6.0 matplotlib >= 3.5.0 numba >= 0.54.1