JuliaRheology / RHEOS.jl

RHEOS - Open Source Rheology data analysis software
MIT License
39 stars 9 forks source link

resample to accept RheoTimeData with only time data. #77

Closed akabla closed 4 years ago

akabla commented 4 years ago

This causes an error:

d=timeline(t_start=0, t_end=10, step = 0.4)
d=resample(d, 2)
ERROR: UndefVarError: sigma not defined

There is no reason not to accept a timeline in this function.

The error message when providing a float param could be more helpful too.

julia> d=resample(d, 2.)
ERROR: MethodError: no method matching resample(::RheoTimeData, ::Float64)
akabla commented 4 years ago

Solve with 0eeba2163fd66303a4eb7cef610c44a17d2aa37a