From edc7882458fb82f1279dd15b5f9a71fb22815771 Mon Sep 17 00:00:00 2001 From: "Joshua E. Jodesty" Date: Thu, 15 Nov 2018 18:53:55 -0500 Subject: [PATCH] updated readme, yay --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0bcd777..3e49e82 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,32 @@ pip install pipenv fn tabulate **Project:** Example Run File: -`/DiffyQ-SimCAD/test.py` +`/DiffyQ-SimCAD/sandboxUX/` +```python +import pandas as pd +from tabulate import tabulate + +from SimCAD.engine import ExecutionContext, Executor +from sandboxUX import config1, config2 + +print("Simulation Run 1") +print() +single_config = [config1] +run1 = Executor(ExecutionContext, single_config) +run1_raw_result = run1.main() +result = pd.DataFrame(run1_raw_result) +print(tabulate(result, headers='keys', tablefmt='psql')) +print() + +print("Simulation Run 2: Pairwise Execution") +print() +configs = [config1, config2] +run2 = Executor(ExecutionContext, configs) +run2_raw_results = run2.main() +for result in run2_raw_results: + print(tabulate(result, headers='keys', tablefmt='psql')) +print() +``` **User Interface: Simulation Configuration**