waveforms 2.0.1__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
waveforms/__init__.py ADDED
@@ -0,0 +1,10 @@
1
+ from numpy import e, pi
2
+
3
+ from .multy_drag import drag_sin, drag_sinx
4
+ from .version import __version__
5
+ from .waveform import (D, Waveform, WaveVStack, chirp, const, cos, cosh,
6
+ coshPulse, cosPulse, cut, drag, exp, function, gaussian,
7
+ general_cosine, hanning, interp, mixing, one, poly,
8
+ registerBaseFunc, registerDerivative, samplingPoints,
9
+ sign, sin, sinc, sinh, square, step, t, zero)
10
+ from .waveform_parser import wave_eval
waveforms/__main__.py ADDED
@@ -0,0 +1,16 @@
1
+ import click
2
+
3
+
4
+ @click.group()
5
+ def main():
6
+ pass
7
+
8
+
9
+ @main.command()
10
+ def hello():
11
+ """Print hello world."""
12
+ click.echo('hello, world')
13
+
14
+
15
+ if __name__ == '__main__':
16
+ main()
Binary file
@@ -0,0 +1,114 @@
1
+ from typing import Callable
2
+
3
+ import numpy as np
4
+ from numpy import e, inf, pi
5
+
6
+ NDIGITS: int = ...
7
+ __TypeIndex: int = ...
8
+ _baseFunc: dict[int, Callable] = ...
9
+ _derivativeBaseFunc: dict[int, Callable] = ...
10
+ _baseFunc_latex: dict[int, Callable] = ...
11
+
12
+ _zero: tuple[tuple, tuple] = ...
13
+
14
+
15
+ def _const(c: int | float | complex) -> tuple:
16
+ pass
17
+
18
+
19
+ _one: tuple[tuple, tuple] = ...
20
+ _half: tuple[tuple, tuple] = ...
21
+ _two: tuple[tuple, tuple] = ...
22
+ _pi: tuple[tuple, tuple] = ...
23
+ _two_pi: tuple[tuple, tuple] = ...
24
+ _half_pi: tuple[tuple, tuple] = ...
25
+
26
+
27
+ def is_const(x: tuple[tuple, tuple]) -> bool:
28
+ pass
29
+
30
+
31
+ def basic_wave(Type, *args, shift=0) -> tuple[tuple, tuple]:
32
+ pass
33
+
34
+
35
+ def mul(x: tuple[tuple, tuple], y: tuple[tuple, tuple]) -> tuple[tuple, tuple]:
36
+ pass
37
+
38
+
39
+ def add(x: tuple[tuple, tuple], y: tuple[tuple, tuple]) -> tuple[tuple, tuple]:
40
+ pass
41
+
42
+
43
+ def shift(x: tuple[tuple, tuple], time: float) -> tuple[tuple, tuple]:
44
+ pass
45
+
46
+
47
+ def pow(x: tuple[tuple, tuple], n: int) -> tuple[tuple, tuple]:
48
+ pass
49
+
50
+
51
+ def calc_parts(bounds: tuple,
52
+ seq: tuple,
53
+ x: np.ndarray,
54
+ function_lib: dict,
55
+ min=-inf,
56
+ max=inf) -> tuple[list[np.ndarray], type]:
57
+ pass
58
+
59
+
60
+ def wave_sum(waves: list[tuple[tuple, tuple]]) -> tuple[tuple, tuple]:
61
+ pass
62
+
63
+
64
+ def merge_waveform(b1: tuple, s1: tuple, b2: tuple, s2: tuple,
65
+ oper) -> tuple[tuple, tuple]:
66
+ pass
67
+
68
+
69
+ def _D(x: tuple[tuple, tuple]) -> tuple[tuple, tuple]:
70
+ pass
71
+
72
+
73
+ def registerBaseFunc(func: Callable) -> int:
74
+ pass
75
+
76
+
77
+ def packBaseFunc() -> bytes:
78
+ pass
79
+
80
+
81
+ def updateBaseFunc(buf: bytes):
82
+ pass
83
+
84
+
85
+ def registerDerivative(Type: int, dFunc: Callable):
86
+ pass
87
+
88
+
89
+ def registerBaseFuncLatex(Type: int, dFunc: Callable):
90
+ pass
91
+
92
+
93
+ LINEAR: int = ...
94
+ GAUSSIAN: int = ...
95
+ ERF: int = ...
96
+ COS: int = ...
97
+ SINC: int = ...
98
+ EXP: int = ...
99
+ INTERP: int = ...
100
+ LINEARCHIRP: int = ...
101
+ EXPONENTIALCHIRP: int = ...
102
+ HYPERBOLICCHIRP: int = ...
103
+ COSH: int = ...
104
+ SINH: int = ...
105
+ DRAG: int = ...
106
+
107
+
108
+ def simplify(expr: tuple[tuple, tuple], eps: float) -> tuple[tuple, tuple]:
109
+ pass
110
+
111
+
112
+ def filter(expr: tuple[tuple, tuple], low: float, high: float,
113
+ eps: float) -> tuple[tuple, tuple]:
114
+ pass