Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobson committed Oct 16, 2024
1 parent fd6efa9 commit f11cb21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/demo/scripts/customise_interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
# We can customise our model with this handler by specifying it under the
# `extensions` attribute and reloading the model to apply the extension.
# %%
my_model.extensions = os.path.join(scripts_folder, "custom_distribution_handler.py")
my_model.extensions = [os.path.join(scripts_folder, "custom_distribution_handler.py")]

my_model.save(temp_dir.name)
my_model.load(temp_dir.name)
Expand Down Expand Up @@ -318,7 +318,7 @@
extensions_registry.clear()

# Reload to apply the extensions
my_model.extensions = os.path.join(scripts_folder, "custom_reservoir_handler.py")
my_model.extensions = [os.path.join(scripts_folder, "custom_reservoir_handler.py")]
my_model.save(temp_dir.name)
my_model.load(temp_dir.name)

Expand Down

0 comments on commit f11cb21

Please sign in to comment.