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

Make ParameterizedFunction copy parameter references #960

Open
Dsolnik opened this issue Aug 14, 2024 · 1 comment
Open

Make ParameterizedFunction copy parameter references #960

Dsolnik opened this issue Aug 14, 2024 · 1 comment

Comments

@Dsolnik
Copy link

Dsolnik commented Aug 14, 2024

In the constructor for a ParameterizedFunction, all of the values at the current point in time are copied. Unfortunately, this doesn't copy over references.

Is your feature request related to a problem? Please describe.

It's frustrating that I need to add back in all the different previous parameters back.

Describe the solution you'd like

I'd like to copy over references, or add a flag to copy them.

Describe alternatives you've considered

def instance(fn, **kwargs):
    params = fn.param.objects()
    params.update(**kwargs)
    return obj.instance(**params)

Maybe we could make an option to the instance method/

@Dsolnik
Copy link
Author

Dsolnik commented Aug 14, 2024

#961

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