-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add MethodPulseTemplate #664
base: master
Are you sure you want to change the base?
Conversation
I am conflicted about the seriazability. Do you have specific use cases for this? |
@terrorfisch No, I added it because i thought every template should be able to do this. We can also remove it |
I totally see that this can be usefull to easily hack in a desired behaviour that cannot be done with FunctionPT. |
To be clear: I do not have a use case for the serialization, but I do have a use case for the |
dcecefc
to
69e38b1
Compare
Ah, I misunderstood you than. Can you share what kind of functions you want to use this with? |
This is the equivalent of what I am using with a
Rendering either the full template, or sampling a single data point takes about 5 ms. With the For the |
69e38b1
to
39c5fc9
Compare
The
MethodPulseTemplate
allows to define a method using any Python function that accepts a time parameter (as a numpy array) and returns the calculated values of the waveform.@terrorfisch