t_funcs.square
t_funcs.square(index)Return a square (top-hat) pulse time function.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| index | int | Integer suffix used to look up parameters in args. | required |
Returns
| Name | Type | Description |
|---|---|---|
| TFunc | Callable f(t, args) reading ampl_{index}, on_{index}, |
|
| TFunc | off_{index} from args. Returns ampl between on and |
|
| TFunc | off, zero outside. |