Skip to content

Commit

Permalink
enable unyt 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Jan 8, 2024
1 parent 24d02d2 commit d82df67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pyVBRc/tests/test_pyVBRc.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ def test_interpolator(fname):
dgval = vbr.input.SV.dg_um.min()
phi_targets = np.full(T_targets.shape, np.log10(phival))
dg_targets = np.full(T_targets.shape, np.log10(dgval))
if isinstance(T_targets, unyt_array):
T_targets = T_targets.d
if isinstance(dg_targets, unyt_array):
dg_targets = dg_targets.d
if isinstance(phi_targets, unyt_array):
phi_targets = phi_targets.d
targets = np.column_stack((T_targets, phi_targets, dg_targets))
Vs_interp = interp(targets)
assert len(Vs_interp) == nT * 2
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies=["numpy",
"scipy",
"matplotlib",
"packaging",
"unyt<3.0",
"unyt",
]

[tool.setuptools]
Expand Down

0 comments on commit d82df67

Please sign in to comment.