generated from DARMA-tasking/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#16: bindings: Switch to modern python package build method and clean…
… up usage
- Loading branch information
1 parent
7484892
commit eea2cc7
Showing
4 changed files
with
46 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import json | ||
import yaml | ||
import vttv | ||
|
||
import sys | ||
import os | ||
|
||
# source dir is the directory a level above this file | ||
source_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | ||
|
||
with open(f'{source_dir}/tests/unit/lb_test_data/data.0.json', 'r') as f: | ||
data = json.load(f) | ||
|
||
with open(f'{source_dir}/config/conf.yaml', 'r') as stream: | ||
try: | ||
params = yaml.safe_load(stream) | ||
except yaml.YAMLError as exc: | ||
print(exc) | ||
|
||
|
||
data_serialized = json.dumps(data) | ||
params_serialized = yaml.dump(params) | ||
|
||
vttv.tv_from_json(data_serialized, params_serialized) |
This file was deleted.
Oops, something went wrong.