Skip to content

Commit

Permalink
issue401
Browse files Browse the repository at this point in the history
  • Loading branch information
wedeling committed Sep 27, 2023
1 parent 66f3efe commit ad7855c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/dummy_type_model/config.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"x1": $x1,
"x2": $x2
}
17 changes: 17 additions & 0 deletions tests/dummy_type_model/dummy_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python3

import sys
import json
import numpy as np

json_input = sys.argv[1]
with open(json_input, "r") as f:
inputs = json.load(f)

x1 = inputs['x1']
x2 = inputs['x2']

# output csv file, write the type of the inputs
np.savetxt("output.csv",
np.array([type(x1).__name__, type(x2).__name__]),
fmt='%s', delimiter=",", comments='', header='types')

0 comments on commit ad7855c

Please sign in to comment.