id stringlengths 36 36 | text stringlengths 1 1.25M |
|---|---|
f61fd4ee-b846-42df-9e42-384686d5465d | public LocalTime getEndTime() {
return endTime;
} |
ea132512-9575-4ee8-a65d-f2af979096a0 | public String getOutputName() {
return outputName;
} |
188238c1-bf7f-4cfd-892c-3d8d2067e577 | public PhysicalUnit getPhysicalUnit() {
return physicalUnit;
} |
3a84697b-79f3-469f-aef3-52765f3263d1 | public File getRecord() {
return record;
} |
5a523c18-2390-4c3f-a9fb-cae8fd2a4cdd | public int[] getSignals() {
return signals;
} |
b179c405-f31d-4844-ac4d-1e25271bb4b1 | public LocalTime getStartTime() {
return startTime;
} |
659463ea-a2ca-4998-a965-dd4d30e6f958 | public boolean isHighResolutionMode() {
return highResolutionMode;
} |
12382ade-8716-4076-a143-31f17c9dfd08 | public boolean isPrintColumHeadings() {
return printColumHeadings;
} |
52ce34c5-4a0d-4dc5-a26e-db20b03bf451 | public boolean isUseCSV() {
return useCSV;
} |
e8283876-9cc8-4c70-a6a3-4e32dfd129cf | public RdsampOptions setBaseDirectory(File baseDirectory) {
this.baseDirectory = baseDirectory;
return this;
} |
7efea5c0-7852-435e-8695-5df3d9a4f6bb | public RdsampOptions setEndTime(LocalTime endTime) {
this.endTime = endTime;
return this;
} |
2fa1efa7-856a-434f-b3b9-f7e0cfad22f2 | public RdsampOptions setHighResolutionMode(boolean highResolutionMode) {
this.highResolutionMode = highResolutionMode;
return this;
} |
45153cf7-b0d2-4bcf-8126-69bd47f32c91 | public RdsampOptions setPhysicalUnit(PhysicalUnit physicalUnit) {
this.physicalUnit = physicalUnit;
return this;
} |
4c9a940f-1d39-4773-ae9f-576e32b0b2b6 | public RdsampOptions setPrintColumHeadings(boolean printColumHeadings) {
this.printColumHeadings = printColumHeadings;
return this;
} |
6084d43b-b5bf-46d1-b728-8244755cb2e2 | public RdsampOptions setSignals(int... signals) {
this.signals = signals;
return this;
} |
1bfc3157-9ba9-4de6-a888-82e032320de3 | public RdsampOptions setStartTime(LocalTime startTime) {
this.startTime = startTime;
return this;
} |
b3e59197-d78e-48be-b10e-c191192a0fb1 | public RdsampOptions setUseCSV(boolean useCSV) {
this.useCSV = useCSV;
return this;
} |
55dca0d5-8ea1-4594-a51e-0a206aa96373 | public void testGetFile() throws Exception {
File file = getFile("/chf03.dat");
assertNotNull(file);
assertEquals("chf03.dat", file.getName());
} |
f408c830-5f19-4e14-93ee-d73011aa7b56 | public void testGetWFDBFile() throws Exception {
File wfdbFile = getWFDBFile("/chf03.dat");
assertNotNull(wfdbFile);
assertEquals("chf03", wfdbFile.getName());
} |
a7dda2a4-90d8-4716-a4b2-2f06df1a8b18 | public void testIsPhysioToolkitInstalled() throws Exception {
assertTrue(physioToolkit.isInstalled());
} |
ef62139d-58db-4da3-b927-42bde436686f | protected File copyFileToTemp(File f) throws IOException {
FileUtils.copyFileToDirectory(f, tmpDir);
return new File(tmpDir, f.getName());
} |
2ebdb684-e2ba-4a37-8d88-aa1a2e8c5bdc | protected File getFile(String path) throws URISyntaxException {
URL url = this.getClass().getResource(path);
return new File(url.toURI());
} |
37e88df1-377f-4474-8c77-67122be0344e | protected File getWFDBFile(String pathToDat) throws URISyntaxException {
URL url = this.getClass().getResource(pathToDat);
File datFile = new File(url.toURI());
String wfdbFile = FilenameUtils.getBaseName(pathToDat);
return new File(datFile.getParentFile(), wfdbFile);
} |
57eea202-9c00-4483-966c-24097b53824c | @Override
protected void setUp() throws Exception {
physioToolkit = new PhysioToolkit();
tmpDir = Files.createTempDir();
} |
e5d6212c-dd4a-42be-8eb8-80d201ed605b | @Override
protected void tearDown() throws Exception {
physioToolkit = null;
if (tmpDir != null) {
tmpDir.delete();
}
} |
1a101cfc-a094-4c1e-abea-b2db1ce7a48b | public void testSqrs() throws Exception {
File testFile = getWFDBFile("/chf03.dat");
physioToolkit.sqrs(testFile);
} |
8c4bd7a9-50cf-4dba-ac6a-b06bd6cd8719 | public void testBaseDirectory() throws URISyntaxException {
File chf03dat = getFile("/chf03.dat");
HRVOptions opts = new HRVOptions("chf03", "ecg");
opts.setBaseDirectory(chf03dat.getParentFile());
List<String> cmd = opts.getCommand();
assertEquals(3, cmd.size());
assertEquals("chf03", cmd.get(... |
63031186-1331-4ef6-b189-dea803d4c70d | public void testBaseDirectoryForRecord() throws Exception {
File chf03dat = getFile("/chf03.dat");
File base = chf03dat.getParentFile();
File chf03 = new File(base, "chf03");
HRVOptions opts = new HRVOptions(chf03, "ecg");
List<String> cmd = opts.getCommand();
assertEquals(3, cmd.size());
a... |
08185e68-9523-472c-82c2-5f18e685cf6a | public void testBaseDirectoryForRR() throws Exception {
File chf03dat = getFile("/chf03.dat");
File base = chf03dat.getParentFile();
File chf03rr = new File(base, "chf03.rr");
HRVOptions opts = new HRVOptions(chf03rr);
List<String> cmd = opts.getCommand();
assertEquals(3, cmd.size());
asser... |
682f778c-28ae-49ee-99a3-9393df060fa1 | public void testEndTime() {
HRVOptions opts = new HRVOptions("/rrfile.rr");
opts.setStart(5, 42);
opts.setEnd(10, 11);
List<String> cmd = opts.getCommand();
assertEquals(5, cmd.size());
assertEquals("00:05:42", cmd.get(3));
assertEquals("00:10:11", cmd.get(4));
} |
ba3a26e4-62b2-497c-99cb-cf1cd1155e10 | public void testEndTimeWithoutStartTime() {
HRVOptions opts = new HRVOptions("/rrfile.rr");
opts.setEnd(10, 11);
List<String> cmd = opts.getCommand();
assertEquals(5, cmd.size());
assertEquals("00:00:00", cmd.get(3));
assertEquals("00:10:11", cmd.get(4));
} |
862c193e-0f58-4cb8-8fa0-cc675a3525dd | public void testFilter() {
HRVOptions options = new HRVOptions("rrfile.rr");
options.setFilter("0.2 20 -x 0.4 2.0");
List<String> command = options.getCommand();
assertTrue(command.contains("-f 0.2 20 -x 0.4 2.0"));
} |
f472f087-59c1-411f-b08c-93ecb0c6c651 | public void testInvalidAnnotation() throws URISyntaxException {
File testFile = getWFDBFile("/chf03.dat");
try {
new HRVOptions(testFile, "");
} catch (Exception e) {
fail("should not throw an exception");
}
} |
e0a5b432-939b-494f-8898-bf11d072fabc | public void testInvalidFile() throws Exception {
File temporaryFile = File.createTempFile("tmpFile", "tmp");
try {
new HRVOptions(temporaryFile, "");
} catch (Exception e) {
fail("should not throw an exception");
} finally {
temporaryFile.delete();
}
} |
957b8374-cc93-46e7-adc7-6d23b5a0f056 | public void testMsec() {
HRVOptions options = new HRVOptions("rrfile.rr");
options.setOutputMsec(true);
options.setEnd(10, 0);
List<String> cmd = options.getCommand();
assertEquals(6, cmd.size());
assertEquals("-M", cmd.get(1));
assertEquals("-R", cmd.get(2));
assertEquals("rrfile.rr", ... |
69c6d212-5f8d-4e2a-a4cc-14000eda55da | public void testNnDiff() {
HRVOptions options = new HRVOptions("rrfile.rr");
options.setNnDiff("20 50");
List<String> command = options.getCommand();
assertTrue(command.contains("-p 20 50"));
} |
5386ec30-99de-41bf-b435-c44d28ddd605 | public void testNullAnnotation() throws URISyntaxException {
File testFile = getWFDBFile("/chf03.dat");
try {
new HRVOptions(testFile, null);
} catch (Exception e) {
fail("should not throw an exception");
}
} |
3f2b01cf-3e0f-4143-aafe-faad33b5f278 | public void testNullFile() throws Exception {
try {
new HRVOptions((File) null, "");
} catch (Exception e) {
fail("should not throw an exception");
}
} |
c9dabc9d-aa5c-4ba5-8b89-1e3255708083 | public void testNullFileString() throws Exception {
try {
new HRVOptions((String) null, "");
} catch (Exception e) {
fail("should not throw an exception");
}
} |
9ad1f6c9-98c6-44ea-8fd3-be3d8e74a70f | public void testRecordFile() throws Exception {
HRVOptions options = new HRVOptions("testFile", "qrs");
List<String> cmd = options.getCommand();
assertEquals(3, cmd.size());
assertEquals("testFile", cmd.get(1));
assertEquals("qrs", cmd.get(2));
} |
3dd89baf-165f-406b-b727-b2c50cf7d49b | public void testRecordFileWithStartAndEndTime() throws Exception {
HRVOptions options = new HRVOptions("testFile", "qrs");
options.setStart(10, 11);
options.setEnd(new LocalTime(1, 10, 11));
List<String> cmd = options.getCommand();
assertEquals(5, cmd.size());
assertEquals("testFile", cmd.get(1... |
266cd37d-48a1-4ed1-a15d-444b998d674d | public void testRRFile() {
HRVOptions opts = new HRVOptions("rrfile.rr");
List<String> cmd = opts.getCommand();
assertEquals(3, cmd.size());
assertEquals("-R", cmd.get(1));
assertEquals("rrfile.rr", cmd.get(2));
} |
4fbdc24b-6e48-465c-9075-6e7c1db93d00 | public void testRRIntervalsInMsec() {
HRVOptions options = new HRVOptions("rrfile.rr");
options.setRrInMSec(true);
options.setEnd(10, 0);
List<String> cmd = options.getCommand();
assertEquals(6, cmd.size());
assertEquals("-m", cmd.get(1));
assertEquals("-R", cmd.get(2));
assertEquals("r... |
b77f76ed-dda6-430f-a636-b9046d03c14a | public void testRRIntervalsInMsecWhenNoRRFile() {
HRVOptions options = new HRVOptions("myfile", "qrs");
options.setRrInMSec(true);
List<String> cmd = options.getCommand();
assertEquals(3, cmd.size());
assertEquals("myfile", cmd.get(1));
assertEquals("qrs", cmd.get(2));
} |
d8670854-832f-4e33-a672-2202e56bc139 | public void testShortTerm() {
HRVOptions opts = new HRVOptions("/rrfile.rr");
opts.setShortTermStats(true);
List<String> command = opts.getCommand();
assertTrue(command.contains("-s"));
} |
2eefda70-0d63-449e-a930-7e0c4fd82b6f | public void testStartTime() {
HRVOptions opts = new HRVOptions("/rrfile.rr");
opts.setStart(10, 11);
List<String> cmd = opts.getCommand();
assertEquals(4, cmd.size());
assertEquals("00:10:11", cmd.get(3));
} |
9dc95f38-c600-4192-b863-1bccc78bfdf3 | public void testEdf2Mit() throws Exception {
File edfFile = copyFileToTemp(getFile("/20120206171956.EDF"));
Edf2MitOptions options = new Edf2MitOptions(edfFile);
options.setBaseDirectory(tmpDir);
System.out.println(options.getCommand());
String name = physioToolkit.edf2mit(options);
File datF... |
31d34253-d426-4c95-9162-cee2f483b884 | public void test() throws URISyntaxException {
File edfFile = getFile("/20120206171956.EDF");
Edf2MitOptions options = new Edf2MitOptions(edfFile);
List<String> command = options.getCommand();
assertNotNull(command);
assertEquals(5, command.size());
assertEquals("edf2mit", command.get(0));
... |
a0cf88b6-bf28-4a3b-8e31-6886e013d247 | public void testBigEndian() throws URISyntaxException {
File edfFile = getFile("/20120206171956.EDF");
Edf2MitOptions options = new Edf2MitOptions(edfFile);
options.setBigEndian(true);
List<String> command = options.getCommand();
assertEquals(6, command.size());
assertTrue(command.contains("-b"... |
fbe76904-c5c6-46a4-aeb6-045f55509156 | public void testDefaultEndian() throws URISyntaxException {
File edfFile = getFile("/20120206171956.EDF");
Edf2MitOptions options = new Edf2MitOptions(edfFile);
List<String> command = options.getCommand();
assertEquals(5, command.size());
assertFalse(command.contains("-b"));
} |
bf42f3a9-0905-4c4c-967b-9e01d826c557 | public void testNoSignals() throws URISyntaxException {
File edfFile = getFile("/20120206171956.EDF");
Edf2MitOptions options = new Edf2MitOptions(edfFile);
options.setSignals();
List<String> command = options.getCommand();
assertEquals(5, command.size());
assertFalse(command.contains("-s"));
... |
71a5b936-7f97-40ac-a149-af3f0fce39e7 | public void testSignals() throws URISyntaxException {
File edfFile = getFile("/20120206171956.EDF");
Edf2MitOptions options = new Edf2MitOptions(edfFile);
options.setSignals(0, 1, 2);
List<String> command = options.getCommand();
assertEquals(7, command.size());
assertTrue(command.contains("-s")... |
a7fd0a72-549a-44dc-8ad5-56ae0e7421b7 | public void testRdsamp() throws Exception {
copyFileToTemp(getFile("/f1o01.hea"));
File datFile = copyFileToTemp(getFile("/f1o01.dat"));
File record = new File(datFile.getParentFile(), "f1o01");
RdsampOptions options = new RdsampOptions(record);
File outputFile = physioToolkit.rdsamp(options);
... |
5481fa38-c5d1-4dc0-bb61-b9e25aa2efd4 | public void testAnnotateJPoints() throws Exception {
File record = getWFDBFile("/chf03.dat");
WqrsOptions options = new WqrsOptions(record);
options.setAnnotateJPoints(true);
List<String> command = options.getCommand();
assertEquals(4, command.size());
assertTrue(command.contains("-j"));
as... |
4db9d3a6-a76d-4c8d-b846-4055f35e63e7 | public void testResample() throws Exception {
File record = getWFDBFile("/chf03.dat");
WqrsOptions options = new WqrsOptions(record);
options.setResample(true);
List<String> command = options.getCommand();
assertEquals(4, command.size());
assertTrue(command.contains("-R"));
assertTrue(comma... |
3b205e5e-62bc-47e9-b1aa-42098ce0e68e | public void testSpecifyPowerLine() throws Exception {
File record = getWFDBFile("/chf03.dat");
WqrsOptions options = new WqrsOptions(record);
options.setPowerLine(100);
List<String> command = options.getCommand();
assertEquals(5, command.size());
assertTrue(command.contains("-p"));
int pInd... |
4f1c2943-b53f-4f69-be20-42ede5a71dea | public void testWqrs() throws Exception {
File record = getWFDBFile("/chf03.dat");
WqrsOptions options = new WqrsOptions(record);
List<String> command = options.getCommand();
assertEquals("wqrs", command.get(0));
assertFalse(command.contains("sqrs"));
assertFalse(command.contains("sqrs125"));
... |
710a79b6-8339-42aa-9afe-3a4b9dcb6197 | public void testSqrs() throws URISyntaxException, IOException,
InterruptedException {
File testFile = getTestFile();
DetectQRSOptions options = new DetectQRSOptions(testFile);
physioToolkit.detectQRS(options);
File qrsFile = new File(options.getBaseDirectory(), "chf03.qrs");
assertTrue(qrsFi... |
0433e630-5c58-47b3-8ab8-2a67fc69177b | public void testSqrs125() throws URISyntaxException, IOException,
InterruptedException {
File testFile = getTestFile();
DetectQRSOptions options = new DetectQRSOptions(testFile);
options.setCommand("sqrs125");
physioToolkit.detectQRS(options);
File qrsFile = new File(options.getBaseDirectory... |
e125395a-04ba-4d55-b745-09c1441671d2 | public void testWqrs() throws URISyntaxException, IOException,
InterruptedException {
File testFile = getTestFile();
DetectQRSOptions options = new WqrsOptions(testFile);
physioToolkit.detectQRS(options);
File qrsFile = new File(options.getBaseDirectory(), "chf03.wqrs");
assertTrue(qrsFile.e... |
eb6ea25b-3d33-4ebf-9075-3699a82d25ed | protected File getTestFile() throws IOException, URISyntaxException {
copyFileToTemp(getFile("/chf03.hea"));
copyFileToTemp(getFile("/chf03.dat"));
return new File(tmpDir, "chf03");
} |
6d1ae7a4-e2e2-4165-baf2-2d6377d02628 | public void testBaseDirectory() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
DetectQRSOptions options = new DetectQRSOptions(record);
File baseDirectory = options.getBaseDirectory();
assertNotNull(baseDirectory);
assertEquals(record.getParentFile(), baseDirectory);
} |
8fe97b81-dc01-4a64-a4bb-c150513ddc5b | public void testEndTime() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
DetectQRSOptions options = new DetectQRSOptions(record);
options.setEndTime(new LocalTime(3, 4, 5));
List<String> command = options.getCommand();
assertEquals(5, command.size());
assertTrue(command.co... |
7f35ded1-5c29-478d-bf5e-192e10ef9402 | public void testFile() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
DetectQRSOptions options = new DetectQRSOptions(record);
List<String> command = options.getCommand();
assertNotNull(command);
assertEquals(3, command.size());
assertEquals("sqrs", command.get(0));
as... |
c4e758a4-dfab-4a2d-97fe-9f16b6d937c2 | public void testHighResolutionMode() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
DetectQRSOptions options = new DetectQRSOptions(record);
options.setHighResolutionMode(true);
List<String> command = options.getCommand();
assertTrue(command.contains("-H"));
assertTrue(com... |
a79c2a89-fe8a-4b2a-950d-f75b59394d9d | public void testSignal() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
DetectQRSOptions options = new DetectQRSOptions(record);
options.setSignal(1);
List<String> command = options.getCommand();
assertEquals(5, command.size());
assertTrue(command.contains("-s"));
int ... |
d220630a-a24f-4f94-a12f-34b5e1d2a197 | public void testSqrs() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
DetectQRSOptions options = new DetectQRSOptions(record);
options.setCommand("sqrs");
List<String> command = options.getCommand();
assertEquals("sqrs", command.get(0));
} |
68d3037c-e95f-4300-b16c-94829d415ff1 | public void testSqrs125() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
DetectQRSOptions options = new DetectQRSOptions(record);
options.setCommand("sqrs125");
List<String> command = options.getCommand();
assertEquals("sqrs125", command.get(0));
} |
ecabd4c1-d8a7-48c8-9732-3f901eb600d8 | public void testStartTime() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
DetectQRSOptions options = new DetectQRSOptions(record);
options.setStartTime(new LocalTime(1, 2, 3));
List<String> command = options.getCommand();
assertEquals(5, command.size());
assertTrue(comman... |
2dac5bbe-e2e0-44e9-affe-1e5d7eedb9ff | public void testTreshold() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
DetectQRSOptions options = new DetectQRSOptions(record);
options.setTreshold(123);
List<String> command = options.getCommand();
assertEquals(5, command.size());
assertTrue(command.contains("-m"));
... |
0301a5e4-dda9-48a1-9e38-ed13c8bbff23 | public void testBaseDirectoryForRecord() throws Exception {
File chf03 = getTestFile();
HRVOptions options = new HRVOptions("chf03", "ecg");
options.setBaseDirectory(chf03.getParentFile());
HRV hrv = physioToolkit.hrv(options);
assertNotNull(hrv);
assertEquals(0.892769, hrv.getAVNN(), DELTA);
... |
368418f6-b341-4f4a-885c-5611f7e5724b | public void testLargeFile() throws Exception {
File chf03 = getTestFile();
HRV hrv = physioToolkit.hrv(chf03, "ecg");
assertNotNull(hrv);
assertEquals(0.892769, hrv.getAVNN(), DELTA);
assertEquals(0.0612485, hrv.getSDNN(), DELTA);
} |
064e2f85-5c43-450d-9d15-789785dba01d | public void testLargeFileHRVOptions() throws Exception {
File chf03 = getTestFile();
HRVOptions options = new HRVOptions(chf03, "ecg");
HRV hrv = physioToolkit.hrv(options);
assertNotNull(hrv);
assertEquals(0.892769, hrv.getAVNN(), DELTA);
assertEquals(0.0612485, hrv.getSDNN(), DELTA);
} |
f61e8fbf-10c4-4bcd-ba2f-ff980b7d5d30 | public void testLargeFileHRVOptionsWithOutlierDetection() throws Exception {
File chf03 = getTestFile();
HRVOptions options = new HRVOptions(chf03, "ecg");
options.setFilter("0.2 20 -x 0.4 2.0");
options.setNnDiff("20 50");
HRV hrv = physioToolkit.hrv(options);
assertNotNull(hrv);
assertEqu... |
40d12147-9c0e-41ae-9bd3-0f677b1cf414 | public void testLargeFileWithHRVOptionsAndOutlierDetectionAndStartAndEndTime()
throws Exception {
File chf03 = getTestFile();
HRVOptions options = new HRVOptions(chf03, "ecg");
options.setOutputMsec(true).setShortTermStats(true);
options.setStart(0, 0).setEnd(new LocalTime(1, 0));
options.setF... |
f469acb4-ab07-4308-9755-3c160df99eed | public void testLargeFileWithOutlierDetection() throws Exception {
File chf03 = getTestFile();
HRV hrv = physioToolkit.hrv(chf03, "ecg", "-f 0.2 20 -x 0.4 2.0",
"-p 20 50");
assertNotNull(hrv);
assertEquals(0.942899, hrv.getNNRR(), DELTA);
assertEquals(0.054712, hrv.getSDNN(), DELTA);
a... |
0075864b-6f6b-4cac-b7b2-89acb4cc6781 | public void testLargeFileWithOutlierDetectionAndStartAndEndTime()
throws Exception {
File chf03 = getTestFile();
HRV hrv = physioToolkit.hrv(chf03, "ecg", new LocalTime(0, 0),
new LocalTime(1, 0), "-s", "-M", "-f 0.2 20 -x 0.4 2.0", "-p 20 50");
assertNotNull(hrv);
assertEquals(0.90173, h... |
ebfd79a4-91a9-4c4b-926a-110d7a558aa4 | protected File getTestFile() throws URISyntaxException, IOException {
copyFileToTemp(getFile("/chf03.ecg"));
copyFileToTemp(getFile("/chf03.dat"));
copyFileToTemp(getFile("/chf03.hea"));
return new File(tmpDir, "chf03");
} |
92d58b08-59eb-4a47-840d-f215955623e1 | public void test() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
assertTrue(StringUtils.isNotBlank(options.getOutputName()));
List<String> cmd = options.getCommand();
assertNotNull(cmd);
assertEquals(3, cmd.size());
... |
45d3b072-e971-4fa9-8100-739e8150663f | public void testCSV() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setUseCSV(true);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-c"));
assertTrue(cmd.indexOf("-c") > cmd.indexOf("rdsamp"));
... |
dddda2d5-ea45-4cfb-9da6-984776612363 | public void testEndTime() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setEndTime(new LocalTime(1, 2, 3));
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-t"));
assertTrue(cmd.indexOf("-t") > c... |
f63e8959-d6bd-4068-8400-f37900a09356 | public void testHighResolutionMode() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setHighResolutionMode(true);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-H"));
assertTrue(cmd.indexOf("-H")... |
46e86088-7bae-4fb8-b43d-a628e8610546 | public void testNullPhysicalUnits() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(null);
List<String> cmd = options.getCommand();
for (PhysicalUnit pu : PhysicalUnit.values()) {
assertFalse(cmd.c... |
2160bca1-cc55-43db-9b08-7e4f3db90dfb | public void testNullSignals() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setSignals(null);
List<String> cmd = options.getCommand();
assertFalse(cmd.contains("-s"));
} |
87722c8d-a199-468c-9371-5fc2f8145bfe | public void testPhysicalUnits() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.p);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-p"));
assertTrue(cmd.indexOf("-p") ... |
ff1e9a5d-31cb-4dbf-9f78-5541434355db | public void testPhysicalUnitsElapsedHours() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.ph);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-ph"));
assertTrue(cmd.... |
6f4cc9ee-9845-48e6-ac8f-12d71e6def76 | public void testPhysicalUnitsElapsedHoursMinutesSeconds()
throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.pe);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-pe"));... |
2480828e-5610-4683-8c3b-16e2c62b7150 | public void testPhysicalUnitsElapsedMinutes() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.pm);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-pm"));
assertTrue(cm... |
2f665abd-fecd-4a2b-9a32-ca0733ceef97 | public void testPhysicalUnitsElapsedSampleIntervals()
throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.pS);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-pS"));
... |
431b04d1-7619-47e0-8446-dd2f4267c089 | public void testPhysicalUnitsElapsedSeconds() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.ps);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-ps"));
assertTrue(cm... |
df932dbe-dc93-432d-bd21-963c5ea99bbc | public void testPhysicalUnitsHigherPrecision() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.P);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-P"));
assertTrue(cmd... |
064be989-dd32-4692-bf61-534573e6ce77 | public void testPhysicalUnitsHigherPrecisionElapsedHours()
throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.Ph);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-Ph"))... |
597007d2-9b99-4d0d-a216-4559efe1b5f7 | public void testPhysicalUnitsHigherPrecisionElapsedHoursMinutesSeconds()
throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.Pe);
List<String> cmd = options.getCommand();
assertTrue(cmd.co... |
cc664f5d-0c41-4024-9cbc-cc35d1dfee7b | public void testPhysicalUnitsHigherPrecisionElapsedMinutes()
throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.Pm);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-Pm"... |
2a870445-2832-4aaf-959f-9d27c7cdf3cd | public void testPhysicalUnitsHigherPrecisionElapsedSampleIntervals()
throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.PS);
List<String> cmd = options.getCommand();
assertTrue(cmd.contai... |
303782f9-8f59-4a26-8c8c-da916d28a748 | public void testPhysicalUnitsHigherPrecisionElapsedSeconds()
throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.Ps);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-Ps"... |
eca6e5fc-f5a4-40af-8a71-5df82bac98d3 | public void testPhysicalUnitsHigherPrecisionTimeOfDayAndDate()
throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.Pd);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-P... |
780856fe-8f5d-4fbb-81ec-9bd890287b2b | public void testPhysicalUnitsTimeOfDayAndDate() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPhysicalUnit(PhysicalUnit.pd);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-pd"));
assertTrue(... |
8bf972ae-3c26-4cfd-b743-8dfe08781dfe | public void testPrintColumnHeadings() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setPrintColumHeadings(true);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-v"));
assertTrue(cmd.indexOf("-v"... |
22879d18-bd64-43b9-8e16-b94c24b9a4d5 | public void testSignals() throws URISyntaxException {
File record = getWFDBFile("/chf03.dat");
RdsampOptions options = new RdsampOptions(record);
options.setSignals(0, 1, 2);
List<String> cmd = options.getCommand();
assertTrue(cmd.contains("-s"));
int sIndex = cmd.indexOf("-s");
assertEqual... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.