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

Heads-up: replacement of SamplePath #38

Open
mschauer opened this issue Nov 1, 2018 · 1 comment
Open

Heads-up: replacement of SamplePath #38

mschauer opened this issue Nov 1, 2018 · 1 comment

Comments

@mschauer
Copy link
Owner

mschauer commented Nov 1, 2018

I am working on a more flexible implementation of SamplePath. I hope you appreciate renaming tt and yy fields t and x.
You can follow design here:

https://github.com/mschauer/Trajectories.jl

@mschauer
Copy link
Owner Author

mschauer commented Nov 3, 2018

We can have a smooth transition via

# Compability with Bridge
function getproperty(X::Trajectory, s::Symbol)
    if s == :tt
        warn("fieldname `tt` changed to `t` ")
        s = :t
    elseif s == :yy
        warn("fieldname `yy` changed to `x` ")
        s = :x
    end
    (s == :t || s == :x) && return getfield(X, s)
    error("getproperty: type Trajectory has no field $s")
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant