Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianDietz committed Mar 3, 2023
1 parent 667fa88 commit 7c736a6
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include LICENSE.txt
include README.md
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@
url='https://github.com/FlorianDietz/comgra',
author='Florian Dietz',
author_email='[email protected]',
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',
],
)
28 changes: 28 additions & 0 deletions testing/run.py
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion testing/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import argparse
import socket

sys.path.append(os.getcwd() + "/comgra")
from comgra import visualizer

if __name__ == '__main__':
Expand All @@ -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
Expand Down

0 comments on commit 7c736a6

Please sign in to comment.