Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 59 additions & 59 deletions advanced_test.ipynb

Large diffs are not rendered by default.

339 changes: 115 additions & 224 deletions advanced_test_tw.ipynb

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions analyze_mcmc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -36,12 +36,12 @@
"from scipy.stats import norm, gamma, truncnorm, gaussian_kde\n",
"from scipy.stats import gaussian_kde\n",
"# pygem imports\n",
"import pygem.setup.config as config\n",
"# check for config\n",
"config.ensure_config()\n",
"from pygem.setup.config import ConfigManager\n",
"# instantiate ConfigManager\n",
"config_manager = ConfigManager()\n",
"# read the config\n",
"pygem_prms = config.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first.\n",
"pygem_prms = config_manager.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first.\n",
"# set some plotting defaults\n",
"plt.rcParams[\"font.family\"] = \"arial\"\n",
"plt.rcParams['font.size'] = 10\n",
Expand Down
12 changes: 6 additions & 6 deletions analyze_mcmc_regional.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "5d6d5f58",
"metadata": {},
"outputs": [],
Expand All @@ -68,12 +68,12 @@
"import xarray as xr\n",
"import matplotlib.image as mpimg\n",
"# pygem imports\n",
"import pygem.setup.config as config\n",
"# check for config\n",
"config.ensure_config()\n",
"from pygem.setup.config import ConfigManager\n",
"# instantiate ConfigManager\n",
"config_manager = ConfigManager()\n",
"# read the config\n",
"pygem_prms = config.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first.\n",
"pygem_prms = config_manager.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first.\n",
"import pygem.pygem_modelsetup as modelsetup\n",
"from pygem import mcmc\n",
"from pygem.shop import oib\n",
Expand Down
12 changes: 6 additions & 6 deletions analyze_regional_change.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"### imports ###\n",
"import os, sys, glob\n",
"# pygem imports\n",
"import pygem.pygem_modelsetup as modelsetup\n",
"import pygem.setup.config as config\n",
"# check for config\n",
"config.ensure_config()\n",
"from pygem.setup.config import ConfigManager\n",
"# instantiate ConfigManager\n",
"config_manager = ConfigManager()\n",
"# read the config\n",
"pygem_prms = config.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first."
"pygem_prms = config_manager.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first."
]
},
{
Expand Down
10 changes: 5 additions & 5 deletions run_calibration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
"### imports ###\n",
"import os, sys, glob, json\n",
"# pygem imports\n",
"import pygem.setup.config as config\n",
"# check for config\n",
"config.ensure_config()\n",
"from pygem.setup.config import ConfigManager\n",
"# instantiate ConfigManager\n",
"config_manager = ConfigManager()\n",
"# read the config\n",
"pygem_prms = config.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first.\n",
"pygem_prms = config_manager.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first.\n",
"rootpath=pygem_prms['root']"
]
},
Expand Down
11 changes: 5 additions & 6 deletions run_simulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@
"### imports ###\n",
"import os, sys, glob, json\n",
"# pygem imports\n",
"import pygem.setup.config as config\n",
"\n",
"# check for config\n",
"config.ensure_config()\n",
"from pygem.setup.config import ConfigManager\n",
"# instantiate ConfigManager\n",
"config_manager = ConfigManager()\n",
"# read the config\n",
"pygem_prms = config.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first.\n",
"pygem_prms = config_manager.read_config() # NOTE: ensure that your root path in ~/PyGEM/config.yaml points to\n",
" # the appropriate location. If any errors occur, check this first.\n",
"rootpath=pygem_prms['root']"
]
},
Expand Down
Loading