GithubHelp home page GithubHelp logo

Comments (4)

tomas-teijeiro avatar tomas-teijeiro commented on July 20, 2024

Hello,

I'm sorry you are having trouble with the environment. We have recently updated the .yml file to avoid cross-platform issues, so please try to install it again. Otherwise, to avoid the mentioned problem you should install a version of scikit-learn <= 0.22.1.

Please let me know if this worked for you.

from construe.

morisbagic avatar morisbagic commented on July 20, 2024

You suggestion has been helpful.

I have built new conda environment, installed python=3.8, cython=0.28.5 to be able to install scikit-learn=0.22.1. Afterwards did conda env update from environment.yml and then compiled "construe.utils.signal_processing.dtw package" as you suggested in Known Issues. I have successfully managed to run run_example.sh!

I have also installed wfdb software package but I think I have done something wrong because when I run "python3 construe_ecg.py -r 100" it returnes:

init: can't open header for record 100
Traceback (most recent call last):
File "construe_ecg.py", line 123, in
set_ADCGain(get_gain(args.r))
File "./Desktop/construe-public/construe/utils/MIT/record_reader.py", line 53, in get_gain
for s in check_output(['wfdbdesc', record_path]).splitlines()]
File "./opt/miniconda3/envs/construe/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "./opt/miniconda3/envs/construe/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['wfdbdesc', '100']' returned non-zero exit status 2.

Hope that you can help me with that and thank you for your respond.

from construe.

tomas-teijeiro avatar tomas-teijeiro commented on July 20, 2024

Hello,

It seems the problem is that the WFDB software is not able to read the record named '100'. The simplest solution is to copy the record (.hea and .dat files) to the same folder where you are running the script. Another solution is to modify the WFDB environment variable to point to the folder where the records are saved.

from construe.

morisbagic avatar morisbagic commented on July 20, 2024

Thank you for the answer. I have successfully resolved this issue regarding the installation process! Now, I had tried to load my signal using wrsamp function to get .hea and .dat files, I have set the sampling frequency and multiplied the signal and error I get is:

File "construe_ecg.py", line 162, in
result = process_record_rhythm(rname, annots, args.tfactor,
File "./Desktop/Python/EKG_projekt/construe-public/record_processing.py", line 424, in process_record_rhythm
IN.set_record(path, ann)
File "./Desktop/Python/EKG_projekt/construe-public/construe/acquisition/record_acquisition.py", line 51, in set_record
_REC = load_MIT_record(record, physical_units)
File "./Desktop/Python/EKG_projekt/construe-public/construe/utils/MIT/record_reader.py", line 98, in load_MIT_record
raise ValueError('None of the signals in the {0} record is '
ValueError: None of the signals in the dataOut record is recognizable as an ECG signal

I manage to load the record and plot the signal, still it unrecognizible to this app, do you have any suggestions?

from construe.

Related Issues (10)

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.