|
15 | 15 | }, |
16 | 16 | "outputs": [], |
17 | 17 | "source": [ |
18 | | - "import numpy as np\n", |
19 | 18 | "from wfdb import rdsamp\n", |
20 | 19 | "# Testing rdsamp format 212\n", |
21 | 20 | "sig, fields=rdsamp('sampledata/100', channels=[1], sampfrom=114, physical=0) # Default physical values\n", |
|
744 | 743 | }, |
745 | 744 | { |
746 | 745 | "cell_type": "code", |
747 | | - "execution_count": 6, |
| 746 | + "execution_count": null, |
748 | 747 | "metadata": { |
749 | 748 | "collapsed": false |
750 | 749 | }, |
751 | | - "outputs": [ |
752 | | - { |
753 | | - "ename": "AttributeError", |
754 | | - "evalue": "'function' object has no attribute 'dlrecordfiles'", |
755 | | - "output_type": "error", |
756 | | - "traceback": [ |
757 | | - "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", |
758 | | - "\u001b[1;31mAttributeError\u001b[0m Traceback (most recent call last)", |
759 | | - "\u001b[1;32m<ipython-input-6-476c7dab8711>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m 2\u001b[0m \u001b[1;32mimport\u001b[0m \u001b[0mwfdb\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 3\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 4\u001b[1;33m \u001b[0mwfdb\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mrdsamp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mdlrecordfiles\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'macecgdb/test01_00s'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'/home/cx1111/Downloads/wfdbrecords/prcp'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m", |
760 | | - "\u001b[1;31mAttributeError\u001b[0m: 'function' object has no attribute 'dlrecordfiles'" |
761 | | - ] |
762 | | - } |
763 | | - ], |
| 750 | + "outputs": [], |
764 | 751 | "source": [ |
765 | 752 | "import os\n", |
766 | 753 | "import wfdb\n", |
|
802 | 789 | }, |
803 | 790 | { |
804 | 791 | "cell_type": "code", |
805 | | - "execution_count": 3, |
| 792 | + "execution_count": null, |
806 | 793 | "metadata": { |
807 | 794 | "collapsed": false |
808 | 795 | }, |
809 | | - "outputs": [ |
810 | | - { |
811 | | - "name": "stdout", |
812 | | - "output_type": "stream", |
813 | | - "text": [ |
814 | | - "Downloading missing file(s) into directory: /home/cx1111/Downloads/wfdbrecords/mimic2wdb/matched/s00001\n", |
815 | | - "Download complete\n", |
816 | | - "[[ nan nan nan nan]\n", |
817 | | - " [ nan nan nan nan]\n", |
818 | | - " [ nan nan nan nan]\n", |
819 | | - " ..., \n", |
820 | | - " [ 0.73493976 2.01818182 nan nan]\n", |
821 | | - " [ 0.75903614 1.10909091 nan nan]\n", |
822 | | - " [ 1.3373494 1.14545455 nan nan]]\n" |
823 | | - ] |
824 | | - } |
825 | | - ], |
| 796 | + "outputs": [], |
826 | 797 | "source": [ |
827 | 798 | "import wfdb\n", |
828 | 799 | "sig, fields=wfdb.rdsamp('mimic2wdb/matched/s00001/s00001-2896-10-10-00-31')\n", |
|
0 commit comments