Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Restore wfdb Without Changing Directory in OS X? #123

Open
sami10007 opened this issue Apr 28, 2016 · 1 comment
Open

How to Restore wfdb Without Changing Directory in OS X? #123

sami10007 opened this issue Apr 28, 2016 · 1 comment

Comments

@sami10007
Copy link

sami10007 commented Apr 28, 2016

I want to restore wfdb without changing a directory in OS X. The first occurrence in the ticket #106. I describe some of its complications in #122. System: OS X El Capitan 10.11.4, WFDB 0-9-9 - 0-9-10.
I extended one issue of the thread to the deletion of the system in the ticket #124 because it will help me understand how to restore the system.

Case 1

I run wfdbdemo and I get

Reading samples ECG signal from MIT-BIH Arrhythmia Database
Error using javaObject
No class org.physionet.wfdb.jni.Rdsamp can be located on the Java class path

Error in rdsamp (line 114)
    javaWfdbRdsamp=javaObject('org.physionet.wfdb.jni.Rdsamp');

Error in wfdbdemo (line 12)
[ecg,Fs,tm]=rdsamp('mitdb/100',1,N);

It seems that the Java class path has changed. I run again to reinstall the system by Ikaro's default way

[old_path]=which('rdsamp');if(~isempty(old_path)) rmpath(old_path(1:end-8)); end
wfdb_url='https://github.com/ikarosilva/wfdb-app-toolbox/raw/master/wfdb-app-toolbox-0-9-10.zip';
[filestr,status] = urlwrite(wfdb_url,'wfdb-app-toolbox-0-9-10.zip');%Octave users may have to download manually
unzip('wfdb-app-toolbox-0-9-10.zip');
cd mcode
addpath(pwd);savepath

but I get the latter errors.

Idea - wfdbpath

I did not understand what Ikaro means in #120 with WFDB_PATH. My proposal is WFDB_PATH=['/Users/masi/Databases'];. Reproduction of the problem also in the ticket #117. Probably, understanding this would help to understand the problem of the thread.

Delete old System and Restore a New System

I deleted path/mcode directory and initiated the system again, but still, I get the error. I run wfdbdemo and get (also described in the ticket #106) the latter error again.


How can you restore WFDB Without Changing Directory in OS X?
Which directories should be removed here?

@ikarosilva
Copy link
Owner

  1. If you want to change the WFDB path, you actually need to edit the file wfdbloadlib.m Specifically modfying the variable:

WFDB_PATH=['/Users/masi/Databases'];
And restarting MATLAB.

  1. If you need to completely uninstall the toolbox, you will need to to remove the toolbox path ( from MATLAB's path. See:

http://www.mathworks.com/help/matlab/ref/rmpath.html

And restart MATLAB. You can see what is your Toolbox path by running:

[~,config] =wfdbloadlib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants