Browse Source
* bin & analytics folders * sys path & config relocation * fix analytics path in nodepull/1/head
Alexey Velikiy
6 years ago
committed by
GitHub
26 changed files with 20 additions and 14 deletions
@ -0,0 +1,2 @@ |
|||||||
|
from utils.common import * |
||||||
|
from utils.segments import * |
@ -1,6 +1,6 @@ |
|||||||
import pandas as pd |
import pandas as pd |
||||||
|
|
||||||
from common import timestamp_to_index |
from utils.common import timestamp_to_index |
||||||
|
|
||||||
def parse_segment(segment, dataframe): |
def parse_segment(segment, dataframe): |
||||||
start = timestamp_to_index(dataframe, pd.to_datetime(segment['from'], unit='ms')) |
start = timestamp_to_index(dataframe, pd.to_datetime(segment['from'], unit='ms')) |
@ -1,13 +1,16 @@ |
|||||||
|
#!/usr/bin/env python3 |
||||||
|
|
||||||
|
import sys |
||||||
|
import os |
||||||
|
|
||||||
|
#TODO: make wrapper script that set PYTHONPATH instead |
||||||
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'analytics')) |
||||||
|
|
||||||
import config |
import config |
||||||
import json |
import json |
||||||
import logging |
import logging |
||||||
import sys |
|
||||||
import asyncio |
import asyncio |
||||||
import traceback |
import traceback |
||||||
import os |
|
||||||
|
|
||||||
#TODO: make wrapper script that set PYTHONPATH instead |
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), 'utils')) |
|
||||||
|
|
||||||
import services |
import services |
||||||
from analytic_unit_manager import handle_analytic_task |
from analytic_unit_manager import handle_analytic_task |
@ -1,2 +0,0 @@ |
|||||||
from common import * |
|
||||||
from segments import * |
|
Loading…
Reference in new issue