ukaea / openmc_workshop

A selection of resources for learning openmc with particular focus on simulations relevant for fusion energy
https://slides.com/openmc_workshop/neutronics_workshop#/
38 stars 18 forks source link

testing notebooks with the CI #226

Open shimwell opened 3 years ago

shimwell commented 3 years ago

The current CI is minimal and doesn't fully test the notebooks

Got some more help from @agoose on this topic

There are some approaches you might take to test a notebook without the user seeing the tests:

Concerning how to test statistical outputs, well, that's another problem entirely, and I suppose one approach is to either parametrise your test mechanism to allow a higher number of samples when running your tests, or to perhaps identify the distribution on the various quantities you observe and check that your result lies within that window. I suppose you might already be doing that!

shimwell commented 3 years ago

made some progress on CI with PR #230

not all tasks are tested due to import errors but more tasks than before are now tested