<jupyter_start><jupyter_text>Calibration ToolsI will use the framework outlined in the [Rules for responsible modeling](https://www.chiwater.com/Files/R184_CHI_Rules.pdf) to show how to calibrate the RTK parameters to fit the flow data for one flow meter. I am quite excited about this article, I've been dreaming to be able to do most of my calibration in python a long time ago, but was never able to do it for the reasons below,- I am not familiar with pySWMM and plotly at that time- Some of the features were only available recent years- I couldn't find the time to work them (the tools I used then would take 10 times the effort then)I hope this article will demonstrate the value of python, or an automated way of calibration. I firmly believe we need better tooling when it comes to calibration, and such tool can unlock the real power of a model for new type of applications. ![image.png](attachment:image.png) The code is too complicated to test and debug in a notebook, and I place them in the source folder so that I can properly test it. I need to first import the calibration_tools library which I programed all the helper functions to perform the above steps.**You need to change the path below to the path where you downloaded the source folder.**<jupyter_code>import sys
lib_path = r'C:\Users\Mel.Meng\Documents\GitHub\SewerAnalysis\source'
if lib_path not in sys.path:
    sys.path.append(lib_path)
sys.path

import calibration_tools<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.04794058068872384, 'fraction_numerical': 0.00337609723160027, 'mean_word_length': 4.722007722007722, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '27458', 'license': 'MIT', 'n_tokens_mistral': 393, 'n_tokens_neox': 374, 'n_words': 224, 'path': 'examples/calibration/calibration tools.ipynb', 'repo_name': 'mel-meng/SewerAnalysis', 'size': '1481'}