ikarosilva / wfdb-app-toolbox

The WFDB Toolbox for MATLAB/Octave is a collection of functions for reading, writing, and processing physiologic signals in the formats used by PhysioNet (see README for details).
http://physionet.org/physiotools/matlab/wfdb-app-matlab/
GNU General Public License v3.0
92 stars 45 forks source link

Corresponding command for setwfdb in your tree? #117

Closed sami10007 closed 8 years ago

sami10007 commented 8 years ago

Hi,

According docs http://wfdb-matlab-toolbox.googlecode.com/svn/trunk/wfdb-swig-matlab/mcode/setwfdb.m, the command should exist. However, it does not exist in your tree (0-9-10), and not in 0-9-9 tree. I need a dbpath such that to allow many projects use my local files, and decrease load on your servers. I mostly need mitdb and other ecg signals.

What is the corresponding command of setwfdb in your tree?

Best regards,

Sami

alistairewj commented 8 years ago

I'm not sure if it exists anymore. My workaround was to use change directory as appropriate - not very elegant but worked. Perhaps someone else has a better solution.

sami10007 commented 8 years ago

I do not think changing the directory is a solution. I try to restore the system in #122 without changing the directory.

From Ikaro's answer about the ticket #120, I understand you can do it by doing WFDB_PATH=['/Users/masi/Databases'];. However, I am not anymore sure because my wfdb system is broken in OS X. I think Ikaro means to change the file directly. However, I would not like to do that.

The cleanest way to do this would be setting your WFDBPATH so that the toolbox searches your local directory first (default) and then either a PhysioNet server (any of the mirrors) or none at all. [- -] You can change that variable at: https://github.com/ikarosilva/wfdb-app-toolbox/blob/master/mcode/wfdbloadlib.m See lines 45-50.

So I think setting your Database location first in WFDBPATH could be a solution. However, I have not succeeded.

What do you think?

ikarosilva commented 8 years ago

Not relevant to toolbox (this is for swig matlab).