From be659dd47b6940a777a9b765c680a1cf38824450 Mon Sep 17 00:00:00 2001 From: richardreeve Date: Sun, 21 Jul 2024 15:00:50 +0100 Subject: [PATCH] fix license --- notebooks/InteractiveAfrica.jl | 12 +++++++++--- notebooks/Introduction.jl | 10 ++++++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/notebooks/InteractiveAfrica.jl b/notebooks/InteractiveAfrica.jl index fa8f8d71..95211be5 100644 --- a/notebooks/InteractiveAfrica.jl +++ b/notebooks/InteractiveAfrica.jl @@ -9,13 +9,19 @@ using InteractiveUtils # This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). macro bind(def, element) quote - local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end + local iv = try + Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), + "AbstractPlutoDingetjes")].Bonds.initial_value + catch + b -> missing + end local el = $(esc(element)) - global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el) + global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : + iv(el) el end end - + # ╔═╡ 108951ec-3ecf-4f0c-b5e4-e79d00b1bfac begin using EcoSISTEM diff --git a/notebooks/Introduction.jl b/notebooks/Introduction.jl index 0d0d84dd..31b649ee 100644 --- a/notebooks/Introduction.jl +++ b/notebooks/Introduction.jl @@ -9,9 +9,15 @@ using InteractiveUtils # This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). macro bind(def, element) quote - local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end + local iv = try + Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), + "AbstractPlutoDingetjes")].Bonds.initial_value + catch + b -> missing + end local el = $(esc(element)) - global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el) + global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : + iv(el) el end end