We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
FutureWarning for signal.headers
This happens with current master and NumPy 1.17.3:
```python
>>> from obspy import signal
```
```
[...]/obspy/signal/headers.py:93: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  ], align=True)
```
FutureWarning for signal.headers
This happens with current master and NumPy 1.17.3:
```python
>>> from obspy import signal
```
```
[...]/obspy/signal/headers.py:93: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  ], align=True)
```

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `obspy/signal/headers.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 """
3 Defines the libsignal and evalresp structures and blockettes.
4 """
5 from __future__ import (absolute_import, division, print_function,
6                         unicode_literals)
7 from future.builtins import *  # NOQA
8 from future.utils import native_str
9 
10 import ctypes as C  # NOQA
11 
12 import numpy as np
13 
14 from obspy.core.util.libnames import _load_cdll
15 
16 
17 # Import shared libsignal
18 clibsignal = _load_cdll("signal")
19 # Import shared libevresp
20 clibevresp = _load_cdll("evresp")
21 
22 clibsignal.calcSteer.argtypes = [
23     C.c_int, C.c_int, C.c_int, C.c_int, C.c_int, C.c_float,
24     np.ctypeslib.ndpointer(dtype=np.float32, ndim=3,
25                            flags=native_str('C_CONTIGUOUS')),
26     np.ctypeslib.ndpointer(dtype=np.complex128, ndim=4,
27                            flags=native_str('C_CONTIGUOUS')),
28 ]
29 clibsignal.calcSteer.restype = C.c_void_p
30 
31 clibsignal.generalizedBeamformer.argtypes = [
32     np.ctypeslib.ndpointer(dtype=np.float64, ndim=2,
33                            flags=native_str('C_CONTIGUOUS')),
34     np.ctypeslib.ndpointer(dtype=np.float64, ndim=2,
35                            flags=native_str('C_CONTIGUOUS')),
36     np.ctypeslib.ndpointer(dtype=np.complex128, ndim=4,
37                            flags=native_str('C_CONTIGUOUS')),
38     np.ctypeslib.ndpointer(dtype=np.complex128, ndim=3,
39                            flags=native_str('C_CONTIGUOUS')),
40     C.c_int, C.c_int, C.c_int, C.c_int, C.c_int,
41     C.c_double,
42     C.c_int,
43 ]
44 clibsignal.generalizedBeamformer.restype = C.c_int
45 
46 clibsignal.X_corr.argtypes = [
47     np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,
48                            flags=native_str('C_CONTIGUOUS')),
49     np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,
50                            flags=native_str('C_CONTIGUOUS')),
51     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
52                            flags=native_str('C_CONTIGUOUS')),
53     C.c_int, C.c_int, C.c_int,
54     C.POINTER(C.c_int), C.POINTER(C.c_double)]
55 clibsignal.X_corr.restype = C.c_int
56 
57 clibsignal.recstalta.argtypes = [
58     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
59                            flags=native_str('C_CONTIGUOUS')),
60     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
61                            flags=native_str('C_CONTIGUOUS')),
62     C.c_int, C.c_int, C.c_int]
63 clibsignal.recstalta.restype = C.c_void_p
64 
65 clibsignal.ppick.argtypes = [
66     np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,
67                            flags=native_str('C_CONTIGUOUS')),
68     C.c_int, C.POINTER(C.c_int), C.c_char_p, C.c_float, C.c_int, C.c_int,
69     C.c_float, C.c_float, C.c_int, C.c_int]
70 clibsignal.ppick.restype = C.c_int
71 
72 clibsignal.ar_picker.argtypes = [
73     np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,
74                            flags=native_str('C_CONTIGUOUS')),
75     np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,
76                            flags=native_str('C_CONTIGUOUS')),
77     np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,
78                            flags=native_str('C_CONTIGUOUS')),
79     C.c_int, C.c_float, C.c_float, C.c_float, C.c_float, C.c_float,
80     C.c_float, C.c_float, C.c_int, C.c_int, C.POINTER(C.c_float),
81     C.POINTER(C.c_float), C.c_double, C.c_double, C.c_int]
82 clibsignal.ar_picker.restypes = C.c_int
83 
84 clibsignal.utl_geo_km.argtypes = [C.c_double, C.c_double, C.c_double,
85                                   C.POINTER(C.c_double),
86                                   C.POINTER(C.c_double)]
87 clibsignal.utl_geo_km.restype = C.c_void_p
88 
89 head_stalta_t = np.dtype([
90     (native_str('N'), np.uint32, 1),
91     (native_str('nsta'), np.uint32, 1),
92     (native_str('nlta'), np.uint32, 1),
93 ], align=True)
94 
95 clibsignal.stalta.argtypes = [
96     np.ctypeslib.ndpointer(dtype=head_stalta_t, ndim=1,
97                            flags=native_str('C_CONTIGUOUS')),
98     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
99                            flags=native_str('C_CONTIGUOUS')),
100     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
101                            flags=native_str('C_CONTIGUOUS')),
102 ]
103 clibsignal.stalta.restype = C.c_int
104 
105 clibsignal.hermite_interpolation.argtypes = [
106     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
107                            flags=native_str('C_CONTIGUOUS')),
108     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
109                            flags=native_str('C_CONTIGUOUS')),
110     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
111                            flags=native_str('C_CONTIGUOUS')),
112     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
113                            flags=native_str('C_CONTIGUOUS')),
114     C.c_int, C.c_int, C.c_double, C.c_double]
115 clibsignal.hermite_interpolation.restype = C.c_void_p
116 
117 clibsignal.lanczos_resample.argtypes = [
118     # y_in
119     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
120                            flags=native_str('C_CONTIGUOUS')),
121     # y_out
122     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
123                            flags=native_str('C_CONTIGUOUS')),
124     # dt
125     C.c_double,
126     # offset
127     C.c_double,
128     # len_in
129     C.c_int,
130     # len_out,
131     C.c_int,
132     # a,
133     C.c_int,
134     # window
135     C.c_int]
136 clibsignal.lanczos_resample.restype = None
137 
138 clibsignal.calculate_kernel.argtypes = [
139     # double *x
140     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
141                            flags=native_str('C_CONTIGUOUS')),
142     # double *y
143     np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,
144                            flags=native_str('C_CONTIGUOUS')),
145     # int len
146     C.c_int,
147     # int a,
148     C.c_int,
149     # int return_type,
150     C.c_int,
151     # enum lanczos_window_type window
152     C.c_int]
153 clibsignal.calculate_kernel.restype = None
154 
155 STALEN = 64
156 NETLEN = 64
157 CHALEN = 64
158 LOCIDLEN = 64
159 
160 
161 class C_COMPLEX(C.Structure):  # noqa
162     _fields_ = [("real", C.c_double),
163                 ("imag", C.c_double)]
164 
165 
166 class RESPONSE(C.Structure):
167     pass
168 
169 
170 RESPONSE._fields_ = [("station", C.c_char * STALEN),
171                      ("network", C.c_char * NETLEN),
172                      ("locid", C.c_char * LOCIDLEN),
173                      ("channel", C.c_char * CHALEN),
174                      ("rvec", C.POINTER(C_COMPLEX)),
175                      ("nfreqs", C.c_int),
176                      ("freqs", C.POINTER(C.c_double)),
177                      ("next", C.POINTER(RESPONSE))]
178 
179 clibevresp.evresp.argtypes = [
180     C.c_char_p,
181     C.c_char_p,
182     C.c_char_p,
183     C.c_char_p,
184     C.c_char_p,
185     C.c_char_p,
186     C.c_char_p,
187     np.ctypeslib.ndpointer(dtype=np.float64,
188                            ndim=1,
189                            flags=native_str('C_CONTIGUOUS')),
190     C.c_int,
191     C.c_char_p,
192     C.c_char_p,
193     C.c_int,
194     C.c_int,
195     C.c_int,
196     C.c_int]
197 clibevresp.evresp.restype = C.POINTER(RESPONSE)
198 
199 clibevresp.free_response.argtypes = [C.POINTER(RESPONSE)]
200 clibevresp.free_response.restype = C.c_void_p
201
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/obspy/signal/headers.py b/obspy/signal/headers.py
--- a/obspy/signal/headers.py
+++ b/obspy/signal/headers.py
@@ -87,9 +87,9 @@
 clibsignal.utl_geo_km.restype = C.c_void_p
 
 head_stalta_t = np.dtype([
-    (native_str('N'), np.uint32, 1),
-    (native_str('nsta'), np.uint32, 1),
-    (native_str('nlta'), np.uint32, 1),
+    (native_str('N'), np.uint32),
+    (native_str('nsta'), np.uint32),
+    (native_str('nlta'), np.uint32),
 ], align=True)
 
 clibsignal.stalta.argtypes = [

{"golden_diff": "diff --git a/obspy/signal/headers.py b/obspy/signal/headers.py\n--- a/obspy/signal/headers.py\n+++ b/obspy/signal/headers.py\n@@ -87,9 +87,9 @@\n clibsignal.utl_geo_km.restype = C.c_void_p\n \n head_stalta_t = np.dtype([\n-    (native_str('N'), np.uint32, 1),\n-    (native_str('nsta'), np.uint32, 1),\n-    (native_str('nlta'), np.uint32, 1),\n+    (native_str('N'), np.uint32),\n+    (native_str('nsta'), np.uint32),\n+    (native_str('nlta'), np.uint32),\n ], align=True)\n \n clibsignal.stalta.argtypes = [\n", "issue": "FutureWarning for signal.headers\nThis happens with current master and NumPy 1.17.3:\r\n```python\r\n>>> from obspy import signal\r\n```\r\n```\r\n[...]/obspy/signal/headers.py:93: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.\r\n  ], align=True)\r\n```\nFutureWarning for signal.headers\nThis happens with current master and NumPy 1.17.3:\r\n```python\r\n>>> from obspy import signal\r\n```\r\n```\r\n[...]/obspy/signal/headers.py:93: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.\r\n  ], align=True)\r\n```\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\"\"\"\nDefines the libsignal and evalresp structures and blockettes.\n\"\"\"\nfrom __future__ import (absolute_import, division, print_function,\n                        unicode_literals)\nfrom future.builtins import *  # NOQA\nfrom future.utils import native_str\n\nimport ctypes as C  # NOQA\n\nimport numpy as np\n\nfrom obspy.core.util.libnames import _load_cdll\n\n\n# Import shared libsignal\nclibsignal = _load_cdll(\"signal\")\n# Import shared libevresp\nclibevresp = _load_cdll(\"evresp\")\n\nclibsignal.calcSteer.argtypes = [\n    C.c_int, C.c_int, C.c_int, C.c_int, C.c_int, C.c_float,\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=3,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.complex128, ndim=4,\n                           flags=native_str('C_CONTIGUOUS')),\n]\nclibsignal.calcSteer.restype = C.c_void_p\n\nclibsignal.generalizedBeamformer.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=2,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=2,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.complex128, ndim=4,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.complex128, ndim=3,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_int, C.c_int, C.c_int, C.c_int,\n    C.c_double,\n    C.c_int,\n]\nclibsignal.generalizedBeamformer.restype = C.c_int\n\nclibsignal.X_corr.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_int, C.c_int,\n    C.POINTER(C.c_int), C.POINTER(C.c_double)]\nclibsignal.X_corr.restype = C.c_int\n\nclibsignal.recstalta.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_int, C.c_int]\nclibsignal.recstalta.restype = C.c_void_p\n\nclibsignal.ppick.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.POINTER(C.c_int), C.c_char_p, C.c_float, C.c_int, C.c_int,\n    C.c_float, C.c_float, C.c_int, C.c_int]\nclibsignal.ppick.restype = C.c_int\n\nclibsignal.ar_picker.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_float, C.c_float, C.c_float, C.c_float, C.c_float,\n    C.c_float, C.c_float, C.c_int, C.c_int, C.POINTER(C.c_float),\n    C.POINTER(C.c_float), C.c_double, C.c_double, C.c_int]\nclibsignal.ar_picker.restypes = C.c_int\n\nclibsignal.utl_geo_km.argtypes = [C.c_double, C.c_double, C.c_double,\n                                  C.POINTER(C.c_double),\n                                  C.POINTER(C.c_double)]\nclibsignal.utl_geo_km.restype = C.c_void_p\n\nhead_stalta_t = np.dtype([\n    (native_str('N'), np.uint32, 1),\n    (native_str('nsta'), np.uint32, 1),\n    (native_str('nlta'), np.uint32, 1),\n], align=True)\n\nclibsignal.stalta.argtypes = [\n    np.ctypeslib.ndpointer(dtype=head_stalta_t, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n]\nclibsignal.stalta.restype = C.c_int\n\nclibsignal.hermite_interpolation.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_int, C.c_double, C.c_double]\nclibsignal.hermite_interpolation.restype = C.c_void_p\n\nclibsignal.lanczos_resample.argtypes = [\n    # y_in\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    # y_out\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    # dt\n    C.c_double,\n    # offset\n    C.c_double,\n    # len_in\n    C.c_int,\n    # len_out,\n    C.c_int,\n    # a,\n    C.c_int,\n    # window\n    C.c_int]\nclibsignal.lanczos_resample.restype = None\n\nclibsignal.calculate_kernel.argtypes = [\n    # double *x\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    # double *y\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    # int len\n    C.c_int,\n    # int a,\n    C.c_int,\n    # int return_type,\n    C.c_int,\n    # enum lanczos_window_type window\n    C.c_int]\nclibsignal.calculate_kernel.restype = None\n\nSTALEN = 64\nNETLEN = 64\nCHALEN = 64\nLOCIDLEN = 64\n\n\nclass C_COMPLEX(C.Structure):  # noqa\n    _fields_ = [(\"real\", C.c_double),\n                (\"imag\", C.c_double)]\n\n\nclass RESPONSE(C.Structure):\n    pass\n\n\nRESPONSE._fields_ = [(\"station\", C.c_char * STALEN),\n                     (\"network\", C.c_char * NETLEN),\n                     (\"locid\", C.c_char * LOCIDLEN),\n                     (\"channel\", C.c_char * CHALEN),\n                     (\"rvec\", C.POINTER(C_COMPLEX)),\n                     (\"nfreqs\", C.c_int),\n                     (\"freqs\", C.POINTER(C.c_double)),\n                     (\"next\", C.POINTER(RESPONSE))]\n\nclibevresp.evresp.argtypes = [\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    np.ctypeslib.ndpointer(dtype=np.float64,\n                           ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_int,\n    C.c_int,\n    C.c_int,\n    C.c_int]\nclibevresp.evresp.restype = C.POINTER(RESPONSE)\n\nclibevresp.free_response.argtypes = [C.POINTER(RESPONSE)]\nclibevresp.free_response.restype = C.c_void_p\n", "path": "obspy/signal/headers.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\"\"\"\nDefines the libsignal and evalresp structures and blockettes.\n\"\"\"\nfrom __future__ import (absolute_import, division, print_function,\n                        unicode_literals)\nfrom future.builtins import *  # NOQA\nfrom future.utils import native_str\n\nimport ctypes as C  # NOQA\n\nimport numpy as np\n\nfrom obspy.core.util.libnames import _load_cdll\n\n\n# Import shared libsignal\nclibsignal = _load_cdll(\"signal\")\n# Import shared libevresp\nclibevresp = _load_cdll(\"evresp\")\n\nclibsignal.calcSteer.argtypes = [\n    C.c_int, C.c_int, C.c_int, C.c_int, C.c_int, C.c_float,\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=3,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.complex128, ndim=4,\n                           flags=native_str('C_CONTIGUOUS')),\n]\nclibsignal.calcSteer.restype = C.c_void_p\n\nclibsignal.generalizedBeamformer.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=2,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=2,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.complex128, ndim=4,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.complex128, ndim=3,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_int, C.c_int, C.c_int, C.c_int,\n    C.c_double,\n    C.c_int,\n]\nclibsignal.generalizedBeamformer.restype = C.c_int\n\nclibsignal.X_corr.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_int, C.c_int,\n    C.POINTER(C.c_int), C.POINTER(C.c_double)]\nclibsignal.X_corr.restype = C.c_int\n\nclibsignal.recstalta.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_int, C.c_int]\nclibsignal.recstalta.restype = C.c_void_p\n\nclibsignal.ppick.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.POINTER(C.c_int), C.c_char_p, C.c_float, C.c_int, C.c_int,\n    C.c_float, C.c_float, C.c_int, C.c_int]\nclibsignal.ppick.restype = C.c_int\n\nclibsignal.ar_picker.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float32, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_float, C.c_float, C.c_float, C.c_float, C.c_float,\n    C.c_float, C.c_float, C.c_int, C.c_int, C.POINTER(C.c_float),\n    C.POINTER(C.c_float), C.c_double, C.c_double, C.c_int]\nclibsignal.ar_picker.restypes = C.c_int\n\nclibsignal.utl_geo_km.argtypes = [C.c_double, C.c_double, C.c_double,\n                                  C.POINTER(C.c_double),\n                                  C.POINTER(C.c_double)]\nclibsignal.utl_geo_km.restype = C.c_void_p\n\nhead_stalta_t = np.dtype([\n    (native_str('N'), np.uint32),\n    (native_str('nsta'), np.uint32),\n    (native_str('nlta'), np.uint32),\n], align=True)\n\nclibsignal.stalta.argtypes = [\n    np.ctypeslib.ndpointer(dtype=head_stalta_t, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n]\nclibsignal.stalta.restype = C.c_int\n\nclibsignal.hermite_interpolation.argtypes = [\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int, C.c_int, C.c_double, C.c_double]\nclibsignal.hermite_interpolation.restype = C.c_void_p\n\nclibsignal.lanczos_resample.argtypes = [\n    # y_in\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    # y_out\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    # dt\n    C.c_double,\n    # offset\n    C.c_double,\n    # len_in\n    C.c_int,\n    # len_out,\n    C.c_int,\n    # a,\n    C.c_int,\n    # window\n    C.c_int]\nclibsignal.lanczos_resample.restype = None\n\nclibsignal.calculate_kernel.argtypes = [\n    # double *x\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    # double *y\n    np.ctypeslib.ndpointer(dtype=np.float64, ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    # int len\n    C.c_int,\n    # int a,\n    C.c_int,\n    # int return_type,\n    C.c_int,\n    # enum lanczos_window_type window\n    C.c_int]\nclibsignal.calculate_kernel.restype = None\n\nSTALEN = 64\nNETLEN = 64\nCHALEN = 64\nLOCIDLEN = 64\n\n\nclass C_COMPLEX(C.Structure):  # noqa\n    _fields_ = [(\"real\", C.c_double),\n                (\"imag\", C.c_double)]\n\n\nclass RESPONSE(C.Structure):\n    pass\n\n\nRESPONSE._fields_ = [(\"station\", C.c_char * STALEN),\n                     (\"network\", C.c_char * NETLEN),\n                     (\"locid\", C.c_char * LOCIDLEN),\n                     (\"channel\", C.c_char * CHALEN),\n                     (\"rvec\", C.POINTER(C_COMPLEX)),\n                     (\"nfreqs\", C.c_int),\n                     (\"freqs\", C.POINTER(C.c_double)),\n                     (\"next\", C.POINTER(RESPONSE))]\n\nclibevresp.evresp.argtypes = [\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_char_p,\n    np.ctypeslib.ndpointer(dtype=np.float64,\n                           ndim=1,\n                           flags=native_str('C_CONTIGUOUS')),\n    C.c_int,\n    C.c_char_p,\n    C.c_char_p,\n    C.c_int,\n    C.c_int,\n    C.c_int,\n    C.c_int]\nclibevresp.evresp.restype = C.POINTER(RESPONSE)\n\nclibevresp.free_response.argtypes = [C.POINTER(RESPONSE)]\nclibevresp.free_response.restype = C.c_void_p\n", "path": "obspy/signal/headers.py"}]}