From 3a51a2304859848398fd73d17c4e58ad8268cdb5 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Fri, 26 May 2023 10:33:54 +0400 Subject: [PATCH] Add initial main analysis script --- .run/main (ulpressa).run.xml | 24 ++++++++++++++++++++++++ .run/main (ultra) .run.xml | 24 ++++++++++++++++++++++++ main.py | 19 +++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 .run/main (ulpressa).run.xml create mode 100644 .run/main (ultra) .run.xml create mode 100644 main.py diff --git a/.run/main (ulpressa).run.xml b/.run/main (ulpressa).run.xml new file mode 100644 index 0000000..2080c5b --- /dev/null +++ b/.run/main (ulpressa).run.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/.run/main (ultra) .run.xml b/.run/main (ultra) .run.xml new file mode 100644 index 0000000..eabb4db --- /dev/null +++ b/.run/main (ultra) .run.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..90fd6a7 --- /dev/null +++ b/main.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +import os +import sys + +import pandas as pd + + +def __main(json_file): + df = pd.read_json(json_file) + print('done') + + +if __name__ == '__main__': + if len(sys.argv) != 2: + print('You must specify the raw_dataset json file') + exit(1) + if not os.path.isfile(sys.argv[1]): + print(f'File {sys.argv[1]} is not exists') + __main(sys.argv[1])