Skip to content

Commit

Permalink
Merge pull request #8 from JuliaSNN/dev
Browse files Browse the repository at this point in the history
removed precompilation warning
  • Loading branch information
aquaresima authored Feb 10, 2025
2 parents fa66303 + 64c4ea3 commit d94a5bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/stimulus/current_stim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end
end


function CurrentStimulus(post::T; cells=:ALL, α::R2=1, I_base = 10pA, kwargs...) where {T <: AbstractPopulation, R<:Real, R2<:Real}
function CurrentStimulus(post::T; cells=:ALL, α::R=1, I_base = 10pA, kwargs...) where {T <: AbstractPopulation, R<:Real}
if cells == :ALL
cells = 1:post.N
end
Expand Down
2 changes: 1 addition & 1 deletion src/synapse/sparse_plasticity/STDP.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Define the struct to hold synapse parameters for both Exponential and Mexican Hat STDP
# STDP Parameters Structure
using Documenter: @doc_str
using Documenter
abstract type STDPAbstractParameter <: SpikingSynapseParameter end

##################################################################################################
Expand Down
3 changes: 2 additions & 1 deletion src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ function remove_element(model, key)
merge_models(pop, syn, stim)
end

load_data(;path="", name="", info=nothing) = load_data(path, name, info)

function load_data(path="", name=nothing, info=nothing)
isfile(path) && (return dict2ntuple(DrWatson.load(path)))
Expand All @@ -365,6 +364,8 @@ function load_data(path="", name=nothing, info=nothing)
return dict2ntuple(DATA)
end

# load_data(path=""; name="", info=nothing) = load_data(path, name, info)

function load_model(path="", name=nothing, info=nothing)
isfile(path) && (return dict2ntuple(DrWatson.load(path)))
if isnothing(name)
Expand Down

0 comments on commit d94a5bd

Please sign in to comment.