Examples

This page is a (growing) list of example applications of bayesim, attempting to showcase the variety of applicability as well as ways to run the code.

Ideal diode solar cell

The most self-contained example. Available to run in two different ways:

Jupyter notebook

To run in Jupyter:

OR

  • Run in the cloud using Binder! binderbutton

Command line

To run from the command line:

  1. Download the Github repository (e.g. using git clone) to your local machine.
  2. Navigate to the folder bayesim/examples/command_line/.
  3. …to be continued…(this example is not completely working yet)

Kinematics

Probably the simplest example, explained on the Technical Background page. It exists in the Github repo under examples/kinematics/kinematics.py and you can run it all in one go from a terminal (python kinematics.py) or step-by-step in an IDE like Spyder.

Tin Sulfide (SnS) solar cell

An example using an actual numerical model – in this case, reproducing the fit (from this paper) of four material and interface properties in a tin sulfide solar cell. Also in Jupyter notebook form:

OR

  • Run in the cloud using Binder! binderbutton2