Skip to content
Snippets Groups Projects
Commit fb69f5eb authored by Rahil Doshi's avatar Rahil Doshi
Browse files

Update TestArrayContainer.py

parent bd9e0631
Branches
...@@ -11,8 +11,11 @@ with SourceFileGenerator() as sfg: ...@@ -11,8 +11,11 @@ with SourceFileGenerator() as sfg:
arr_container = DoubleLookupArrayContainer.from_material("SS316L", mat) arr_container = DoubleLookupArrayContainer.from_material("SS316L", mat)
sfg.generate(arr_container)''' sfg.generate(arr_container)'''
T = np.array([3243.15, 3253.15, 3263.15, 3273.15], dtype=np.float64)
E = np.array([1.68e10, 1.69e10, 1.70e10, 1.71e10], dtype=np.float64)
custom_container = InterpolationArrayContainer("DoubleLookupTests", custom_container = InterpolationArrayContainer("DoubleLookupTests", np.flip(T), np.flip(E))
np.array([3243.15, 3253.15, 3263.15, 3273.15], dtype=np.float64),
np.array([1.68e10, 1.69e10, 1.70e10, 1.71e10], dtype=np.float64))
sfg.generate(custom_container) sfg.generate(custom_container)
custom_container = InterpolationArrayContainer("BinarySearchTests", T, E)
sfg.generate(custom_container)
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment