8000 __init.py__, soundfigure into wfs handling · sfstoolbox/sfs-python@bcc8239 · GitHub
[go: up one dir, main page]

Skip to content

Commit bcc8239

Browse files
committed
__init.py__, soundfigure into wfs handling
1 parent e16d181 commit bcc8239

File tree

7 files changed

+67
-1481
lines changed

7 files changed

+67
-1481
lines changed

sfs/mono/__init__.py

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,38 @@
99
wfs
1010
1111
source
12-
soundfigure
1312
1413
"""
14+
from . import source as _source
15+
16+
17+
def secondary_source_point(omega, c):
18+
"""Create a point source for use in `sfs.mono.synthesize()`."""
19+
20+
def secondary_source(position, _, grid):
21+
return _source.point(omega, position, grid, c)
22+
23+
return secondary_source
24+
25+
26+
def secondary_source_line(omega, c):
27+
"""Create a line source for use in `sfs.mono.synthesize()`."""
28+
29+
def secondary_source(position, _, grid):
30+
return _source.line(omega, position, grid, c)
31+
32+
return secondary_source
33+
34+
1535
import numpy as _np
1636

37+
from . import source
1738

1839
from . import esaedge
1940
from . import nfchoa
2041
from . import sdm
2142
from . import wfs
2243

23-
from . import source
24-
from . import soundfigure
25-
2644
from .. import array as _array
2745

2846

0 commit comments

Comments
 (0)
0