Skip to content

ProcessBuilder __getitem__ support #228

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

Closed
soxofaan opened this issue Sep 6, 2021 · 0 comments · Fixed by #231
Closed

ProcessBuilder __getitem__ support #228

soxofaan opened this issue Sep 6, 2021 · 0 comments · Fixed by #231

Comments

@soxofaan
Copy link
Member

soxofaan commented Sep 6, 2021

from openEOPlatform/documentation#10

def fit_function(x:ProcessBuilder, parameters):
    pi = math.pi
    a0 = array_element(parameters, 0)
    a1 = array_element(parameters, 1)
    a2 = array_element(parameters, 2)
    return a0 + a1*cos(2*pi/31557600*x) + a2*sin(2*pi/31557600*x) # 31557600 are the seconds in one year

It would be nice to allow writing parameters[0] instead of array_element(parameters, 0)

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

Successfully merging a pull request may close this issue.

1 participant