#91403 Report by node appveyor-ci covering 1699 tests from 45 modules resulted into 175 errors

Report

ObsPy Version
1.1.0.post0+56.g55da74b390
Continuous Integration
https://ci.appveyor.com/project/obspy/obspy/build/1.0.5646-maintenance_1.1.x
GitHub Pull Request
https://github.com/obspy/obspy/pull/2044
Report File
XML Document
Total Runtime
326.3 sec
Report Date/Time
2018-01-12 09:04:55

System / Python

Architecture
64bit
Machine
AMD64
Node
appveyor-ci
Processor
Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
Python Compiler
MSC v.1500 64 bit (AMD64)
Python Implementation
CPython
Python Version
2.7.14
Release
2012ServerR2
System
Windows
Version
6.3.9600

Dependencies

cartopy
---
decorator
4.1.2
flake8
---
future
0.16.0
geographiclib
1.49
lxml.etree
4.1.1
m2crypto
---
matplotlib
2.1.1
mock
2.0.0
mpl_toolkits.basemap
1.1.0
numpy
1.14.0
pep8-naming
---
pyflakes
---
pyimgur
0.6.0
pyproj
1.9.5.1
requests
2.18.4
scipy
1.0.0
setuptools
38.4.0
shapefile
1.2.12
sqlalchemy
1.1.13

Modules (45)

Module Errors /
Failures
Tracebacks
obspy.clients.arclink Not tested -
obspy.clients.earthworm Not tested -
obspy.clients.fdsn Not tested -
obspy.clients.filesystem - -
obspy.clients.iris Not tested -
obspy.clients.neic Not tested -
obspy.clients.nrl Not tested -
obspy.clients.seedlink Not tested -
obspy.clients.seishub Not tested -
obspy.clients.syngine Not tested -
obspy.core 6 1 2 3 4 5 6
obspy.db - -
obspy.geodetics - -
obspy.imaging 5 7 8 9 10 11
obspy.io.ah - -
obspy.io.arclink - -
obspy.io.ascii - -
obspy.io.cmtsolution - -
obspy.io.cnv - -
obspy.io.css 4 12 13 14 15
obspy.io.gcf - -
obspy.io.gse2 - -
obspy.io.iaspei - -
obspy.io.json - -
obspy.io.kinemetrics - -
obspy.io.kml - -
obspy.io.mseed 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
obspy.io.ndk - -
obspy.io.nied - -
obspy.io.nlloc - -
obspy.io.nordic - -
obspy.io.pdas 2 31 32
obspy.io.pde - -
obspy.io.quakeml - -
obspy.io.reftek 17 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
obspy.io.sac 51 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
obspy.io.scardec - -
obspy.io.seg2 1 101
obspy.io.segy 46 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
obspy.io.seisan 5 148 149 150 151 152
obspy.io.seiscomp - -
obspy.io.sh 6 153 154 155 156 157 158
obspy.io.shapefile - -
obspy.io.stationtxt - -
obspy.io.stationxml - -
obspy.io.wav 6 159 160 161 162 163 164
obspy.io.win 2 165 166
obspy.io.xseed - -
obspy.io.y 3 167 168 169
obspy.io.zmap - -
obspy.realtime 2 170 171
obspy.scripts - -
obspy.signal 4 172 173 174 175
obspy.taup - -
Summary 175 175

