Skip to content

Commit

Permalink
Attempt to minimalise github worflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ddrous committed Apr 4, 2024
1 parent b4d9042 commit 0ff7cb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
11 changes: 1 addition & 10 deletions scripts/env_workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@ channels:
dependencies:
- pip
- pip:
- flax==0.6.7
- gmsh==4.11.1
- imageio==2.26.0
- imageio-ffmpeg==0.4.8
- matplotlib-inline==0.1.6
- optax==0.1.4
- pytest==7.2.2
- pyvista==0.38.5
- scikit-learn==1.2.2
- seaborn==0.12.2
- tqdm==4.65.0
- vtk==9.2.6
prefix: /home/gb21553/miniconda3/envs/jax
# prefix: /home/gb21553/miniconda3/envs/jax
6 changes: 6 additions & 0 deletions updec/tests/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@
assert jnp.allclose(field[:cloud1.Ni], new_field[:cloud2.Ni], atol=1e-12)

# %%

def test_interpolation(field, cloud1, cloud2):
new_field = interpolate_field(field, cloud1, cloud2)
return jnp.allclose(field[:cloud1.Ni], new_field[:cloud2.Ni], atol=1e-12)

test_interpolation(field, cloud1, cloud2)

0 comments on commit 0ff7cb2

Please sign in to comment.