Completed
Push — master ( 2b17b1...77ef8d )
by Simon
03:52
created

hyperactive.memory.paths   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 4

4 Functions

Rating   Name   Duplication   Size   Complexity  
A get_meta_path() 0 3 1
A get_date_path() 0 2 1
A get_model_path() 0 2 1
A get_datetime() 0 2 1
1
# Author: Simon Blanke
2
# Email: [email protected]
3
# License: MIT License
4
5
import os
6
import datetime
7
8
9
def get_meta_path():
10
    current_path = os.path.realpath(__file__)
11
    return current_path.rsplit("/", 1)[0] + "/meta_data/"
12
13
14
def get_model_path(model_id):
15
    return model_id + "/"
16
17
18
def get_date_path(datetime):
19
    return "run_data/" + datetime + "/"
20
21
22
def get_datetime():
23
    return datetime.datetime.now().strftime("%d.%m.%Y - %H:%M:%S")
24