Skip to content

Commit

Permalink
Remove getindex functionality for OrderedDict (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye authored Jan 13, 2024
1 parent 978ab3f commit b05c56e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ const StateDict = OrderedDict{Num, ComplexF64}; export StateDict
const SteadyState = Vector{ComplexF64}; export SteadyState;
const ParameterVector = Vector{Float64}; export ParameterVector;

function Base.getindex(p::ParameterRange, idx::Int...)
lengths = [length(a) for a in values(p)]
indices = CartesianIndices(Tuple(lengths))[idx...]
return [val[indices[j]] for (j,val) in enumerate(values(p))]
end

"""
$(TYPEDEF)
Expand Down

0 comments on commit b05c56e

Please sign in to comment.