From 6f34baa23e1c9f702a4157630d1f3887cff1c198 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Tue, 23 Jan 2024 07:25:35 -0500 Subject: [PATCH] Add a license note to package using time --- src/Neuroblox.jl | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/Neuroblox.jl b/src/Neuroblox.jl index 2bd4cd2c..490d8c92 100644 --- a/src/Neuroblox.jl +++ b/src/Neuroblox.jl @@ -153,6 +153,27 @@ function random_initials(odesys::ODESystem, blox) return u0 end +function print_license() + printstyled("Important Note: ", bold = true) + print("""Neuroblox is a commercial product of Neuroblox, Inc. +It is free to use for non-commercial academic teaching +and research purposes. For commercial users, license fees apply. +Please refer to the End User License Agreement +(https://neuroblox.org/eula/) for details. +Please contact sales@neuroblox.org for purchasing information. + +To report any bugs, issues, or feature requests for Neuroblox software, +please use the public Github repository NeurobloxIssues, located at +https://github.com/Neuroblox/NeurobloxIssues. +""") +end + +function __init__() + if Preferences.@load_preference("PrintLicense", true) + print_license() + end +end + export harmonic_oscillator, jansen_ritC, jansen_ritSC, jansen_rit_spm12, next_generation, thetaneuron, qif_neuron, if_neuron, hh_neuron_excitatory, hh_neuron_inhibitory, synaptic_network, van_der_pol, wilson_cowan @@ -182,4 +203,4 @@ export get_namespaced_sys, nameof export run_experiment!, run_trial! export addnontunableparams, get_hemodynamic_observers -end \ No newline at end of file +end