Giter Site home page Giter Site logo

mmlabs-mindmaze / xdffileio Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 5.0 571 KB

Library to read/write EEG data file formats

Home Page: https://opensource.mindmaze.com

License: GNU Lesser General Public License v3.0

Shell 0.63% C 84.91% Makefile 1.22% Meson 3.57% M4 3.03% Python 6.64%

xdffileio's People

Contributors

arthurgirouxmindmaze avatar gabrielganne avatar marjorieb avatar nbourdau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

xdffileio's Issues

Test suite failures on i386

Hi,
I intend to upgrade the Debian packaged version of xdffileio to version 1.0. We are building against the Debian packaged libmmlib version 1.4.2 which requires some patches which might be relevant for the issue.
The test suite passes nicely in our CI for amd64 architecture. However, for i386 we get:

FAIL: testbdf
FAIL: testedf
FAIL: testgdf1
FAIL: testgdf2
FAIL: readcheck
FAIL: recompose-gdf.sh
FAIL: errorcheck
FAIL: unittests.tap 1 - xdf_prepare_end_transfer_test.c:xdf-prepare-end-transfer:test_xdf_prepare_transfer: Assertion 'xdf != ((void *)0)' failed
FAIL: unittests.tap 2 - xdf_prepare_end_transfer_test.c:xdf-prepare-end-transfer:test_xdf_end_transfer: Assertion 'xdf != ((void *)0)' failed
PASS: unittests.tap 3 - open_test.c:open:trunc_flag: Passed
FAIL: unittests.tap 4 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 5 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 6 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 7 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 8 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 9 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 10 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 11 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 12 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 13 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 14 - read_test.c:read:unscaled_read: configuration failed
FAIL: unittests.tap 15 - read_test.c:read:unscaled_read: configuration failed
ERROR: unittests.tap - exited with status 1
=========================================
   xdffileio 1.0: tests/test-suite.log
=========================================
# TOTAL: 23
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  21
# XPASS: 0
# ERROR: 1
.. contents:: :depth: 2
FAIL: testbdf
=============
    Version : xdffileio 1.0
04/12/23 20:11:13 ERROR mmlib            : unlink(essaiw.bdf) failed ; No such file or directory (mm_unlink() in ../src/file-posix.c:370)
04/12/23 20:11:13 ERROR mmlib            : unlink(essaiw.bdf.event) failed ; No such file or directory (mm_unlink() in ../src/file-posix.c:370)
04/12/23 20:11:13 ERROR mmlib            : unlink(essaiw.bdf.code) failed ; No such file or directory (mm_unlink() in ../src/file-posix.c:370)
04/12/23 20:11:13 ERROR mmlib            : lseek(3, 5376, 163836936) failed ; Invalid argument (mm_seek() in ../src/file.c:100)
04/12/23 20:11:13 ERROR mmlib            : lseek(3, 236, -135446776) failed ; Invalid argument (mm_seek() in ../src/file.c:100)
    The files differs at 0x000000ec
FAIL testbdf (exit status: 1)
FAIL: testedf
=============
    Version : xdffileio 1.0
04/12/23 20:11:13 ERROR mmlib            : unlink(essaiw.edf) failed ; No such file or directory (mm_unlink() in ../src/file-posix.c:370)
04/12/23 20:11:13 ERROR mmlib            : lseek(3, 5376, 142337032) failed ; Invalid argument (mm_seek() in ../src/file.c:100)
04/12/23 20:11:13 ERROR mmlib            : lseek(3, 236, -135106808) failed ; Invalid argument (mm_seek() in ../src/file.c:100)
    The files differs at 0x000000ec
FAIL testedf (exit status: 1)
FAIL: testgdf1
==============
    Version : xdffileio 1.0
04/12/23 20:11:13 ERROR mmlib            : unlink(essaiw.gdf1) failed ; No such file or directory (mm_unlink() in ../src/file-posix.c:370)
...

Feel free to check the full build log on i386

Kind regards, Andreas.

Buffering issue with xdffileio

Hello

I faced the problem when biosemi sometimes stops sending data packets to the cnbitk loop. You commented the following part in xdffile.c

    // Make sure that the whole record has been sent to hardware
  •   /*
    if (fsync(xdf->fd)) {
            xdf->reportval = -errno;
            return -1;
    }
    
  •   */
    xdf->nrecord++;
    
    return 0;
    

Check the problem

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.