aboutsummaryrefslogtreecommitdiff
path: root/execs/python
diff options
context:
space:
mode:
Diffstat (limited to 'execs/python')
-rw-r--r--execs/python/cpdbench_zero.py45
1 files changed, 45 insertions, 0 deletions
diff --git a/execs/python/cpdbench_zero.py b/execs/python/cpdbench_zero.py
new file mode 100644
index 00000000..951fa9ea
--- /dev/null
+++ b/execs/python/cpdbench_zero.py
@@ -0,0 +1,45 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+"""
+A method that always returns no change points
+
+Author: G.J.J. van den Burg
+Date: 2020-05-07
+License: MIT
+Copyright: 2020, The Alan Turing Institute
+
+"""
+
+import argparse
+import time
+
+from cpdbench_utils import load_dataset, exit_success
+
+
+def parse_args():
+ parser = argparse.ArgumentParser(description="Wrapper for None-detector")
+ parser.add_argument(
+ "-i", "--input", help="path to the input data file", required=True
+ )
+ parser.add_argument("-o", "--output", help="path to the output file")
+ return parser.parse_args()
+
+
+def main():
+ args = parse_args()
+
+ data, mat = load_dataset(args.input)
+
+ start_time = time.time()
+
+ locations = []
+
+ stop_time = time.time()
+ runtime = stop_time - start_time
+
+ exit_success(data, args, {}, locations, runtime, __file__)
+
+
+if __name__ == "__main__":
+ main()