summaryrefslogtreecommitdiff
path: root/bjoern
diff options
context:
space:
mode:
authorNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-04 13:02:31 +0200
committerNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-04 13:02:31 +0200
commit94e4a7b70bbd8864cb7c8b5482db5caf7bfbd279 (patch)
tree3b6abad615c6b1f715da9ca29ad4dc2208ef4be3 /bjoern
parentecddc6332c7c526b5dbf772e53fcacf68dd5b866 (diff)
organize imports
Diffstat (limited to 'bjoern')
-rwxr-xr-xbjoern/videoanalyse/LogParser.py7
-rw-r--r--bjoern/videoanalyse/post_processing.py3
2 files changed, 6 insertions, 4 deletions
diff --git a/bjoern/videoanalyse/LogParser.py b/bjoern/videoanalyse/LogParser.py
index b41804d..5b9f992 100755
--- a/bjoern/videoanalyse/LogParser.py
+++ b/bjoern/videoanalyse/LogParser.py
@@ -1,16 +1,17 @@
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
"""
This script takes multiple .log data files from PCScreenWatcher and a Firefox history database (places.sqlite)
inside a folder to extract each activity title, their url if applicable and usage timestamps into a pseudo-csv file.
"""
+import csv
import os
import re
from datetime import datetime
-import csv
-from read_sqlite import get_url_from_sqlite
from pathlib import Path
+from read_sqlite import get_url_from_sqlite
+
# takes the log data string and returns a list of activity titles and their time windows
def extract_activities(log_data):
diff --git a/bjoern/videoanalyse/post_processing.py b/bjoern/videoanalyse/post_processing.py
index bdf76c3..b5e3c65 100644
--- a/bjoern/videoanalyse/post_processing.py
+++ b/bjoern/videoanalyse/post_processing.py
@@ -3,10 +3,11 @@
import argparse
from pathlib import Path
from pprint import pprint
+
import pandas as pd
-import utils
import LogParser
+import utils
argparser = argparse.ArgumentParser(description="OCR-Logfile evaluation")
argparser.add_argument("vp_dir", help="Directory with all VPs")