Skip to content

Latest commit

 

History

History
165 lines (147 loc) · 9.39 KB

changelog.md

File metadata and controls

165 lines (147 loc) · 9.39 KB

Update Version 0.4.0

Major Changes

  • updated hrv_keys.json and fixed some typos
  • added modes to the Frequency Domain functions welch_psd(), ar_psd(), and ``lomb_psd()`:
    • normal: Returns frequency domain parameters and PSD plot figure in a ReturnTuple object
    • dev: Returns frequency domain parameters, frequency and power arrays, no plot figure
    • devplot: Returns frequency domain parameters, frequency array, power array, and the plot figure
  • Frequency Domain Comparison Features:
  • Added pyhrv.tools.heart_rate_heatplot() function for graphical visualization & classification of HR performance based on normal HR ranges by age and gender (Sample Plots: plot 1, plot 2, and plot 3).
  • Added pyhrv.tools.radar_chart() function which plots a radar chart from a series of user-selected HRV parameters based on a
  • removed overlap input argument from the pyhrv.utils.segmentation() functions as it had now effect anymore due to the previous updates of this function.
  • overlap input argument has also been removed from the pyhrv.utils.sdnn_index() and pyhrv.utils.sdann() functions for the same reason (both use the pyhrv.utils.segmentation())
  • Moved, fixed, and improved hrv_report()
  • Overall improved stability of the pyhrv package
  • restructured pyhrv package (see especially tools.py and the utils.py modules):
    pyhrv                           # Toolbox
    ├── files                       # pyHRV support files
    |   ├── quickstart              # Figures for the quickstart guide (see pyhrv module README.md)
    |   ├── hr_heatplot.json        # HR reference normal values for the hr_heatplot() function
    |   ├── hrv_keys.json           # HRV keys to access the parameter results stored in
    |   ├── references.txt          # Publications references on which pyHRV functions are based
    |   ├── SampleECG.txt           # Sample ECG signal (for testing purposes)
    |   ├── SampleExport.json       # Sample HRV results export (for demonstration purposes)
    |   ├── SampleNNISeriesLong.npy # 60 minute sample NNI series (for testing purposes)
    |   ├── SampleNNISeriesShort.npy# 5 minute sample NNI series (for testing purposes)
    |   ├── SampleReport.csv        # Sample report in .csv format
    |   ├── SampleReport.pdf        # Sample report in .pdf format
    |   └── SampleReport.txt        # Sample report in .txt format
    |      
    ├── report                      # Subpackage for PDF, TXT, and CSV report generation
    |   ├── build                   # Default path for generated PDF, TXT, and CSV reports 
    |   ├── figure                  # Working directory where figures for the PDF report are temporarily stored
    |   ├── templates               # LaTeX templates for the PDF reports (feel free to customize)
    |   ├── __init__.py             # Report init file
    |   ├── main.tex                # Main LaTeX file
    |   ├── parameters.tex          # File containing all the variables in which the HRV parameters will be stored
    |   ├── pyhrv.png               # pyHRV logo for the PDF header
    |   ├── README.md               # Report README
    |   └── settings.tex            # Settings file for the LaTeX-based project
    |   
    ├── __init__.py                 # pyHRV init file
    ├── __version__.py              # pyHRV version
    ├── hrv.py                      # HRV function
    ├── frequency_domain_.py        # Frequency Domain functions
    ├── nonlinear.py                # Nonlinear Parameters functions
    ├── time_domain.py              # Time Domain functions
    ├── tools.py                    # HRV tools functions (Tachogram, ECG, radar chart, HR heatplot, and other 
    |                               # Comparison functions
    └── utils.py                    # General data verification, conversion, file handling, etc.

  • the tools.py now only contains tools specifically designed for HRV analysis (support)
  • the utils.py now only contains support functions required for the computation of the tools and computation of HRV parameters

Minor Changes

  • pyhrv.nonlinear.dfa(): added dfa_alpha1_beats return key with short term fluctuation and ``dfa_alpha2_beats` return key with long term fluctuation values
  • updated hrv_keys.json file
  • added complete as valid value for the interval input parameter of the tools.plot_ecg and tools .tachogram functions
  • pyhrv.time_domain.tinn() & pyhrv.time_domain.geometrical_parameters() functions no issue a warning due to the current issue of the TINN function of providing wrong results (see issue #5)
  • removed 'overlap' input parameter from sdnn and sdnn_index functions
  • updated main README
  • Fixes #6, #7 and #9

Update Version 0.3.2

  • IMPORTANT: fixes installation issues under Python3 using pip install (full support must yet be tested)
  • prepared mode-dependent returns for functions with plotting features

Update Version 0.3.1

  • fixes index out of range error in tools.segmentation() function
  • fixes BioSPPy import in hrv.py

Update Version 0.3

  • added ReadTheDocs documentation
  • added new frequency domain method (Autoregressive)
  • fixed missing histogram figure visualization under macOS
  • fixed 'pyhrv.tools.check_input()' function where input parameter was changed during the computation
  • updated docstrings and added documentation
  • added references
  • improved hrv() function
  • improved nonlinear() function

Update Version 0.2

  • changed toolbox name to 'pyhrv'
  • added install process using pip
  • added frequency domain parameters and method (Welch's method and Lomb-Scargle)
  • added frequency_domain() module level function
  • added frequency parameter computation in hrv() package level function
  • rearranged file structure in repository
  • added references.txt file
  • improved hrv_report() function
  • updated hrv_keys().json file
  • minor bug fixes
  • added 50 sample NNI series extracted from the MIT-BIH NSRDB database
  • updated sample HRV report and exports
  • fixed bug in pyhrv.tools.segmentation() function where NNI overlapping from one segment to the other got dropped

Update Version 0.1.2

  • added new time domain HRV parameters -> geometrical parameters

    • Triangular Index: hrv.time_domain.triangular_index()
    • TINN: hrv.time_domain.tinn()
    • Histogram (helper function powered by NumPy and Matplotlib): _hrv.time_domain._get_histogram()
    • Geometrical Parameters (calls tinn() and triangular_index() as those parameters are rarely used alone): hrv.time_domain.geometrical_parameters()
  • updated hrv.time_domain.time_domain() to also return the new geometrical parameters

  • added new nonlinear parameters -> sample entropy and detrended fluctuation analysis (DFA)

    • Sample Entropy: hrv.nonlinear_parameters.sample_entrop()
    • DFA: hrv.nonlinear_parameters.dfa()
    • Both functions powered by the nolds
  • updated hrv.nonlinear_parameters.nonlinear() to also return the new nonlinear parameters

  • added new tools function -> HRV Report

    • Entirely new HRV report generator: hrv.tools.hrv_report()
    • generates reports in .txt or .csv format
  • added_ check_fname() function to detect existing files for the generated HRV exports and HRV reports and automatically generate a new file name to avoid overwriting existing files (e.g. if 'Sample.txt' exists, it will 'increment' the new file name to 'Sample_1.txt' to avoid overwriting 'Sample.txt')

  • added 'SampleReport.txt' and 'SampleReport.csv' to the './hrv/files/'

  • updated 'SampleExport.json' in './hrv/files/'

  • fixed minor fixed in some tools functions

  • improved compatibility with Python 3

  • updated example sections in each module

Update Version 0.1.1

  • restructured entire repository
  • tested functionality and validated results for the time_domain, nonlinear_parameters, and tools modules
  • fixed example scripts at the end of each module
  • added new functions to the tools module: hrv_import(), hrv_export(), check_input()
  • fixed bugs in the tools.segmentation() function

Version Version 0.1

  • time domain functions
  • poincaré nonlinear functions
  • basic tools for HRV functions