# `compare.deposit` The function [`compare.deposit`](#digger.compare.deposit) calculates the root mean squared error of observed and simulated deposit thickness. An example of using this functionality is provided in the file `digger/examples/post-run/synthetic/setpostprocess.py`. ```{literalinclude} ../../../../../examples/post-run/synthetic/setpostprocess.py :language: python :start-after: Block 10 Start :end-before: Block 10 End ``` :::{attention} This code snippet is not fully self-sufficient. This snippet relies on simulation output files. To reproduce the example, execute the file `digger/examples/post-run/synthetic/setpostprocess.py` from within the directory in which it is located. **Before** the script is executed either the example simulation must be run or the file `digger/data/synthetic_output.zip` must be unzipped and the resulting directory (`_output`) must be placed within `digger/examples/post-run/synthetic/`. ::: This code returns the root mean squared error of the difference between observed and simulated deposits.