Tracebacks (175)

Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1839, in test_read_url_via_network
tr = read('https://examples.obspy.org/test.sac', dtype=np.int32)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 230, in read
st.extend(_read(fh.name, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1884, in test_interpolate
org_tr = read("/path/to/%s" % file_)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\core\tests\test_waveform_plugins.py", line 448, in test_deepcopy
st = read(tmpfile, format=format)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 33: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\core\tests\test_waveform_plugins.py", line 342, in test_issue_193
tr_test = read(tempfile, format)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\core\tests\test_waveform_plugins.py", line 98, in test_read_and_write
st = read(outfile)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\core\tests\test_util_base.py", line 127, in test_create_empty_data_chunk
self.assertEqual(out.dtype, np.int64)
AssertionError: dtype('int32') != <type 'numpy.int64'>
Traceback (most recent call last):
File "obspy\imaging\tests\test_scan.py", line 55, in test_scan_main_method
obspy_scan([os.curdir] + ['--output', ic.name])
File "obspy\core\util\testing.py", line 443, in __exit__
msg = self.compare()
File "obspy\core\util\testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "obspy\core\util\testing.py", line 205, in compare_images
str(expected_image.shape)))
ImageComparisonException: The shape of the received image (400L, 1600L, 4L) is not equal to the expected shape (650L, 2600L, 4L).
Traceback (most recent call last):
File "obspy\imaging\tests\test_scan.py", line 126, in test_scan_save_load_npz
scanner.plot(ic.name)
File "obspy\core\util\testing.py", line 443, in __exit__
msg = self.compare()
File "obspy\core\util\testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "obspy\core\util\testing.py", line 205, in compare_images
str(expected_image.shape)))
ImageComparisonException: The shape of the received image (400L, 1600L, 4L) is not equal to the expected shape (650L, 2600L, 4L).
Traceback (most recent call last):
File "obspy\imaging\tests\test_scan.py", line 146, in test_scan_times
['--event-time', '2004-02-07T18:28:18'])
File "obspy\core\util\testing.py", line 443, in __exit__
msg = self.compare()
File "obspy\core\util\testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "obspy\core\util\testing.py", line 205, in compare_images
str(expected_image.shape)))
ImageComparisonException: The shape of the received image (400L, 1216L, 4L) is not equal to the expected shape (650L, 1216L, 4L).
Traceback (most recent call last):
File "obspy\imaging\tests\test_scan.py", line 92, in test_scanner_manually_add_streams
st = read(file_, headonly=True)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcd in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\imaging\tests\test_scan.py", line 71, in test_scan_function_and_scanner_class
scan(paths=os.curdir, plot=ic.name)
File "obspy\core\util\testing.py", line 443, in __exit__
msg = self.compare()
File "obspy\core\util\testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "obspy\core\util\testing.py", line 205, in compare_images
str(expected_image.shape)))
ImageComparisonException: The shape of the received image (400L, 1600L, 4L) is not equal to the expected shape (650L, 2600L, 4L).
Traceback (most recent call last):
File "obspy\io\css\tests\test_core.py", line 92, in test_css_read_via_obspy
st = read(self.filename_css)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\css\core.py", line 144, in _read_css
data = from_buffer(data, dtype=read_fmt)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\css\tests\test_core.py", line 119, in test_nnsa_kb_core_read_via_module
st = _read_nnsa_kb_core(self.filename_nnsa)
File "obspy\io\css\core.py", line 193, in _read_nnsa_kb_core
data = from_buffer(data, dtype=read_fmt)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\css\tests\test_core.py", line 100, in test_css_read_via_module
st = _read_css(self.filename_css)
File "obspy\io\css\core.py", line 144, in _read_css
data = from_buffer(data, dtype=read_fmt)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\css\tests\test_core.py", line 111, in test_nnsa_kb_core_read_via_obspy
st = read(self.filename_nnsa)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\css\core.py", line 193, in _read_nnsa_kb_core
data = from_buffer(data, dtype=read_fmt)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 1105, in test_reading_truncated_miniseed_files_case_2
st = _read_mseed(buf)
File "obspy\io\mseed\core.py", line 313, in _read_mseed
bfr_np = from_buffer(mseed_object.read(), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 584, in test_enforcing_reading_byteorder
tr2 = read(memfile, header_byteorder="<")[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 214, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 151, in uncompress_file
return func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\mseed\core.py", line 313, in _read_mseed
bfr_np = from_buffer(mseed_object.read(), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb2 in position 20: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 726, in test_microsecond_accuracy_reading_and_writing_before_1970
tr2 = read(fh)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 214, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 151, in uncompress_file
return func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\mseed\core.py", line 313, in _read_mseed
bfr_np = from_buffer(mseed_object.read(), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb2 in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 638, in test_long_year_range
st2 = read(memfile)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 214, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 151, in uncompress_file
return func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\mseed\core.py", line 313, in _read_mseed
bfr_np = from_buffer(mseed_object.read(), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 49: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 327, in test_read_file_via_mseed
stream = _read_mseed(fh)
File "obspy\io\mseed\core.py", line 313, in _read_mseed
bfr_np = from_buffer(mseed_object.read(), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd3 in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 193, in test_bug_write_read_float32_seed_win32
dtype=dtype)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 1076, in test_reading_truncated_miniseed_files
st = _read_mseed(buf)
File "obspy\io\mseed\core.py", line 313, in _read_mseed
bfr_np = from_buffer(mseed_object.read(), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 914, in test_reading_miniseed_with_no_blockette_1000
st = read(file)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\mseed\core.py", line 284, in _read_mseed
info = util.get_record_information(mseed_object, endian=bo)
File "obspy\io\mseed\util.py", line 543, in get_record_information
info = _get_record_information(f, offset=offset, endian=endian)
File "obspy\io\mseed\util.py", line 742, in _get_record_information
buf = from_buffer(file_object.read(2 ** 14), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 1130, in test_reading_less_than_128_bytes
st = _read_mseed(buf)
File "obspy\io\mseed\core.py", line 313, in _read_mseed
bfr_np = from_buffer(mseed_object.read(), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 1042, in test_reading_file_with_data_offset_of_48
st = read(file)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\mseed\core.py", line 284, in _read_mseed
info = util.get_record_information(mseed_object, endian=bo)
File "obspy\io\mseed\util.py", line 543, in get_record_information
info = _get_record_information(f, offset=offset, endian=endian)
File "obspy\io\mseed\util.py", line 742, in _get_record_information
buf = from_buffer(file_object.read(2 ** 14), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcb in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 410, in test_get_flags_from_files_and_file_like_objects
result = util.get_flags(tf, timing_quality=False)
File "obspy\io\mseed\util.py", line 238, in get_flags
bfr_np = from_buffer(file.read(), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdf in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 302, in test_read_single_record_to_msr
ms.offset = ms.file_pos_from_rec_num(-1)
File "obspy\io\mseed\msstruct.py", line 107, in file_pos_from_rec_num
self.info = self.file_info()
File "obspy\io\mseed\msstruct.py", line 96, in file_info
self.info = _get_ms_file_info(fp, self.file)
File "obspy\io\mseed\msstruct.py", line 36, in _get_ms_file_info
rec_buffer = from_buffer(f.read(512), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 1496, in test_libmseed_test_cases
assert_valid(test_file, ref_file, test_type)
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 1372, in assert_valid
st = read(filename)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\mseed\core.py", line 284, in _read_mseed
info = util.get_record_information(mseed_object, endian=bo)
File "obspy\io\mseed\util.py", line 543, in get_record_information
info = _get_record_information(f, offset=offset, endian=endian)
File "obspy\io\mseed\util.py", line 742, in _get_record_information
buf = from_buffer(file_object.read(2 ** 14), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcb in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 1518, in test_per_trace_mseed_attributes
st = read(buf)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 214, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 151, in uncompress_file
return func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\mseed\core.py", line 313, in _read_mseed
bfr_np = from_buffer(mseed_object.read(), dtype=np.int8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd3 in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 761, in test_all_data_types_and_endians_in_multiple_files
dtype=native_str(btype + dtype))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfe in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\pdas\tests\test_core.py", line 28, in test_read_pdas
st = _read_pdas(self.testfile)
File "obspy\io\pdas\core.py", line 87, in _read_pdas
data = from_buffer(data, dtype=np.int16)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xeb in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.pdas.core._read_pdas
File "obspy\io\pdas\core.py", line 45, in _read_pdas
----------------------------------------------------------------------
File "obspy\io\pdas\core.py", line 61, in obspy.io.pdas.core._read_pdas
Failed example:
st = read("/path/to/p1246001.108")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.pdas.core._read_pdas[1]>", line 1, in <module>
st = read("/path/to/p1246001.108")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\pdas\core.py", line 87, in _read_pdas
data = from_buffer(data, dtype=np.int16)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xeb in position 4: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\pdas\core.py", line 62, in obspy.io.pdas.core._read_pdas
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.pdas.core._read_pdas[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\pdas\core.py", line 64, in obspy.io.pdas.core._read_pdas
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.pdas.core._read_pdas[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 139, in test_read_reftek130_steim1
sort_permuted_package_sequence=True)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 181, in test_read_reftek130_no_component_codes_specified
sort_permuted_package_sequence=True)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 549, in test_reading_file_with_multiple_events
sort_permuted_package_sequence=True)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 222, in read
st.extend(_read(fh.name, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9e in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 152, in test_read_reftek130_steim2
sort_permuted_package_sequence=True)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9e in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 509, in test_string_representations
rt130 = Reftek130.from_file(self.reftek_file)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 518, in test_reading_packet_with_vpu_float_string
data = _initial_unpack_packets(data)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9e in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 247, in test_warning_disturbed_packet_sequence
sort_permuted_package_sequence=True)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 375, in test_truncated_last_packet
sort_permuted_package_sequence=True)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.reftek.__init__
File "obspy\io\reftek\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 53, in obspy.io.reftek.__init__
Failed example:
st = read("/path/to/225051000_00008656", network="BW", location="",
component_codes="ZNE")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[4]>", line 2, in <module>
component_codes="ZNE")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 55, in obspy.io.reftek.__init__
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[5]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 57, in obspy.io.reftek.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[6]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 71, in obspy.io.reftek.__init__
Failed example:
print(st[0].stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[7]>", line 1, in <module>
print(st[0].stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 90, in obspy.io.reftek.__init__
Failed example:
rt = Reftek130.from_file(get_example_file("225051000_00008656"))
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[10]>", line 1, in <module>
rt = Reftek130.from_file(get_example_file("225051000_00008656"))
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 91, in obspy.io.reftek.__init__
Failed example:
print(rt) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[11]>", line 1, in <module>
print(rt) # doctest: +ELLIPSIS
NameError: name 'rt' is not defined
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 127, in obspy.io.reftek.__init__
Failed example:
print(rt.__str__(compact=False)) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[12]>", line 1, in <module>
print(rt.__str__(compact=False)) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'rt' is not defined
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 415, in test_data_unpacking_steim1
rt = Reftek130.from_file(self.reftek_file)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 428, in test_data_unpacking_steim2
rt = Reftek130.from_file(self.reftek_file_steim2)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9e in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 317, in test_drop_not_implemented_packets
sort_permuted_package_sequence=True)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 227, in test_error_no_packets_read
sort_permuted_package_sequence=True)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdf in position 21: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 214, in test_integration_with_obspy_core
component_codes=["1", "2", "3"])
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 349, in test_missing_event_trailer_packet
sort_permuted_package_sequence=True)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 405, in test_no_eh_et_packet
sort_permuted_package_sequence=True)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 282, in test_read_file_perturbed_packet_sequence
sort_permuted_package_sequence=True)
File "obspy\io\reftek\core.py", line 104, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "obspy\io\reftek\core.py", line 152, in from_file
rt._data = _initial_unpack_packets(string)
File "obspy\io\reftek\packet.py", line 243, in _initial_unpack_packets
bytestring, dtype=PACKET_INITIAL_UNPACK_DTYPE)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 150, in test_reftime
sac = SACTrace.read(self.fileseis)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 72, in test_read_sac_byteorder
SACTrace.read(self.filebe, byteorder='little')
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 914, in test_always_sac_reftime
tr1 = read(tf)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 214, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 151, in uncompress_file
return func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 346, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 923, in test_wrong_encoding
tr0 = read(self.file_encode)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcd in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 60, in test_read_binary_headonly
sac = SACTrace.read(self.file, byteorder='little', headonly=True)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 43, in test_read_binary
sac = SACTrace.read(self.file, byteorder='little')
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 176, in test_write_via_obspy
tr = read(tempfile)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 429, in test_write_small_trace
st = read(tempfile, format=format)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 402, in test_writing_micro_seconds
st2 = read(tmpfile, format="SAC")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 604, in test_write_via_obspy_to_bytes_io
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 474, in test_read_with_fsize
self.assertRaises(SacError, read, longer_file)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 593, in test_read_via_obspy_from_bytes_io
tr = read(buf)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 214, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 151, in uncompress_file
return func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 346, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 50, in test_read_via_obspy
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 523, in test_read_sac_from_open_file
tr = _read_sac(fh)[0]
File "obspy\io\sac\core.py", line 346, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 510, in test_read_sac_from_bytes_io
tr = _read_sac(buf)[0]
File "obspy\io\sac\core.py", line 346, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 158, in test_read_head_via_obspy
tr = read(self.file, format='SAC', headonly=True)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 117, in test_read_big_endian_via_obspy
tr = read(self.filebe, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 196, in test_read_and_write_via_obspy
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 413, in test_null_terminated_strings
tr = read(null_file)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 374, in test_not_used_but_given_headers
tr1 = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 91, in test_write_sac
sac1 = SACTrace.read(self.file, byteorder='little')
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._read_sac
File "obspy\io\sac\core.py", line 311, in _read_sac
----------------------------------------------------------------------
File "obspy\io\sac\core.py", line 340, in obspy.io.sac.core._read_sac
Failed example:
st = read("/path/to/test.sac")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.core._read_sac[1]>", line 1, in <module>
st = read("/path/to/test.sac")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 168, in test_reftime_relative_times
sac = SACTrace.read(self.fileseis)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 105, in test_write_binary_headonly
sac = SACTrace.read(self.file, byteorder='little')
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.read
File "obspy\io\sac\sactrace.py", line 1034, in read
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1071, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
sac = SACTrace.read(file_, headonly=True)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.read[3]>", line 1, in <module>
sac = SACTrace.read(file_, headonly=True)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1072, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
sac.data is None
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.read[4]>", line 1, in <module>
sac.data is None
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1074, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
sac = SACTrace.read(file_, headonly=False)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.read[5]>", line 1, in <module>
sac = SACTrace.read(file_, headonly=False)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1075, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
sac.data # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.read[6]>", line 1, in <module>
sac.data # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'sac' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.to_obspy_trace
File "obspy\io\sac\sactrace.py", line 1250, in to_obspy_trace
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1268, in obspy.io.sac.sactrace.SACTrace.to_obspy_trace
Failed example:
sac = SACTrace.read(file_, headonly=True)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.to_obspy_trace[2]>", line 1, in <module>
sac = SACTrace.read(file_, headonly=True)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1269, in obspy.io.sac.sactrace.SACTrace.to_obspy_trace
Failed example:
tr = sac.to_obspy_trace()
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.to_obspy_trace[3]>", line 1, in <module>
tr = sac.to_obspy_trace()
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1270, in obspy.io.sac.sactrace.SACTrace.to_obspy_trace
Failed example:
print(tr) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.to_obspy_trace[4]>", line 1, in <module>
print(tr) # doctest: +ELLIPSIS
NameError: name 'tr' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace._allt
File "obspy\io\sac\sactrace.py", line 1498, in _allt
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1522, in obspy.io.sac.sactrace.SACTrace._allt
Failed example:
sac = SACTrace.read(file_)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[3]>", line 1, in <module>
sac = SACTrace.read(file_)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1523, in obspy.io.sac.sactrace.SACTrace._allt
Failed example:
sac.o = UTCDateTime(year=1982, julday=123,
hour=13, minute=37,
second=10, microsecond=103)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[4]>", line 3, in <module>
second=10, microsecond=103)
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1526, in obspy.io.sac.sactrace.SACTrace._allt
Failed example:
sac.iztype = 'io'
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[5]>", line 1, in <module>
sac.iztype = 'io'
NameError: name 'sac' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.listhdr
File "obspy\io\sac\sactrace.py", line 1411, in listhdr
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1430, in obspy.io.sac.sactrace.SACTrace.listhdr
Failed example:
sac = SACTrace.read(file_)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.listhdr[2]>", line 1, in <module>
sac = SACTrace.read(file_)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1431, in obspy.io.sac.sactrace.SACTrace.listhdr
Failed example:
sac.lh() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.listhdr[3]>", line 1, in <module>
sac.lh() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'sac' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.validate
File "obspy\io\sac\sactrace.py", line 1304, in validate
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1330, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
sac = SACTrace.read(file_)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[3]>", line 1, in <module>
sac = SACTrace.read(file_)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1332, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
sac.delta *= -1.0
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[4]>", line 1, in <module>
sac.delta *= -1.0
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1333, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
try:
sac.validate('delta')
except SacInvalidContentError as e:
sac.delta *= -1.0
sac.validate('delta')
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[5]>", line 2, in <module>
sac.validate('delta')
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1340, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
sac.data += 5.0
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[6]>", line 1, in <module>
sac.data += 5.0
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1341, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
try:
sac.validate('data_hdrs')
except SacInvalidContentError:
sac._flush_headers()
sac.validate('data_hdrs')
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[7]>", line 2, in <module>
sac.validate('data_hdrs')
NameError: name 'sac' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.__init__
File "obspy\io\sac\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\sac\__init__.py", line 26, in obspy.io.sac.__init__
Failed example:
st = read('/path/to/test.sac', debug_headers=True)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[1]>", line 1, in <module>
st = read('/path/to/test.sac', debug_headers=True)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\sac\__init__.py", line 27, in obspy.io.sac.__init__
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\__init__.py", line 29, in obspy.io.sac.__init__
Failed example:
print(st) #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[3]>", line 1, in <module>
print(st) #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\__init__.py", line 41, in obspy.io.sac.__init__
Failed example:
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[4]>", line 1, in <module>
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\__init__.py", line 54, in obspy.io.sac.__init__
Failed example:
print(st[0].stats.sac.dist)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[5]>", line 1, in <module>
print(st[0].stats.sac.dist)
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\sac\__init__.py", line 59, in obspy.io.sac.__init__
Failed example:
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[6]>", line 1, in <module>
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 342, in test_issue_156
st = read(sac_file)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 254, in test_iztype11
tr = read(sod_file)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcd in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 843, in test_invalid_header_field
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 438, in test_issue390
tr = read(self.file, headonly=True, debug_headers=True)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 271, in test_default_values
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 930, in test_encoding_flag
tr0 = read(self.file_encode, encoding='cp1252')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcd in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 237, in test_convert_to_sac
st2 = read(tmpfile, format="SAC")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcd in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 827, in test_decimate_resample
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 817, in test_merge_sac_obspy_headers
tr1 = read(tempfile)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 864, in test_not_ascii
tr = read(self.file_notascii, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 225, in test_propagate_modified_stats_strings_to_sactrace
tr = read(self.fileseis)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 311, in test_undefined_b
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 782, in test_valid_sac_from_minimal_existing_sac_header
tr1 = read(tempfile)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 283, in test_reference_time
tr = read(self.fileseis)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 891, in test_sac_file_from_new_header
tr1 = read(tf)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 214, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 151, in uncompress_file
return func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 346, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 188, in test_set_version
st2 = read(tempfile, format="SAC")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 131, in test_swap_bytes_via_obspy
trbe = read(self.filebe, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 534, in test_read_write_bytes_io
st = _read_sac(self.file)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 550, in test_read_write_open_file
st = _read_sac(self.file)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 65, in test_read_write_via_obspy
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 98, in test_read_write_xy_via_obspy
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\seg2\tests\test_seg2.py", line 84, in test_read_data_format_2
st = read(basename + ".seg2.gz")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 208, in uncompress_file
result += stream
File "obspy\core\util\base.py", line 125, in __exit__
os.remove(self.name)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'c:\\users\\appveyor\\appdata\\local\\temp\\1\\obspy-ffmqgf.tmp'
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 600, in test_iterative_reading
st = obspy.read(filename, unpack_trace_headers=True)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 108, in unpack_2byte_integer
data = from_buffer(file.read(count * 2), dtype=np.int16)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfd in position 39: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 348, in test_writing_using_core
segy_file = _read_segy_internal(file)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 266, in test_pack_and_unpack_ibm_special_cases
f, len(data), endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 207, in test_pack_and_unpack_ibm_float
f, len(data), endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 526, in test_writing_starttime_timestamp_0
segy = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 396, in test_writing_new_sampling_rate
segy = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 670, in test_writing_text_and_binary_textual_file_headers
st2 = _read_segy(buf)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 958, in _read_segy
headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 5: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 469, in test_writing_su_file_with_no_header
st2 = read(outfile)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\segy\core.py", line 458, in _read_su
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 1317, in _read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1344, in _internal_read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1200, in __init__
headonly=headonly)]
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 5: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_su.py", line 109, in test_unpacking_su_data
su = _read_su(file)
File "obspy\io\segy\segy.py", line 1317, in _read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1344, in _internal_read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1200, in __init__
headonly=headonly)]
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 111, in test_pack_segy_data
packed_data = from_buffer(packed_data, np.uint8)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 237, in test_pack_and_unpack_very_small_ibm_floats
f, len(data), endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd9 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 567, in test_read_bytes_io
st = _read_segy(io.BytesIO(data))
File "obspy\io\segy\segy.py", line 958, in _read_segy
headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 108, in unpack_2byte_integer
data = from_buffer(file.read(count * 2), dtype=np.int16)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfd in position 39: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_su.py", line 79, in test_reading_and_writing_different_byteorders
su = _read_su(file)
File "obspy\io\segy\segy.py", line 1317, in _read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1344, in _internal_read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1200, in __init__
headonly=headonly)]
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 204, in test_not_matching_data_encoding_and_dtype_raises
st = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 435, in test_large_sample_rate_interval_raises
segy = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 597, in test_issue_377
st = _read_segy(filename)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 219, in test_invalid_data_encoding_raises
st = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 234, in test_enforcing_textual_header_encoding_while_writing
st1 = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 99, in test_enforcing_textual_header_encoding_while_reading
st1 = _read_segy(file, textual_header_encoding='EBCDIC')
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 125, in test_enforcing_endianness_while_writing
st1 = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 289, in test_enforcing_endianness_while_reading
st1 = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 614, in test_comparing_still_packed_trace_headers
header_a = read(file)[0].stats.segy.trace_header
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.__init__
File "obspy\io\segy\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 66, in obspy.io.segy.__init__
Failed example:
st = _read_segy(filename)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[3]>", line 1, in <module>
st = _read_segy(filename)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 3: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 67, in obspy.io.segy.__init__
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[4]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 69, in obspy.io.segy.__init__
Failed example:
print(st) #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[5]>", line 1, in <module>
print(st) #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 79, in obspy.io.segy.__init__
Failed example:
st1 = _read_segy(filename)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[6]>", line 1, in <module>
st1 = _read_segy(filename)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 3: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 80, in obspy.io.segy.__init__
Failed example:
len(st1[0].stats.segy.trace_header)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[7]>", line 1, in <module>
len(st1[0].stats.segy.trace_header)
NameError: name 'st1' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 82, in obspy.io.segy.__init__
Failed example:
st1[0].stats.segy.trace_header.data_use # Unpacking a value on the fly.
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[8]>", line 1, in <module>
st1[0].stats.segy.trace_header.data_use # Unpacking a value on the fly.
NameError: name 'st1' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 84, in obspy.io.segy.__init__
Failed example:
len(st1[0].stats.segy.trace_header) # This value will remain unpacked.
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[9]>", line 1, in <module>
len(st1[0].stats.segy.trace_header) # This value will remain unpacked.
NameError: name 'st1' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 86, in obspy.io.segy.__init__
Failed example:
st2 = _read_segy(filename, unpack_trace_headers=True)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[10]>", line 1, in <module>
st2 = _read_segy(filename, unpack_trace_headers=True)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 3: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 87, in obspy.io.segy.__init__
Failed example:
len(st2[0].stats.segy.trace_header)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[11]>", line 1, in <module>
len(st2[0].stats.segy.trace_header)
NameError: name 'st2' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 103, in obspy.io.segy.__init__
Failed example:
segy = _read_segy(filename)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[13]>", line 1, in <module>
segy = _read_segy(filename)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 3: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 104, in obspy.io.segy.__init__
Failed example:
segy #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[14]>", line 1, in <module>
segy #doctest: +ELLIPSIS
NameError: name 'segy' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 106, in obspy.io.segy.__init__
Failed example:
print(segy)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[15]>", line 1, in <module>
print(segy)
NameError: name 'segy' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 128, in obspy.io.segy.__init__
Failed example:
print(len(segy.traces[0].data))
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[18]>", line 1, in <module>
print(len(segy.traces[0].data))
File "obspy\io\segy\segy.py", line 704, in __getattr__
return self.unpack_data()
File "obspy\io\segy\unpack.py", line 161, in __call__
raw = self.unpack_function(fp, self.count, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 3: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\segy\__init__.py", line 140, in obspy.io.segy.__init__
Failed example:
for trace in iread_segy(filename):
# Do something meaningful.
print(int(trace.data.sum() * 1E9))
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[20]>", line 1, in <module>
for trace in iread_segy(filename):
File "obspy\io\segy\segy.py", line 1042, in iread_segy
unpack_headers=unpack_headers, headonly=headonly):
File "obspy\io\segy\segy.py", line 1063, in _internal_iread_segy
yield_each_trace=True):
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 398, in test_read_and_write_segy_headonly
self.test_read_and_write_segy(headonly=True)
File "obspy\io\segy\tests\test_segy.py", line 365, in test_read_and_write_segy
segy_file.write(out_file)
File "obspy\io\segy\segy.py", line 256, in write
self._write(file, data_encoding=data_encoding, endian=endian)
File "obspy\io\segy\segy.py", line 286, in _write
if len(set([len(tr.data) for tr in self.traces])) != 1:
File "obspy\io\segy\segy.py", line 704, in __getattr__
return self.unpack_data()
File "obspy\io\segy\unpack.py", line 161, in __call__
raw = self.unpack_function(fp, self.count, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.segy.iread_su
File "obspy\io\segy\segy.py", line 1077, in iread_su
----------------------------------------------------------------------
File "obspy\io\segy\segy.py", line 1089, in obspy.io.segy.segy.iread_su
Failed example:
for tr in iread_su(filename):
# Each Trace's stats attribute will have some file-wide
# information.
de = tr.stats.su.data_encoding
e = tr.stats.su.endian
# Also do something meaningful with each Trace.
print(int(tr.data.sum()))
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.segy.iread_su[3]>", line 1, in <module>
for tr in iread_su(filename):
File "obspy\io\segy\segy.py", line 1121, in iread_su
unpack_headers=unpack_headers, headonly=headonly):
File "obspy\io\segy\segy.py", line 1141, in _internal_iread_su
yield_each_trace=True):
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_su.py", line 61, in test_enforcing_byteorders_while_reading
su = _read_su(file)
File "obspy\io\segy\segy.py", line 1317, in _read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1344, in _internal_read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1200, in __init__
headonly=headonly)]
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.segy.iread_segy
File "obspy\io\segy\segy.py", line 991, in iread_segy
----------------------------------------------------------------------
File "obspy\io\segy\segy.py", line 1003, in obspy.io.segy.segy.iread_segy
Failed example:
for tr in iread_segy(filename):
# Each Trace's stats attribute will have references to the file
# headers and some more information.
tf = tr.stats.segy.textual_file_header
bf = tr.stats.segy.binary_file_header
tfe = tr.stats.segy.textual_file_header_encoding
de = tr.stats.segy.data_encoding
e = tr.stats.segy.endian
# Also do something meaningful with each Trace.
print(int(tr.data.sum() * 1E9))
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.segy.iread_segy[3]>", line 1, in <module>
for tr in iread_segy(filename):
File "obspy\io\segy\segy.py", line 1042, in iread_segy
unpack_headers=unpack_headers, headonly=headonly):
File "obspy\io\segy\segy.py", line 1063, in _internal_iread_segy
yield_each_trace=True):
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_su.py", line 133, in test_iterative_reading
st = obspy.read(filename, unpack_trace_headers=True)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\segy\core.py", line 458, in _read_su
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 1317, in _read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1344, in _internal_read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1200, in __init__
headonly=headonly)]
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 406, in test_unpack_binary_file_header
segy = _read_segy(file)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 58, in test_unpack_segy_data
f, count, endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 361, in test_read_and_write_segy
segy_file = _read_segy(file, headonly=headonly)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 451, in test_unpack_trace_header
segy = _read_segy(file)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_su.py", line 44, in test_read_and_write_su
su = _read_su(file)
File "obspy\io\segy\segy.py", line 1317, in _read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1344, in _internal_read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1200, in __init__
headonly=headonly)]
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_su.py", line 124, in test_read_bytes_io
st = _read_su(io.BytesIO(data))
File "obspy\io\segy\segy.py", line 1320, in _read_su
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 1344, in _internal_read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1200, in __init__
headonly=headonly)]
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 585, in test_two_digit_years_su
st = _read_su(filename)
File "obspy\io\segy\core.py", line 458, in _read_su
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 1317, in _read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1344, in _internal_read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1200, in __init__
headonly=headonly)]
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 499, in test_writing_modified_date
segy = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 108, in unpack_2byte_integer
data = from_buffer(file.read(count * 2), dtype=np.int16)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfd in position 39: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 309, in test_reading_using_core
segy_file = _read_segy_internal(file)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 148, in test_setting_data_encoding_works
st = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 384, in test_setting_delta_and_sampling_rate_in_stats
segy = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 573, in test_two_digit_years_segy
st = _read_segy(filename)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 82, in test_read_head_only
st = _read_segy(file, headonly=True)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 174, in test_reading_and_writing_different_data_encodings
st = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 632, in test_reading_and_writing_with_unset_dates
st = read(buf, format="segy")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 214, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 151, in uncompress_file
return func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 958, in _read_segy
headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 417, in test_reading_date
segy = _read_segy(file)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 96, in unpack_4byte_integer
data = from_buffer(file.read(count * 4), dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.core._read_su
File "obspy\io\segy\core.py", line 419, in _read_su
----------------------------------------------------------------------
File "obspy\io\segy\core.py", line 449, in obspy.io.segy.core._read_su
Failed example:
st = read("/path/to/1.su_first_trace")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_su[1]>", line 1, in <module>
st = read("/path/to/1.su_first_trace")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\segy\core.py", line 458, in _read_su
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 1317, in _read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1344, in _internal_read_su
headonly=headonly)
File "obspy\io\segy\segy.py", line 1200, in __init__
headonly=headonly)]
File "obspy\io\segy\segy.py", line 1257, in _read_traces
headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 124, in unpack_4byte_ieee
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 3: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\segy\core.py", line 450, in obspy.io.segy.core._read_su
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_su[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\core.py", line 452, in obspy.io.segy.core._read_su
Failed example:
print(st) #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_su[3]>", line 1, in <module>
print(st) #doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.core._read_segy
File "obspy\io\segy\core.py", line 131, in _read_segy
----------------------------------------------------------------------
File "obspy\io\segy\core.py", line 165, in obspy.io.segy.core._read_segy
Failed example:
st = read("/path/to/00001034.sgy_first_trace")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_segy[1]>", line 1, in <module>
st = read("/path/to/00001034.sgy_first_trace")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\segy\core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "obspy\io\segy\segy.py", line 953, in _read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 987, in _internal_read_segy
unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 145, in __init__
unpack_headers=unpack_headers, headonly=headonly)]
File "obspy\io\segy\segy.py", line 423, in _read_traces
filesize=filesize, headonly=headonly)
File "obspy\io\segy\segy.py", line 596, in __init__
self._read_trace(unpack_headers=unpack_headers, headonly=headonly)
File "obspy\io\segy\segy.py", line 647, in _read_trace
self.data_encoding](self.file, npts, endian=self.endian)
File "obspy\io\segy\unpack.py", line 50, in unpack_4byte_ibm
data = from_buffer(file.read(count * 4), dtype=np.float32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb8 in position 3: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\segy\core.py", line 166, in obspy.io.segy.core._read_segy
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_segy[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\segy\core.py", line 168, in obspy.io.segy.core._read_segy
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_segy[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seisan.core._read_seisan
File "obspy\io\seisan\core.py", line 117, in _read_seisan
----------------------------------------------------------------------
File "obspy\io\seisan\core.py", line 133, in obspy.io.seisan.core._read_seisan
Failed example:
st = read("/path/to/2001-01-13-1742-24S.KONO__004")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.core._read_seisan[1]>", line 1, in <module>
st = read("/path/to/2001-01-13-1742-24S.KONO__004")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\seisan\core.py", line 235, in _read_seisan
data = from_buffer(_readline(fh), dtype=dtype)
File "obspy\io\seisan\core.py", line 160, in _readline
length = from_buffer(start_bytes, dtype=dtype)[0]
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 0: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\seisan\core.py", line 134, in obspy.io.seisan.core._read_seisan
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.core._read_seisan[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\seisan\core.py", line 136, in obspy.io.seisan.core._read_seisan
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.core._read_seisan[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seisan.__init__
File "obspy\io\seisan\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\seisan\__init__.py", line 23, in obspy.io.seisan.__init__
Failed example:
st = read("/path/to/2001-01-13-1742-24S.KONO__004")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[1]>", line 1, in <module>
st = read("/path/to/2001-01-13-1742-24S.KONO__004")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\seisan\core.py", line 235, in _read_seisan
data = from_buffer(_readline(fh), dtype=dtype)
File "obspy\io\seisan\core.py", line 160, in _readline
length = from_buffer(start_bytes, dtype=dtype)[0]
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 0: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\seisan\__init__.py", line 24, in obspy.io.seisan.__init__
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\seisan\__init__.py", line 26, in obspy.io.seisan.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\seisan\__init__.py", line 37, in obspy.io.seisan.__init__
Failed example:
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[4]>", line 1, in <module>
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\seisan\__init__.py", line 52, in obspy.io.seisan.__init__
Failed example:
print(st[0].data)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[5]>", line 1, in <module>
print(st[0].data)
NameError: name 'st' is not defined
Traceback (most recent call last):
File "obspy\io\seisan\tests\test_core.py", line 125, in test_read_seisan_head_only
st = _read_seisan(fn, headonly=True)
File "obspy\io\seisan\core.py", line 231, in _read_seisan
from_buffer(_readline(fh), dtype=dtype)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x98 in position 7: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\seisan\tests\test_core.py", line 72, in test_read_seisan
st = _read_seisan(fn)
File "obspy\io\seisan\core.py", line 235, in _read_seisan
data = from_buffer(_readline(fh), dtype=dtype)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x98 in position 7: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\seisan\tests\test_core.py", line 197, in test_read_obspy
'2011-09-06-1311-36S.A1032_001BH_Z'))
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\seisan\core.py", line 235, in _read_seisan
data = from_buffer(_readline(fh), dtype=dtype)
File "obspy\io\seisan\core.py", line 160, in _readline
length = from_buffer(start_bytes, dtype=dtype)[0]
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 298, in test_header_whitespaces
tr2 = read(tempfile)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sh\core.py", line 468, in _read_q
data = from_buffer(data, dtype=dtype)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf4 in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 169, in test_read_and_write_multi_channel_q_file
stream1 = _read_q(origfile)
File "obspy\io\sh\core.py", line 468, in _read_q
data = from_buffer(data, dtype=dtype)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb7 in position 401: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 206, in test_read_and_write_multi_channel_q_file_via_obspy
stream1 = read(origfile, format="Q")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sh\core.py", line 468, in _read_q
data = from_buffer(data, dtype=dtype)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb7 in position 401: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 284, in test_write_long_header
tr2 = read(tempfile)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sh\core.py", line 468, in _read_q
data = from_buffer(data, dtype=dtype)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf4 in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 266, in test_write_small_trace
st = read(tempfile, format=format)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sh\core.py", line 468, in _read_q
data = from_buffer(data, dtype=dtype)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 6: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sh.core._read_q
File "obspy\io\sh\core.py", line 327, in _read_q
----------------------------------------------------------------------
File "obspy\io\sh\core.py", line 368, in obspy.io.sh.core._read_q
Failed example:
st = read("/path/to/QFILE-TEST.QHD")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.core._read_q[1]>", line 1, in <module>
st = read("/path/to/QFILE-TEST.QHD")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sh\core.py", line 468, in _read_q
data = from_buffer(data, dtype=dtype)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb7 in position 401: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\sh\core.py", line 369, in obspy.io.sh.core._read_q
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.core._read_q[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\sh\core.py", line 371, in obspy.io.sh.core._read_q
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.core._read_q[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "obspy\io\wav\tests\test_core.py", line 70, in test_read_and_write_via_obspy
tr = read(self.file, format='WAV')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\wav\core.py", line 106, in _read_wav
data = from_buffer(fh.readframes(length), dtype=WIDTH2DTYPE[width])
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x84 in position 11: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\wav\tests\test_core.py", line 43, in test_read_via_obspy
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\wav\core.py", line 106, in _read_wav
data = from_buffer(fh.readframes(length), dtype=WIDTH2DTYPE[width])
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8d in position 12: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.wav.__init__
File "obspy\io\wav\__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "obspy\io\wav\__init__.py", line 22, in obspy.io.wav.__init__
Failed example:
st = read("/path/to/3cssan.near.8.1.RNON.wav")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.__init__[1]>", line 1, in <module>
st = read("/path/to/3cssan.near.8.1.RNON.wav")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\wav\core.py", line 106, in _read_wav
data = from_buffer(fh.readframes(length), dtype=WIDTH2DTYPE[width])
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8d in position 12: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\wav\__init__.py", line 23, in obspy.io.wav.__init__
Failed example:
print(st) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.__init__[2]>", line 1, in <module>
print(st) #doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\wav\__init__.py", line 33, in obspy.io.wav.__init__
Failed example:
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.__init__[3]>", line 1, in <module>
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\wav\__init__.py", line 48, in obspy.io.wav.__init__
Failed example:
st[0].data
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.__init__[4]>", line 1, in <module>
st[0].data
NameError: name 'st' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.wav.core._read_wav
File "obspy\io\wav\core.py", line 70, in _read_wav
----------------------------------------------------------------------
File "obspy\io\wav\core.py", line 89, in obspy.io.wav.core._read_wav
Failed example:
st = read("/path/to/3cssan.near.8.1.RNON.wav")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.core._read_wav[1]>", line 1, in <module>
st = read("/path/to/3cssan.near.8.1.RNON.wav")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\wav\core.py", line 106, in _read_wav
data = from_buffer(fh.readframes(length), dtype=WIDTH2DTYPE[width])
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8d in position 12: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\wav\core.py", line 90, in obspy.io.wav.core._read_wav
Failed example:
print(st) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.core._read_wav[2]>", line 1, in <module>
print(st) #doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
Traceback (most recent call last):
File "obspy\io\wav\tests\test_core.py", line 113, in test_write_stream_via_obspy
tr = read(self.file, format='WAV')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\wav\core.py", line 106, in _read_wav
data = from_buffer(fh.readframes(length), dtype=WIDTH2DTYPE[width])
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x84 in position 11: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\wav\tests\test_core.py", line 92, in test_rescale_on_write
tr = read(self.file, format='WAV')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\wav\core.py", line 106, in _read_wav
data = from_buffer(fh.readframes(length), dtype=WIDTH2DTYPE[width])
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x84 in position 11: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\win\tests\test_core.py", line 32, in test_read_via_obspy
st = read(filename)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 389, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file obspy\io\win\tests\data\10030302.00
Traceback (most recent call last):
File "obspy\io\win\tests\test_core.py", line 52, in test_read_via_module
st = _read_win(filename)
File "obspy\io\win\core.py", line 87, in _read_win
truelen = from_buffer(pklen, native_str('>i'))[0]
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa6 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.y.core._read_y
File "obspy\io\y\core.py", line 134, in _read_y
----------------------------------------------------------------------
File "obspy\io\y\core.py", line 153, in obspy.io.y.core._read_y
Failed example:
st = read("/path/to/YAYT_BHZ_20021223.124800")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.y.core._read_y[1]>", line 1, in <module>
st = read("/path/to/YAYT_BHZ_20021223.124800")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\y\core.py", line 387, in _read_y
dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfe in position 16: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\io\y\core.py", line 154, in obspy.io.y.core._read_y
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.y.core._read_y[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\y\core.py", line 156, in obspy.io.y.core._read_y
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.y.core._read_y[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "obspy\io\y\tests\test_core.py", line 35, in test_read_y_file
st = _read_y(testfile)
File "obspy\io\y\core.py", line 387, in _read_y
dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfe in position 16: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\io\y\tests\test_core.py", line 56, in test_ignore_non_ascii_tag_station_info
st = _read_y(testfile)
File "obspy\io\y\core.py", line 387, in _read_y
dtype=np.int32)
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb3 in position 4: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\realtime\tests\test_signal.py", line 33, in setUpClass
dtype=np.float64)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 2: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.realtime.rttrace.RtTrace
File "obspy\realtime\rttrace.py", line 40, in RtTrace
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 71, in obspy.realtime.rttrace.RtTrace
Failed example:
data_trace = read('/path/to/II.TLY.BHZ.SAC')[0]
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[3]>", line 1, in <module>
data_trace = read('/path/to/II.TLY.BHZ.SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 2: ordinal not in range(128)
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 72, in obspy.realtime.rttrace.RtTrace
Failed example:
len(data_trace)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[4]>", line 1, in <module>
len(data_trace)
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 74, in obspy.realtime.rttrace.RtTrace
Failed example:
ref_time_offset = data_trace.stats.sac.a
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[5]>", line 1, in <module>
ref_time_offset = data_trace.stats.sac.a
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 75, in obspy.realtime.rttrace.RtTrace
Failed example:
print(ref_time_offset)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[6]>", line 1, in <module>
print(ref_time_offset)
NameError: name 'ref_time_offset' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 77, in obspy.realtime.rttrace.RtTrace
Failed example:
epicentral_distance = data_trace.stats.sac.gcarc
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[7]>", line 1, in <module>
epicentral_distance = data_trace.stats.sac.gcarc
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 78, in obspy.realtime.rttrace.RtTrace
Failed example:
print(epicentral_distance)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[8]>", line 1, in <module>
print(epicentral_distance)
NameError: name 'epicentral_distance' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 83, in obspy.realtime.rttrace.RtTrace
Failed example:
traces = data_trace / 3
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[9]>", line 1, in <module>
traces = data_trace / 3
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 84, in obspy.realtime.rttrace.RtTrace
Failed example:
[len(tr) for tr in traces]
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[10]>", line 1, in <module>
[len(tr) for tr in traces]
NameError: name 'traces' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 92, in obspy.realtime.rttrace.RtTrace
Failed example:
rt_trace.register_rt_process('mwpintegral', mem_time=240,
ref_time=(data_trace.stats.starttime + ref_time_offset),
max_time=120, gain=1.610210e+09)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[13]>", line 2, in <module>
ref_time=(data_trace.stats.starttime + ref_time_offset),
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 99, in obspy.realtime.rttrace.RtTrace
Failed example:
for tr in traces:
processed_trace = rt_trace.append(tr, gap_overlap_check=True)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[14]>", line 1, in <module>
for tr in traces:
NameError: name 'traces' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 102, in obspy.realtime.rttrace.RtTrace
Failed example:
len(rt_trace)
Expected:
12684
Got:
0
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 107, in obspy.realtime.rttrace.RtTrace
Failed example:
peak = np.amax(np.abs(rt_trace.data))
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[16]>", line 1, in <module>
peak = np.amax(np.abs(rt_trace.data))
File "C:\Miniconda-x64\envs\test\lib\site-packages\numpy\core\fromnumeric.py", line 2320, in amax
out=out, **kwargs)
File "C:\Miniconda-x64\envs\test\lib\site-packages\numpy\core\_methods.py", line 26, in _amax
return umr_maximum(a, axis, None, out, keepdims)
ValueError: zero-size array to reduction operation maximum which has no identity
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 108, in obspy.realtime.rttrace.RtTrace
Failed example:
print(peak)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[17]>", line 1, in <module>
print(peak)
NameError: name 'peak' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 110, in obspy.realtime.rttrace.RtTrace
Failed example:
mwp = calculate_mwp_mag(peak, epicentral_distance)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[18]>", line 1, in <module>
mwp = calculate_mwp_mag(peak, epicentral_distance)
NameError: name 'peak' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 111, in obspy.realtime.rttrace.RtTrace
Failed example:
print(mwp) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[19]>", line 1, in <module>
print(mwp) # doctest: +ELLIPSIS
NameError: name 'mwp' is not defined
Traceback (most recent call last):
File "obspy\signal\tests\test_sonic.py", line 220, in test_array_transff_wavenumber
transff = array_transff_wavenumber(coords, klim, kstep, coordsys='xy')
File "obspy\signal\array_analysis.py", line 773, in array_transff_wavenumber
k_dot_r = np.einsum('ni,mi->nm', ks, coords[:, :2])
File "C:\Miniconda-x64\envs\test\lib\site-packages\numpy\core\einsumfunc.py", line 1087, in einsum
einsum_call=True)
File "C:\Miniconda-x64\envs\test\lib\site-packages\numpy\core\einsumfunc.py", line 688, in einsum_path
input_subscripts, output_subscript, operands = _parse_einsum_input(operands)
File "C:\Miniconda-x64\envs\test\lib\site-packages\numpy\core\einsumfunc.py", line 432, in _parse_einsum_input
raise TypeError("For this input type lists must contain "
TypeError: For this input type lists must contain either int or Ellipsis
Traceback (most recent call last):
File "obspy\signal\tests\test_invsim.py", line 408, in test_evalresp_file_like_object
tr1 = read(rawf)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\signal\tests\test_invsim.py", line 285, in test_evalresp_vs_obspy
tr = read(rawf)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "obspy\signal\tests\test_invsim.py", line 314, in test_cosine_taper
tr = read(sac_taper)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 409, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\sac\core.py", line 351, in _read_sac
**kwargs)
File "obspy\io\sac\core.py", line 389, in _internal_read_sac
checksize=fsize, encoding=encoding_str)
File "obspy\io\sac\sactrace.py", line 1092, in read
checksize=checksize)
File "obspy\io\sac\arrayio.py", line 135, in read_sac
hf = from_buffer(f.read(4 * 70), dtype=native_str(endian_str + 'f4'))
File "obspy\core\compatibility.py", line 48, in from_buffer
data = data.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 2: ordinal not in range(128)

Skipped Tests (13)

Submodule Test Skip Message
geodetics test_gps_2_dist_azimuth_bug150 (obspy.geodetics.tests.test_util_geodetics.UtilGeodeticsTestCase) Module geographiclib is installed, not using calc_vincenty_inverse
core test_flake8 (obspy.core.tests.test_code_formatting.CodeFormattingTestCase) Formatting tests require at least flake8 3.0.
core test_catalog_plot_global (obspy.core.tests.test_event.CatalogCartopyTestCase) Cartopy not installed or too old
core test_catalog_plot_local (obspy.core.tests.test_event.CatalogCartopyTestCase) Cartopy not installed or too old
core test_catalog_plot_ortho (obspy.core.tests.test_event.CatalogCartopyTestCase) Cartopy not installed or too old
core test_catalog_plot_ortho_longitude_wrap (obspy.core.tests.test_event.CatalogCartopyTestCase) Cartopy not installed or too old
core test_location_plot_global (obspy.core.tests.test_inventory.InventoryCartopyTestCase) cartopy not installed
core test_location_plot_local (obspy.core.tests.test_inventory.InventoryCartopyTestCase) cartopy not installed
core test_location_plot_ortho (obspy.core.tests.test_inventory.InventoryCartopyTestCase) cartopy not installed
core test_location_plot_global (obspy.core.tests.test_network.NetworkCartopyTestCase) cartopy not installed
core test_location_plot_local (obspy.core.tests.test_network.NetworkCartopyTestCase) cartopy not installed
core test_location_plot_ortho (obspy.core.tests.test_network.NetworkCartopyTestCase) cartopy not installed
imaging test_script_plot (obspy.imaging.tests.test_mopad_script.MopadTestCase) Currently broken until further review.

Slowest Tests (20)

Runtime Test
15.969s test_response_calculation_from_seed_and_xseed (obspy.io.xseed.tests.test_core.CoreTestCase)
15.828s test_plot_farfield_without_quiver_with_maps (obspy.core.tests.test_event.EventTestCase)
15.329s test_is_format (obspy.core.tests.test_waveform_plugins.WaveformPluginsTestCase)
11.845s test_ppsd_restricted_stacks (obspy.signal.tests.test_spectral_estimation.PsdTestCase)
7.375s __init__ (obspy.taup)
6.453s test_relcal_different_overlaps (obspy.signal.tests.test_calibration.CalibrationTestCase)
5.830s test_plot_multiple_traces (obspy.imaging.tests.test_waveform.WaveformTestCase)
5.625s test_shoot_existing_ray_param (obspy.taup.tests.test_seismic_phase.TauPySeismicPhaseTestCase)
4.895s test_read_thread_safe (obspy.core.tests.test_waveform_plugins.WaveformPluginsTestCase)
4.719s test_auto_read_arclink_xml (obspy.io.arclink.tests.test_inventory_xml.ArclinkInventoryTestCase)
4.000s test_combined_station_event_plot (obspy.core.tests.test_inventory.InventoryBasemapTestCase)
3.953s test_catalog_plot_global (obspy.core.tests.test_event.CatalogBasemapTestCase)
3.875s test_location_plot_global (obspy.core.tests.test_network.NetworkBasemapTestCase)
3.781s test_plot_colored_section (obspy.imaging.tests.test_waveform.WaveformTestCase)
3.766s test_location_plot_global (obspy.core.tests.test_inventory.InventoryBasemapTestCase)
3.672s test_plot_wiggles_vertical_section (obspy.imaging.tests.test_waveform.WaveformTestCase)
3.672s test_plot_wiggles_horizontal_section (obspy.imaging.tests.test_waveform.WaveformTestCase)
3.655s test_infinite_loop (obspy.io.mseed.tests.test_mseed_special_issues.MSEEDSpecialIssueTestCase)
3.625s test_plot_default_section (obspy.imaging.tests.test_waveform.WaveformTestCase)
3.625s test_plot_azim_section (obspy.imaging.tests.test_waveform.WaveformTestCase)

Chuck Norris Fact

Only Chuck Norris shuts down websites without due process, not SOPA or PIPA.