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

Diff [~,config] vs [isloaded,config] from wfdbloadlib(...)? #122

Closed
sami10007 opened this issue Apr 27, 2016 · 3 comments
Closed

Diff [~,config] vs [isloaded,config] from wfdbloadlib(...)? #122

sami10007 opened this issue Apr 27, 2016 · 3 comments

Comments

@sami10007
Copy link

sami10007 commented Apr 27, 2016

System: OS X 10.11.4, WFDB 0-9-10.

Command 1

[~,config]=wfdbloadlib(debugLevel, networkWaitTime);

which sometimes gives output

Apr 27, 2016 5:22:30 PM org.physionet.wfdb.Wfdbexec gen_exec_arguments
FINEST: 
    ***commandInput.add = /Users/masi/myCode/nativelibs/macosx/bin/wfdb-config
Apr 27, 2016 5:22:30 PM org.physionet.wfdb.Wfdbexec setLauncher

...

Running many times solves the issue. Parameter config struct of configuration parameters.
I am not sure what where ~ refers to, but it does not seem to boolean like in Command 2, and not home directory. Command 2

[isloaded,config]=wfdbloadlib(debugLevel, networkWaitTime);

No such behaviour (weak evidence, since few trials). Expected behaviour isloaded boolean. Parameter config struct of configuration parameters.

Complications

I get similar outputs then in many other environments, for instance the following

[sig, Fs, tm1]=rdsamp(strcat('mitdb/',num2str(patient)),channel,N0,rawUnits); 

Output

Apr 27, 2016 5:35:20 PM org.physionet.wfdb.Wfdbexec <init>
FINEST: 
    ***Setting exec commandName to: /Users/masi/code/mcode/nativelibs/macosx/bin/rdsamp
Apr 27, 2016 5:35:20 PM org.physionet.wfdb.Wfdbexec setWFDB_PATH
FINEST: 

....

I think this complication can be a sign of a general problem.


What is the difference between [~,config] vs [isloaded,config] from wfdbloadlib(...)?

@ikarosilva
Copy link
Owner

Hi  [~,config]=wfdbloadlib(debugLevel, networkWaitTime);

The ~ is a dummy variable that MATLAB uses to to discard unwanted outputs in functions returning multiple outputs (similar to "_" in Python.

-Ikaro

On Wednesday, April 27, 2016 10:34 AM, Sami L. <notifications@github.com> wrote:

Command 1[~,config]=wfdbloadlib(debugLevel, networkWaitTime);
which sometimes give outputApr 27, 2016 5:22:30 PM org.physionet.wfdb.Wfdbexec gen_exec_arguments
FINEST:
***commandInput.add = /Users/masi/myCode/nativelibs/macosx/bin/wfdb-config
Apr 27, 2016 5:22:30 PM org.physionet.wfdb.Wfdbexec setLauncher

...
Running many times solves the issue. Parameter config struct of configuration parameters.
I am not sure what where ~ refers to, but it does not seem to boolean like in Command 2, and not home directory. Command 2[isloaded,config]=wfdbloadlib(debugLevel, networkWaitTime);
No such behaviour (weak evidence, since few trials). Expected behaviour isloaded boolean. Parameter config struct of configuration parameters. What is the difference between [~,config] vs [isloaded,config] from wfdbloadlib(...)?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

@sami10007
Copy link
Author

sami10007 commented Apr 28, 2016

Yes, that I thought. I can now reproduce the error messages with [isloaded,config]. I get the error after each restart of Matlab, inspite of dummy variable or not. Complete error message

Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec gen_exec_arguments
FINEST: 
    ***commandInput.add = /Users/masi/myCode/mcode/nativelibs/macosx/bin/wfdb-config
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec setLauncher
FINER: 
    ***setting: DYLD_LIBRARY_PATH: /Users/masi/myCode/mcode/nativelibs/macosx/bin:/Users/masi/myCode/mcode/nativelibs/macosx/lib64:/Users/masi/myCode/mcode/nativelibs/macosx/lib:/Applications/MATLAB_R2016a.app/sys/os/maci64:/Applications/MATLAB_R2016a.app/bin/maci64/../../Contents/MacOS:/Applications/MATLAB_R2016a.app/bin/maci64:/Applications/MATLAB_R2016a.app/extern/lib/maci64:/Applications/MATLAB_R2016a.app/runtime/maci64:/Applications/MATLAB_R2016a.app/sys/java/jre/maci64/jre/lib/./native_threads:/Applications/MATLAB_R2016a.app/sys/java/jre/maci64/jre/lib/./server:/Applications/MATLAB_R2016a.app/sys/java/jre/maci64/jre/lib/./lib/jli
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec setLauncher
FINER: 
    ***setting: MacOs PATH: /Users/masi/myCode/mcode/nativelibs/macosx/bin:/Users/masi/myCode/mcode/nativelibs/macosx/lib64:/Users/masi/myCode/mcode/nativelibs/macosx/lib:/Applications/MATLAB_R2016a.app/sys/os/maci64:/Applications/MATLAB_R2016a.app/bin/maci64/../../Contents/MacOS:/Applications/MATLAB_R2016a.app/bin/maci64:/Applications/MATLAB_R2016a.app/extern/lib/maci64:/Applications/MATLAB_R2016a.app/runtime/maci64:/Applications/MATLAB_R2016a.app/sys/java/jre/maci64/jre/lib/./native_threads:/Applications/MATLAB_R2016a.app/sys/java/jre/maci64/jre/lib/./server:/Applications/MATLAB_R2016a.app/sys/java/jre/maci64/jre/lib/./lib/jli
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec setLauncher
FINEST: 
    ***Setting executing process with command and arguments: [/Users/masi/myCode/mcode/nativelibs/macosx/bin/wfdb-config, --version]
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec execToStringList
FINE: 
    ***Executing Launcher with commandInput :   [/Users/masi/myCode/mcode/nativelibs/macosx/bin/wfdb-config, --version]
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec execToStringList
FINER: 
    ***Starting exec process...
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec execToStringList
FINER: 
    ***Creating read buffer and waiting for exec process...
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec execToStringList
FINEST: 
    ***Waiting for data stream from launcher...
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec execToStringList
FINEST: 
    ***A was stream initialized, checking if data or err...
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec execToStringList
FINEST: 
    ***Reading output: 
10.5.24
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec getEnvironment
FINER: 
    ***WFDB_JAVA_HOME: /Users/masi/myCode/mcode/
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec getEnvironment
FINER: 
    ***WFDB_NATIVE_BIN: /Users/masi/myCode/mcode/nativelibs/macosx/
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec getEnvironment
FINER: 
    ***Exec dir: null
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec getEnvironment
FINER: 
    ***OS: macosx
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec getEnvironment
FINER: 
    ***fullOsName: Mac OS X
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec getEnvironment
FINER: 
    ***OS Arch: x86_64
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec getEnvironment
FINER: 
    ***customArchFlag: false
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec getEnvironment
FINER: 
    ***OS Version: 10.11.4
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec getEnvironment
FINER: 
    ***JVM Version: 1.7.0_75
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec <init>
FINEST: 
    ***Setting exec commandName to: /Users/masi/myCode/mcode/nativelibs/macosx/bin/rdsamp
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec setWFDB_PATH
FINEST: 
    ***Setting WFDB to: . /Users/masi/myCode/mcode/../database/ http://physionet.org/physiobank/database/
Apr 28, 2016 4:09:01 PM org.physionet.wfdb.Wfdbexec setWFDBCAL
FINEST: 
    ***Setting WFDBCAL to:  /Users/masi/myCode/mcode//database/wfdbcal
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 make_code (line 80)
[sig, Fs, tm1]=rdsamp(strcat('mitdb/',num2str(patient)),channel,N0,rawUnits); % plot(tm,sig);

I extended the case about restoring the system without changing directory in OS X in the ticket #123, to keep focus here.


How to proceed further in such a broken installation of wfdb?

@ikarosilva
Copy link
Owner

Duplicate of #121

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