Skip to content

Commit

Permalink
example notebook to set up model folder
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Dec 2, 2024
1 parent 74f00ac commit 57f1f17
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions notebooks/setup-model.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Notebook to demo how to run setup model to create a model folder from scratch and assemble input files"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from tm2py.setup_model.setup import SetupModel"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"# The toml file for setup model, \n",
"# it specifies the model folder location and name, and where to copy different inputs and model configs from.\n",
"setup_model_config_file = \"../examples/setup_config.toml\""
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"setup_model = SetupModel(config_file=setup_model_config_file)\n",
"setup_model.run_setup()\n",
"\n",
"# user should find a setup_log.log in the model folder that has been created."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.7.6 ('tm2py')",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "b564c90b96fe6e457cba1c3990ed677d35aa24e533fdcc9c0c68c20bb9920f1f"
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}

1 comment on commit 57f1f17

@i-am-sijia
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AshishKuls will you please review?

Please sign in to comment.