Skip to content

Commit

Permalink
Remove some type parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Feb 8, 2024
1 parent 0216cf2 commit d99be15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/connections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ Note that this function `set_leftover_params! has been deprecated, and uses shou
be transitioned to using `update_leftover_params!` with keys specific to component-parameter
pairs i.e. (comp_name, param_name) => value in the dictionary.
"""
function set_leftover_params!(md::ModelDef, parameters::Dict) where T
function set_leftover_params!(md::ModelDef, parameters::Dict)
# @warn "The function `set_leftover_params! has been deprecated, please use `update_leftover_params!` with keys specific to component, parameter pairs i.e. (comp_name, param_name) => value in the dictionary.")
parameters = Dict(Symbol.(k) => v for (k, v) in parameters)
for param_ref in nothing_params(md)
Expand Down
2 changes: 1 addition & 1 deletion src/core/dimensions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ dim_count(def::AbstractDatumDef) = length(dim_names(def))
Run through all necesssary safety checks for redefining `obj`'s time dimenson to
a new dimension with keys `keys`.
"""
function _check_time_redefinition(obj::AbstractCompositeComponentDef, keys::Union{Int, Vector, Tuple, AbstractRange}) where T
function _check_time_redefinition(obj::AbstractCompositeComponentDef, keys::Union{Int, Vector, Tuple, AbstractRange})

# get useful variables
curr_keys = time_labels(obj)
Expand Down
4 changes: 2 additions & 2 deletions src/mcs/montecarlo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ end
Save the stored simulation results in `trial_df` from trial `trialnum` to files
in the directory `output_dir`
"""
function _save_trial_results(trial_df::DataFrame, datum_name::String, output_dir::AbstractString, streams::Dict{String, CSVFiles.CSVFileSaveStream{IOStream}}) where T <: AbstractSimulationData
function _save_trial_results(trial_df::DataFrame, datum_name::String, output_dir::AbstractString, streams::Dict{String, CSVFiles.CSVFileSaveStream{IOStream}})
filename = joinpath(output_dir, "$datum_name.csv")
if haskey(streams, filename)
write(streams[filename], trial_df)
Expand Down Expand Up @@ -365,7 +365,7 @@ end

# rvalue is a Number so we might need to deal with broadcasting
function _perturb_param!(param::ArrayModelParameter{T}, md::ModelDef, i::Int,
trans::TransformSpec_ModelParams, rvalue::Number) where {T, N}
trans::TransformSpec_ModelParams, rvalue::Number) where T
op = trans.op
pvalue = value(param)
indices = _param_indices(param, md, i, trans)
Expand Down

0 comments on commit d99be15

Please sign in to comment.