From 7c736a6491497e1cb3e3e16e43a45b3de141c8e3 Mon Sep 17 00:00:00 2001 From: fd Date: Fri, 3 Mar 2023 11:57:54 +0100 Subject: [PATCH] . --- LICENSE => LICENSE.txt | 0 MANIFEST.in | 2 ++ setup.py | 9 ++++++++- testing/run.py | 28 ++++++++++++++++++++++++++++ testing/server.py | 2 +- 5 files changed, 39 insertions(+), 2 deletions(-) rename LICENSE => LICENSE.txt (100%) create mode 100644 MANIFEST.in create mode 100755 testing/run.py diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..cd797d8 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include LICENSE.txt +include README.md \ No newline at end of file diff --git a/setup.py b/setup.py index 6d0b835..81e4203 100755 --- a/setup.py +++ b/setup.py @@ -7,5 +7,12 @@ url='https://github.com/FlorianDietz/comgra', author='Florian Dietz', author_email='floriandietz44@gmail.com', - packages=['comgra'] + packages=['comgra'], + install_requires=[ + 'dash==2.6.2', + 'dash-svg==0.0.12', + 'msgpack==1.0.4', + 'numpy==1.24.2', + 'pandas==1.5.3', + ], ) diff --git a/testing/run.py b/testing/run.py new file mode 100755 index 0000000..078be26 --- /dev/null +++ b/testing/run.py @@ -0,0 +1,28 @@ +import os +from pathlib import Path +import sys + +import argparse +import socket + +from comgra import recorder + + + +def run_demonstration(comgra_data_root_path): + pass + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description="Run an experiment.") + parser.add_argument('--name', dest='name', default=None) + parser.add_argument('--port', dest='port', default=None) + parser.add_argument('--path', dest='path', default=None) + args = parser.parse_args() + if args.path is None: + path = (Path(__file__).parent.parent / 'testing_data').absolute() / args.name + path.mkdir(exist_ok=True, parents=True) + else: + path = Path(args.path).absolute() / args.name + assert path.exists(), path + run_demonstration(path) diff --git a/testing/server.py b/testing/server.py index b855606..3dc742a 100755 --- a/testing/server.py +++ b/testing/server.py @@ -5,7 +5,6 @@ import argparse import socket -sys.path.append(os.getcwd() + "/comgra") from comgra import visualizer if __name__ == '__main__': @@ -16,6 +15,7 @@ args = parser.parse_args() if args.path is None: path = (Path(__file__).parent.parent / 'testing_data').absolute() / args.name + path.mkdir(exist_ok=True, parents=True) else: path = Path(args.path).absolute() / args.name assert path.exists(), path