Skip to content

Commit

Permalink
Add a license note to package using time
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jan 23, 2024
1 parent e29451c commit 6f34baa
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/Neuroblox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -182,4 +203,4 @@ export get_namespaced_sys, nameof
export run_experiment!, run_trial!
export addnontunableparams, get_hemodynamic_observers

end
end

0 comments on commit 6f34baa

Please sign in to comment.