question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when performing linearInterpolation from C#

See original GitHub issue

Version 2.0.0 throws on linear interpolation when trying to be called from C#:

System.NotSupportedException : Dynamic invocation of op_Explicit is not supported
   at <StartupCode$Deedle>.$SeriesStatsExtensions.InterpolateLinear@174-2.Invoke(V value) in c:\FSharp\zhuz\Deedle\src\Deedle\SeriesStatsExtensions.fs:line 174
   at <StartupCode$Deedle>.$Series.f@345-17[K,V,R](Func`2 f, KeyValuePair`2 kvp, V v) in c:\FSharp\zhuz\Deedle\src\Deedle\Series.fs:line 401
   at <StartupCode$Deedle>.$Series.Select@399-1.Invoke(KeyValuePair`2 kvp) in c:\FSharp\zhuz\Deedle\src\Deedle\Series.fs:line 400
   at <StartupCode$Deedle>.$ArrayVector.data@374-6.Invoke(Int32 i, T v) in c:\FSharp\zhuz\Deedle\src\Deedle\Vectors\ArrayVector.fs:line 374
   at Microsoft.FSharp.Collections.ArrayModule.MapIndexed[T,TResult](FSharpFunc`2 mapping, T[] array)
   at Deedle.Vectors.ArrayVector.ArrayVector`1.Deedle-IVector`1-Select[TNewValue](FSharpFunc`2 f) in c:\FSharp\zhuz\Deedle\src\Deedle\Vectors\ArrayVector.fs:line 374
   at Deedle.Series`2.SelectOptional[R](Func`2 f) in c:\FSharp\zhuz\Deedle\src\Deedle\Series.fs:line 415
   at Deedle.SeriesStatsExtensions.InterpolateLinear[K,V](Series`2 series, IEnumerable`1 keys, Func`3 keyDiff)
...

This didn’t happen with the 2.0.0-beta1

Maybe it has to do with the inline feature of F# (https://stackoverflow.com/questions/40850712/operator-used-in-f-raises-specified-method-is-not-supported-exception-from). I saw that the code is indeed marked inline…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
zyzhucommented, Mar 25, 2019

I’ve just published 2.0.1. Please test it and let me know.

0reactions
zyzhucommented, Mar 25, 2019

@FoggyFinder Sure! Thanks for your contributions!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR IN LINEAR INTERPOLATION
ERROR IN LINEAR INTERPOLATION. Let P1(x) be the linear polynomial interpolating f (x) at x0 and x1. Assume f (x) is twice continuously...
Read more >
What is the best way to represent uncertainty from linear ...
Interpolation error. The trapezoidal rule gives an area (C0+C1)Δp/2. The upper limit of area given by the left Riemann sum is C0Δp, ...
Read more >
Scipy Interpolate only allows linear interpolation, otherwise ...
It seems to work fine using linear interpolation, but raises the following error if I try and use quadratic or cubic interpolation: ValueError: ......
Read more >
Linear Interpolation - an overview
A shortcoming of this method is that the resulting images have discontinuous first-order derivatives at the sampled points. Such discontinuity can cause ...
Read more >
Linear Interpolation - cupcake physics
Linear interpolation allows us to figure out the values between entires in that table. It is easiest to think about linear interpolation in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found