Giter Site home page Giter Site logo

embla-r's People

Contributors

aheneliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embla-r's Issues

Time format issue in parse_ebm_record

Hi there,

thanks for the great embla-r funtions which I have been trying out. While doing so I noticed that there is a formatting error /typo for the extracted starting time in the parse_ebm_record, line 124
"%d%02d%02dT%02d%02d## %0d2.%02d" which results in considerable time shifts of the signal in particular compared to any extracted annotation.
With kind regards
Steph

Annotation

Does this package read annotations from *.ebm file? I assume both, the annotations and the signal, are stored in the same *.ebm file, please correct me if wrong.

cant install package

Error: Failed to install 'ebm' from GitHub:
(converted from warning) installation of package ‘C:/Users/Kai'/AppData/Local/Temp/RtmpekVnb0/filed5440a283f/ebm_0.9.0.tar.gz’ had non-zero exit status

i cant install the package, this error comes out

Issue with joining > 2 parts of recording

Hi again,

just wanted to let you know that there was another issue, when the recording signal has more than 2 starts, in read_ebm lines 278-282, where i and i+1 should be 2_(i-1) and 2_(i-1) + 1

        ## create filler time and data vector
        time_vector[[2*(i-1)]] <- seq.int(from = t_stop[[i - 1]], to = t_start[[i]], by = (1 / header$EBM_R_SAMPLING_RATE))
        data_vector[[2*(i-1)]] <- rep(NA, length(time_vector[[2*(i-1)]]))

        time_vector[[2*(i-1) + 1]] <- t_start[[i]] + seq.int(0, (length(signal[[i]]) - 1)) / header$EBM_R_SAMPLING_RATE
        data_vector[[2*(i-1) + 1]] <- signal[[i]]

in the current case a a recording with 3 starts, the second part will be missing etc.

Cheers, steph

Unicode input file

When the .ebm file contains unicode character (i.e. Japanese, Korean etc) in the name field, the loading crashes.
i.e.

Warning: unable to translate ' <bd><c5><c8><f1><b8><f1>' to a wide stringError in gsub("~\\s+|\\s+$", "", out) : input string 1 is invalid

Is there any way to resolve this?

Problems reading files from "RemLogic PSG"

Hello!
I have EMB files from a polysomnography from a sleep lab. They were created with the "RemLogic PSG" software afaik. I'm trying to read them with your library, but am experiencing some problems.

This line:

time_vector[[i]] <- seq.int(from = t_stop[[i - 1]], to = t_start[[i]], by = (1 / header$EBM_R_SAMPLING_RATE))

Fails with:

Error during wrapup: wrong sign in 'by' argument

I think from is higher than to

What software does your library support? Do you have any hints for me for debugging?
I can see my file has EBM version 4 according to the headers:

$EBM_R_VERSION
[1] "4.0"

Here's an example file: https://drive.google.com/open?id=0B05BdPZPk27DT084ZjZ1bnI3YUE

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.