Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Freudenberg <[email protected]>
  • Loading branch information
Tom Freudenberg committed Jun 18, 2024
1 parent a74605c commit c055588
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ __pycache__/*
# Log folders
**/lightning_logs/**
**/bosch/**
**/Multiscale/**

**/fluid_logs/**
# Project files
.ropeproject
Expand Down
72 changes: 32 additions & 40 deletions examples/pinn/exp-function-with-param.ipynb

Large diffs are not rendered by default.

35 changes: 11 additions & 24 deletions examples/pinn/interface-jump.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/tests_plots/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def test_3D_curve():
model = FCN(input_space=R1('i')*R1('t'), output_space=R2('u'))
fig = plotter.plot(model=model)
assert torch.allclose(torch.tensor(fig.axes[0].get_xlim()).float(),
torch.tensor((-1.15, 2.15)))
torch.tensor((-1.2188, 2.2188)), rtol=0.001)
assert fig.axes[0].get_xlabel() == 'i'
pyplot.close(fig)

Expand Down

0 comments on commit c055588

Please sign in to comment.