FiniteVolumeTransportPhenomena / PyFVTool

Finite volume toolbox in Python
GNU Lesser General Public License v2.1
13 stars 4 forks source link

fix Notebooks to work with pytest #16

Closed mhvwerts closed 1 year ago

mhvwerts commented 1 year ago

Added a semi-colon to each last plotting command in a Notebook cell, suppresing any text output while plotting,

This is necessary for using Jupyter Notebooks correctly with pytest via the pytest_notebook plugin (mind the underscore in the package name: https://github.com/chrisjsewell/pytest-notebook/issues/40#issuecomment-1686621551)

mhvwerts commented 1 year ago

All Notebooks now also include an assert that does a basic benchmark test of the obtained numerical values vs the analytic result. This will help in detecting code changes that do not crash PyFVTool but lead to results that differ significantly from the expected analytic result.