Giter VIP home page Giter VIP logo

ecgtk's People

Contributors

rajas avatar robertmuil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ecgtk's Issues

Incorrect data read from PhysioNet nstdb/bw.dat record

Dear Raja

I'm using your code to read bw.dat record from PhysioNet nstdb database:

data, info = wt.rdsamp('/home/user/physionet/nstdb/bw')

The info is correct

{'signal_count': 2, 'signal_names': ['noise1', 'noise2'], 'samp_freq': 360.0, 'file_format': ['212', '212'], 'samp_count': 650000, 'first_values': [-29.0, 25.0], 'units': ['mV', 'mV'], 'zero_values': [0.0, 0.0], 'gains': [0.0, 0.0]}

but the data contains -Inf, Inf values for entire 3rd and 4th columns

Sincerely Yuriy

Time calculation on a SKIP pseudo-annotation is not correct

Using the rdann wfdbtools.py code to read annotation file from mitdb created with OSEA/EP Ltd Open Source Annotation software, I came accross the following issue:

Reading an annotation type 59 (SKIP) the annot_time is calculated with the lines (246:247):
annot_time.append(arr[i+2, 0] + (arr[i+2, 1] << 8) +
(arr[i+1, 0] << 16) + arr[i+1, 1] << 24)

Final bitshift is has lower precedence than additions and is therefore applied last. In my particular case, the incorrect time resulted in an empty summary.

Code should read:
annot_time.append(arr[i+2, 0] + (arr[i+2, 1] << 8) +
(arr[i+1, 0] << 16) + (arr[i+1, 1] << 24))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.