Skip to content
Discussion options

You must be logged in to vote

@RemDelaporteMathurin thats the Source block. The function it takes as an argument is time dependent and will be evaluated when the Block.update method is called. For example a sine would be defined like this:

import numpy as np
from pathsim.blocks import Source

def src_fnc(t):
    return np.sin(t)

src = Source(src_fnc)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RemDelaporteMathurin
Comment options

Answer selected by RemDelaporteMathurin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants