Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getp does not work with ArraySymbolic when p is timeseries #94

Open
hexaeder opened this issue Aug 12, 2024 · 0 comments
Open

getp does not work with ArraySymbolic when p is timeseries #94

hexaeder opened this issue Aug 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hexaeder
Copy link

When get_parameter_timeseries returns Vector{ParameterTimeseriesIndex} we get the following MethodError.

ERROR: MethodError: no method matching SymbolicIndexingInterface.GetParameterTimeseriesIndex(::Vector{…}, ::Vector{…})
The type `SymbolicIndexingInterface.GetParameterTimeseriesIndex` exists, but no method is defined for this combination of argument types when trying to construct it.

Closest candidates are:
  SymbolicIndexingInterface.GetParameterTimeseriesIndex(::I, ::J) where {I<:SymbolicIndexingInterface.GetParameterIndex, J<:(SymbolicIndexingInterface.GetParameterIndex{<:SymbolicIndexingInterface.ParameterTimeseriesIndex})}
   @ SymbolicIndexingInterface ~/.julia/packages/SymbolicIndexingInterface/CErRX/src/parameter_indexing.jl:127

Stacktrace:
 [1] _getp(sys::Network{…}, ::SymbolicIndexingInterface.ArraySymbolic, ::SymbolicIndexingInterface.ScalarSymbolic, p::EPIndex{…})
   @ SymbolicIndexingInterface ~/.julia/packages/SymbolicIndexingInterface/CErRX/src/parameter_indexing.jl:628
 [2] getp(sys::Network{…}, p::EPIndex{…})
   @ SymbolicIndexingInterface ~/.julia/packages/SymbolicIndexingInterface/CErRX/src/parameter_indexing.jl:41
 [3] top-level scope
   @ REPL[31]:1
 [4] top-level scope
   @ none:1
Some type information was truncated. Use `show(err)` to see complete types.

There is a difference _getp for ::ScalarSymbolic:

return GetParameterTimeseriesIndex(
GetParameterIndex(idx), GetParameterIndex(ts_idx))

and ::ArraySymbolic

return GetParameterTimeseriesIndex(idx, ts_idx)

@hexaeder hexaeder added the bug Something isn't working label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant