1567412780[('0.985s', 'test_read_many_events (obspy.io.nordic.tests.test_nordic.TestNordicMethods)'), ('0.978s', 'test_create_read_assert_and_write_xseed (obspy.io.xseed.tests.test_parser.ParserTestCase)'), ('0.860s', 'test_is_resp (obspy.io.xseed.tests.test_utils.UtilsTestCase)'), ('0.769s', 'test_css_read_via_module (obspy.io.css.tests.test_core.CoreTestCase)'), ('0.567s', 'test_multi_writing (obspy.io.nordic.tests.test_nordic.TestNordicMethods)'), ('0.534s', 'test_nnsa_kb_core_read_via_module (obspy.io.css.tests.test_core.CoreTestCase)'), ('0.467s', '__init__ (obspy.clients.filesystem.sds.Client)'), ('0.379s', 'test_write_ah1 (obspy.io.ah.tests.test_core.CoreTestCase)'), ('0.359s', 'test_write_quakeml (obspy.io.pde.tests.test_mchedr.MchedrTestCase)'), ('0.343s', 'test_css_read_via_obspy (obspy.io.css.tests.test_core.CoreTestCase)'), ('0.278s', 'test_is_nnsa_kb_core (obspy.io.css.tests.test_core.CoreTestCase)'), ('0.271s', 'test_is_css (obspy.io.css.tests.test_core.CoreTestCase)'), ('0.270s', 'test_get_coordinates (obspy.io.xseed.tests.test_parser.ParserTestCase)'), ('0.265s', 'test_nnsa_kb_core_read_via_obspy (obspy.io.css.tests.test_core.CoreTestCase)'), ('0.260s', 'test_coordinates (obspy.geodetics.tests.test_util_flinnengdahl.UtilFlinnEngdahlTestCase)'), ('0.248s', 'test_read_via_module (obspy.io.kinemetrics.tests.test_core.CoreTestCase)'), ('0.243s', 'test_read_via_module_and_bytesio (obspy.io.kinemetrics.tests.test_core.CoreTestCase)'), ('0.221s', 'test_get_paz (obspy.io.xseed.tests.test_parser.ParserTestCase)'), ('0.221s', 'test_validate_inventories_against_schema (obspy.io.arclink.tests.test_inventory_xml.ArclinkInventoryTestCase)'), ('0.215s', 'test_amplitude (obspy.io.pde.tests.test_mchedr.MchedrTestCase)')]20.3993964195251460.0.0+archive0.0.0+archive0.0.0+archive0.0.0+archive0.0.0+archive0.9344635009765625True60Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'MSEED'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\clients\filesystem\tests\test_sds.py", line 235, in test_get_all_stations_and_nslc
with TemporarySDSDirectory(year=None, doy=None, time=t) as temp_sds:
File "f:\F\同济\obspy-master\obspy\clients\filesystem\tests\test_sds.py", line 75, in __enter__
tr_.write(full_path, format="MSEED")
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "MSEED" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'MSEED'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\clients\filesystem\tests\test_sds.py", line 110, in test_read_from_sds
with TemporarySDSDirectory(year=year, doy=doy) as temp_sds:
File "f:\F\同济\obspy-master\obspy\clients\filesystem\tests\test_sds.py", line 75, in __enter__
tr_.write(full_path, format="MSEED")
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "MSEED" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'MSEED'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\clients\filesystem\tests\test_sds.py", line 147, in test_read_from_sds_with_wildcarded_seed_ids
with TemporarySDSDirectory(year=year, doy=doy) as temp_sds:
File "f:\F\同济\obspy-master\obspy\clients\filesystem\tests\test_sds.py", line 75, in __enter__
tr_.write(full_path, format="MSEED")
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "MSEED" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'MSEED'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\clients\filesystem\tests\test_sds.py", line 175, in test_sds_report
with TemporarySDSDirectory(year=None, doy=None, time=t) as temp_sds, \
File "f:\F\同济\obspy-master\obspy\clients\filesystem\tests\test_sds.py", line 75, in __enter__
tr_.write(full_path, format="MSEED")
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "MSEED" is not supported. Supported types:
0.0.0+archive0.0.0+archive0.0.0+archive0.0.0+archive0.0.0+archive0.0.0+archive0True10>>> Cannot import test suite for module obspy.core due to:
----------------------------------------------------------
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\ptvsd_launcher.py", line 45, in <module>
main(ptvsdArgs)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 391, in main
run()
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 272, in run_file
runpy.run_path(target, run_name='__main__')
File "D:\Program Files\Anaconda3\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "f:\F\同济\obspy-master\runtests.py", line 22, in <module>
main(argv=sys.argv[1:])
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 780, in main
errors = run(argv, interactive)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 748, in run
pr_url=args.pr_url)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 576, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 178, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "D:\Program Files\Anaconda3\lib\unittest\loader.py", line 205, in loadTestsFromName
test = obj()
File "f:\F\同济\obspy-master\obspy\core\tests\__init__.py", line 17, in suite
add_unittests(suite, MODULE_NAME)
File "f:\F\同济\obspy-master\obspy\core\util\testing.py", line 71, in add_unittests
fromlist=[native_str("obspy")])
File "f:\F\同济\obspy-master\obspy\core\tests\test_response.py", line 33, in <module>
from obspy.signal.invsim import evalresp
File "f:\F\同济\obspy-master\obspy\signal\__init__.py", line 201, in <module>
from .spectral_estimation import PPSD
File "f:\F\同济\obspy-master\obspy\signal\spectral_estimation.py", line 45, in <module>
from obspy.signal.invsim import cosine_taper
File "f:\F\同济\obspy-master\obspy\signal\invsim.py", line 38, in <module>
from obspy.signal import util
File "f:\F\同济\obspy-master\obspy\signal\util.py", line 24, in <module>
from obspy.signal.headers import clibsignal
File "f:\F\同济\obspy-master\obspy\signal\headers.py", line 18, in <module>
clibsignal = _load_cdll("signal")
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 97, in _load_cdll
raise ImportError(msg)
ImportError: Could not load shared library "libsignal_Windows_64bit_py37.cp37-win_amd64.pyd".
[WinError 126] 找不到指定的模块。
0.0.0+archive0.7689430713653564True900.0.0+archive0.634303092956543True182Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\geodetics\tests\test_util_flinnengdahl.py", line 50, in test_script
obspy_flinnengdahl([longitude, latitude])
File "f:\F\同济\obspy-master\obspy\scripts\flinnengdahl.py", line 30, in main
print(flinn_engdahl.get_region(args.longitude, args.latitude))
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_io.py", line 40, in write
r.write(s)
OSError: [WinError 6] 句柄无效。
0.0.0+archive0True10>>> Cannot import test suite for module obspy.imaging due to:
-------------------------------------------------------------
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\ptvsd_launcher.py", line 45, in <module>
main(ptvsdArgs)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 391, in main
run()
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 272, in run_file
runpy.run_path(target, run_name='__main__')
File "D:\Program Files\Anaconda3\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "f:\F\同济\obspy-master\runtests.py", line 22, in <module>
main(argv=sys.argv[1:])
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 780, in main
errors = run(argv, interactive)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 748, in run
pr_url=args.pr_url)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 576, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 178, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "D:\Program Files\Anaconda3\lib\unittest\loader.py", line 205, in loadTestsFromName
test = obj()
File "f:\F\同济\obspy-master\obspy\imaging\tests\__init__.py", line 24, in suite
add_unittests(suite, MODULE_NAME)
File "f:\F\同济\obspy-master\obspy\core\util\testing.py", line 71, in add_unittests
fromlist=[native_str("obspy")])
File "f:\F\同济\obspy-master\obspy\imaging\tests\test_ppsd.py", line 16, in <module>
from obspy.signal.tests.test_spectral_estimation import _get_ppsd
File "f:\F\同济\obspy-master\obspy\signal\__init__.py", line 201, in <module>
from .spectral_estimation import PPSD
File "f:\F\同济\obspy-master\obspy\signal\spectral_estimation.py", line 45, in <module>
from obspy.signal.invsim import cosine_taper
File "f:\F\同济\obspy-master\obspy\signal\invsim.py", line 38, in <module>
from obspy.signal import util
File "f:\F\同济\obspy-master\obspy\signal\util.py", line 24, in <module>
from obspy.signal.headers import clibsignal
File "f:\F\同济\obspy-master\obspy\signal\headers.py", line 18, in <module>
clibsignal = _load_cdll("signal")
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 97, in _load_cdll
raise ImportError(msg)
ImportError: Could not load shared library "libsignal_Windows_64bit_py37.cp37-win_amd64.pyd".
[WinError 126] 找不到指定的模块。
0.0.0+archive0.624333381652832True50Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ah\tests\test_core.py", line 67, in test_read
st = read(testfile)
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ah\tests\data\hrv.lh.zne
0.0.0+archive0.23736166954040527True40Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\arclink\tests\test_inventory_xml.py", line 49, in test_analogue_filter_chain
arclink_inv = read_inventory(self.arclink_afc_path)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\arclink\tests\data\arclink_afc.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\arclink\tests\test_inventory_xml.py", line 82, in test_auto_read_arclink_xml
arclink_inv = read_inventory(self.arclink_xml_path)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\arclink\tests\data\arclink_inventory.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\arclink\tests\test_inventory_xml.py", line 76, in test_raise_polynomial
read_inventory(self.arclink_xml_poly)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\arclink\tests\data\arclink_inventory_poly.xml
0.0.0+archive0.5934128761291504True220Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SLIST'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ascii\tests\test_ascii.py", line 491, in test_float_sampling_rates_write_and_read
tr.write(tempfile, format=format)
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SLIST" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SLIST'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ascii\tests\test_ascii.py", line 472, in test_write_small_trace
tr.write(tempfile, format=format)
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SLIST" is not supported. Supported types:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ascii.core._read_slist
File "f:\F\同济\obspy-master\obspy\io\ascii\core.py", line 116, in _read_slist
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\ascii\core.py", line 135, in obspy.io.ascii.core._read_slist
Failed example:
st = read('/path/to/slist.ascii')
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.ascii.core._read_slist[1]>", line 1, in <module>
st = read('/path/to/slist.ascii')
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ascii\tests\data\slist.ascii
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ascii.core._read_tspair
File "f:\F\同济\obspy-master\obspy\io\ascii\core.py", line 184, in _read_tspair
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\ascii\core.py", line 203, in obspy.io.ascii.core._read_tspair
Failed example:
st = read('/path/to/tspair.ascii')
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.ascii.core._read_tspair[1]>", line 1, in <module>
st = read('/path/to/tspair.ascii')
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ascii\tests\data\tspair.ascii
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ascii.core._write_slist
File "f:\F\同济\obspy-master\obspy\io\ascii\core.py", line 252, in _write_slist
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\ascii\core.py", line 269, in obspy.io.ascii.core._write_slist
Failed example:
st = read()
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.ascii.core._write_slist[1]>", line 1, in <module>
st = read()
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ascii.core._write_tspair
File "f:\F\同济\obspy-master\obspy\io\ascii\core.py", line 353, in _write_tspair
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\ascii\core.py", line 370, in obspy.io.ascii.core._write_tspair
Failed example:
st = read()
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.ascii.core._write_tspair[1]>", line 1, in <module>
st = read()
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
0.0.0+archive0.09474706649780273True90Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D2AFA0A0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\test_core.py", line 145, in test_read_and_write_cmtsolution_explosion
cat = obspy.read_events(buf)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-ufp49dpo.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D2AFA0F8>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\test_core.py", line 120, in test_read_and_write_cmtsolution_from_bytes_io
cat = obspy.read_events(buf)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-mcxzk44k.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\test_core.py", line 38, in test_read_and_write_cmtsolution_from_files
cat = obspy.read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\data\CMTSOLUTION
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BufferedReader name='f:\\F\\同济\\obspy-master\\obspy\\io\\cmtsolution\\tests\\data\\CMTSOLUTION'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\test_core.py", line 95, in test_read_and_write_cmtsolution_from_open_files
cat = obspy.read_events(fh)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-pic3ya3d.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\test_core.py", line 180, in test_read_and_write_multiple_cmtsolution_from_files
cat = obspy.read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\data\MULTIPLE_EVENTS
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D2AFAC50>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\test_core.py", line 215, in test_read_and_write_multiple_events_from_bytes_io
cat = obspy.read_events(buf)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-xhujtxpa.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\test_core.py", line 232, in test_reading_newer_cmtsolution_files
cat = obspy.read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\data\CMTSOLUTION_NEW
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\test_core.py", line 65, in test_write_no_preferred_focal_mechanism
cat = obspy.read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\cmtsolution\tests\data\CMTSOLUTION
0.0.0+archive0.012964248657226562True10Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'QUAKEML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\cnv\tests\test_core.py", line 31, in test_write_cnv
cat = read_events(filename, format="QUAKEML")
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "QUAKEML" is not supported. Supported types:
0.0.0+archive2.464409589767456True70Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\css\tests\data\test_css.wfdisc
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\css\tests\data\test_nnsa.wfdisc
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\css\tests\test_station.py", line 65, in test_default_write
inv = obspy.core.inventory.read_inventory()
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 68, in read_inventory
return _create_example_inventory()
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 46, in _create_example_inventory
return read_inventory(path, format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
0.0.0+archive0.1326436996459961True90Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\gcf\tests\test_core.py", line 129, in test_merge_gcf_stream
st1 = read(filename, headonly=True, channel_prefix="HN")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\gcf\tests\data\20160603_1955n.gcf
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\gcf\tests\test_core.py", line 112, in test_read_channel_prefix_via_obspy
st = read(filename, headonly=True, channel_prefix="HN")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\gcf\tests\data\20160603_1955n.gcf
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\gcf\tests\test_core.py", line 59, in test_read_head_via_obspy
st = read(filename, headonly=True)
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\gcf\tests\data\20160603_1955n.gcf
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\gcf\tests\test_core.py", line 40, in test_read_via_obspy
st = read(filename)
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\gcf\tests\data\20160603_1955n.gcf
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\gcf\tests\test_core.py", line 154, in test_sps_d
st = read(filename, headonly=True, channel_prefix="HN")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\gcf\tests\data\20160603_1910n.gcf
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gcf.core._read_gcf
File "f:\F\同济\obspy-master\obspy\io\gcf\core.py", line 60, in _read_gcf
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\gcf\core.py", line 82, in obspy.io.gcf.core._read_gcf
Failed example:
st = read("/path/to/20160603_1955n.gcf", format="GCF")
Exception raised:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'GCF'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.gcf.core._read_gcf[1]>", line 1, in <module>
st = read("/path/to/20160603_1955n.gcf", format="GCF")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "GCF" is not supported. Supported types:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gcf.__init__
File "f:\F\同济\obspy-master\obspy\io\gcf\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\gcf\__init__.py", line 21, in obspy.io.gcf.__init__
Failed example:
st = read("/path/to/20160603_1955n.gcf")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.gcf.__init__[1]>", line 1, in <module>
st = read("/path/to/20160603_1955n.gcf")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\gcf\tests\data\20160603_1955n.gcf
0.0.0+archive0True10>>> Cannot import test suite for module obspy.io.gse2 due to:
-------------------------------------------------------------
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\ptvsd_launcher.py", line 45, in <module>
main(ptvsdArgs)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 391, in main
run()
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 272, in run_file
runpy.run_path(target, run_name='__main__')
File "D:\Program Files\Anaconda3\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "f:\F\同济\obspy-master\runtests.py", line 22, in <module>
main(argv=sys.argv[1:])
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 780, in main
errors = run(argv, interactive)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 748, in run
pr_url=args.pr_url)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 576, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 178, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "D:\Program Files\Anaconda3\lib\unittest\loader.py", line 205, in loadTestsFromName
test = obj()
File "f:\F\同济\obspy-master\obspy\io\gse2\tests\__init__.py", line 16, in suite
add_doctests(suite, MODULE_NAME)
File "f:\F\同济\obspy-master\obspy\core\util\testing.py", line 120, in add_doctests
fromlist=[native_str("obspy")])
File "f:\F\同济\obspy-master\obspy\io\gse2\core.py", line 12, in <module>
from . import libgse1, libgse2
File "f:\F\同济\obspy-master\obspy\io\gse2\libgse1.py", line 27, in <module>
from .libgse2 import uncompress_cm6, verify_checksum, read_integer_data
File "f:\F\同济\obspy-master\obspy\io\gse2\libgse2.py", line 42, in <module>
clibgse2 = _load_cdll("gse2")
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 97, in _load_cdll
raise ImportError(msg)
ImportError: Could not load shared library "libgse2_Windows_64bit_py37.cp37-win_amd64.pyd".
[WinError 126] 找不到指定的模块。
0.0.0+archive0.17752718925476074True40Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\json\tests\test_json.py", line 76, in test_write_json
self.c.write(memfile, format="json")
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'JSON'
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.json.default
File "f:\F\同济\obspy-master\obspy\io\json\default.py", line 1, in default
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\json\default.py", line 16, in obspy.io.json.default
Failed example:
c = read_events()
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.json.default[3]>", line 1, in <module>
c = read_events()
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 803, in read_events
return _create_example_catalog()
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 864, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\tests\data\neries_events.xml
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\json\default.py", line 18, in obspy.io.json.default
Failed example:
s = json.dumps(c, default=d)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.json.default[5]>", line 1, in <module>
s = json.dumps(c, default=d)
NameError: name 'c' is not defined
0.0.0+archive0.6143546104431152True70Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\tests\test_core.py", line 82, in test_read_via_obspy
st = read(filename)
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\kinemetrics\tests\data\BI008_MEMA-04823.evt
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 210, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D2B2F308>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\tests\test_core.py", line 131, in test_reading_via_obspy_and_bytesio
st = read(buf)
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 218, in read
st.extend(_read(fh.name, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-7dgwq41g.tmp
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.kinemetrics.__init__
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\__init__.py", line 24, in obspy.io.kinemetrics.__init__
Failed example:
st = read("/path/to/BI008_MEMA-04823.evt")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kinemetrics.__init__[1]>", line 1, in <module>
st = read("/path/to/BI008_MEMA-04823.evt")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\kinemetrics\tests\data\BI008_MEMA-04823.evt
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\__init__.py", line 25, in obspy.io.kinemetrics.__init__
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kinemetrics.__init__[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\__init__.py", line 27, in obspy.io.kinemetrics.__init__
Failed example:
print (st) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kinemetrics.__init__[3]>", line 1, in <module>
print (st) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\__init__.py", line 45, in obspy.io.kinemetrics.__init__
Failed example:
stats_evt = st[0].stats.pop('kinemetrics_evt')
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kinemetrics.__init__[4]>", line 1, in <module>
stats_evt = st[0].stats.pop('kinemetrics_evt')
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\__init__.py", line 46, in obspy.io.kinemetrics.__init__
Failed example:
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kinemetrics.__init__[5]>", line 1, in <module>
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\__init__.py", line 58, in obspy.io.kinemetrics.__init__
Failed example:
for k, v in sorted(stats_evt.items()):
print(k, v)
# doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kinemetrics.__init__[6]>", line 1, in <module>
for k, v in sorted(stats_evt.items()):
NameError: name 'stats_evt' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\__init__.py", line 98, in obspy.io.kinemetrics.__init__
Failed example:
type(st[0].data) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kinemetrics.__init__[7]>", line 1, in <module>
type(st[0].data) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kinemetrics\__init__.py", line 100, in obspy.io.kinemetrics.__init__
Failed example:
print(st[0].data)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kinemetrics.__init__[8]>", line 1, in <module>
print(st[0].data)
NameError: name 'st' is not defined
0.0.0+archive0.05186939239501953True30Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\kml\tests\test_kml.py", line 45, in test_write_catalog
cat = read_events()
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 803, in read_events
return _create_example_catalog()
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 864, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\kml\tests\test_kml.py", line 28, in test_write_inventory
inv = read_inventory()
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 68, in read_inventory
return _create_example_inventory()
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 46, in _create_example_inventory
return read_inventory(path, format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.kml.__init__
File "f:\F\同济\obspy-master\obspy\io\kml\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kml\__init__.py", line 13, in obspy.io.kml.__init__
Failed example:
inv = read_inventory() # load example data
Exception raised:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kml.__init__[1]>", line 1, in <module>
inv = read_inventory() # load example data
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 68, in read_inventory
return _create_example_inventory()
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 46, in _create_example_inventory
return read_inventory(path, format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\kml\__init__.py", line 15, in obspy.io.kml.__init__
Failed example:
cat = read_events() # load example data
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kml.__init__[3]>", line 1, in <module>
cat = read_events() # load example data
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 803, in read_events
return _create_example_catalog()
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 864, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\tests\data\neries_events.xml
0.0.0+archive0True10>>> Cannot import test suite for module obspy.io.mseed due to:
--------------------------------------------------------------
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\ptvsd_launcher.py", line 45, in <module>
main(ptvsdArgs)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 391, in main
run()
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 272, in run_file
runpy.run_path(target, run_name='__main__')
File "D:\Program Files\Anaconda3\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "f:\F\同济\obspy-master\runtests.py", line 22, in <module>
main(argv=sys.argv[1:])
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 780, in main
errors = run(argv, interactive)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 748, in run
pr_url=args.pr_url)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 576, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 178, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "D:\Program Files\Anaconda3\lib\unittest\loader.py", line 205, in loadTestsFromName
test = obj()
File "f:\F\同济\obspy-master\obspy\io\mseed\tests\__init__.py", line 16, in suite
add_doctests(suite, MODULE_NAME)
File "f:\F\同济\obspy-master\obspy\core\util\testing.py", line 120, in add_doctests
fromlist=[native_str("obspy")])
File "f:\F\同济\obspy-master\obspy\io\mseed\core.py", line 20, in <module>
from . import (util, InternalMSEEDError, ObsPyMSEEDFilesizeTooSmallError,
File "f:\F\同济\obspy-master\obspy\io\mseed\util.py", line 22, in <module>
from .headers import (ENCODINGS, ENDIAN, FIXED_HEADER_ACTIVITY_FLAGS,
File "f:\F\同济\obspy-master\obspy\io\mseed\headers.py", line 22, in <module>
__clibmseed = _load_cdll("mseed")
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 97, in _load_cdll
raise ImportError(msg)
ImportError: Could not load shared library "libmseed_Windows_64bit_py37.cp37-win_amd64.pyd".
[WinError 126] 找不到指定的模块。
0.0.0+archive0.3630378246307373True200Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.StringIO object at 0x00000271D2A5D678>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 280, in test_missing_lines
cat = read_events(data)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 814, in read_events
fh.write(pathname_or_url.read())
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 106, in write
return self._fileobj.write(*args, **kwargs)
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.StringIO object at 0x00000271D2A5D678>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 318, in test_raise_exception_if_no_events_in_file
self.assertRaises(ObsPyNDKException, read_events, data)
File "D:\Program Files\Anaconda3\lib\unittest\case.py", line 743, in assertRaises
return context.handle('assertRaises', args, kwargs)
File "D:\Program Files\Anaconda3\lib\unittest\case.py", line 178, in handle
callable_obj(*args, **kwargs)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 814, in read_events
fh.write(pathname_or_url.read())
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 106, in write
return self._fileobj.write(*args, **kwargs)
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 37, in test_read_single_ndk
ref_cat = read_events(reference)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ndk\tests\data\C200604092050A.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 297, in test_reading_event_with_faulty_but_often_occurring_timestamp
cat = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ndk\tests\data\faulty_cmt_timestamp.ndk
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 220, in test_reading_file_with_multiple_errors
cat = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ndk\tests\data\faulty_multiple_events.ndk
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D2B2F2B0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 132, in test_reading_from_bytes_io
cat = read_events(file_object)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-kr6zfodq.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 257, in test_reading_from_bytestring
ref_cat = read_events(reference)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ndk\tests\data\C200604092050A.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BufferedReader name='f:\\F\\同济\\obspy-master\\obspy\\io\\ndk\\tests\\data\\C200604092050A.ndk'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 159, in test_reading_from_open_file_in_binary_mode
cat = read_events(fh)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-hf3xthx_.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.TextIOWrapper name='f:\\F\\同济\\obspy-master\\obspy\\io\\ndk\\tests\\data\\C200604092050A.ndk' mode='rt' encoding='cp936'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 146, in test_reading_from_open_file_in_text_mode
cat = read_events(fh)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 814, in read_events
fh.write(pathname_or_url.read())
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 106, in write
return self._fileobj.write(*args, **kwargs)
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 240, in test_reading_from_string
ref_cat = read_events(reference)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ndk\tests\data\C200604092050A.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.StringIO object at 0x00000271D2A5D318>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 116, in test_reading_from_string_io
cat = read_events(file_object)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 814, in read_events
fh.write(pathname_or_url.read())
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 106, in write
return self._fileobj.write(*args, **kwargs)
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 172, in test_reading_the_same_file_twice_does_not_raise_a_warnings
cat_1 = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ndk\tests\data\C200604092050A.ndk
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\ndk\tests\test_ndk.py", line 101, in test_reading_using_obspy_plugin
cat = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ndk\tests\data\C200604092050A.ndk
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ndk.__init__
File "f:\F\同济\obspy-master\obspy\io\ndk\__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\ndk\__init__.py", line 60, in obspy.io.ndk.__init__
Failed example:
cat = obspy.read_events("/path/to/C200604092050A.ndk")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.ndk.__init__[1]>", line 1, in <module>
cat = obspy.read_events("/path/to/C200604092050A.ndk")
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\ndk\tests\data\C200604092050A.ndk
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\ndk\__init__.py", line 61, in obspy.io.ndk.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.ndk.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
0.0.0+archive0.2154076099395752True110Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'FNETMT'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nied\tests\test_fnetmt_reading.py", line 24, in test_read_fnetmt_catalog
cat = read_events(testfile, 'FNETMT')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "FNETMT" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D3B05FC0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nied\tests\test_fnetmt_reading.py", line 48, in test_read_fnetmt_catalog_from_bytes_io
read_events(buf)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-q8yl590r.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BufferedReader name='f:\\F\\同济\\obspy-master\\obspy\\io\\nied\\tests\\data\\FNETMTCATALOG'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nied\tests\test_fnetmt_reading.py", line 36, in test_read_fnetmt_catalog_from_open_files
read_events(fh)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-k79ots3e.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nied\tests\test_knet_reading.py", line 26, in test_read_knet_ascii
tr = read(testfile)[0]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nied\tests\data\test.knet
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 210, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D3B05FC0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nied\tests\test_knet_reading.py", line 60, in test_read_knet_ascii_from_bytes_io
tr = read(buf)[0]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 218, in read
st.extend(_read(fh.name, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-e_olzjmk.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 210, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BufferedReader name='f:\\F\\同济\\obspy-master\\obspy\\io\\nied\\tests\\data\\test.knet'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nied\tests\test_knet_reading.py", line 41, in test_read_knet_ascii_from_open_files
tr = read(fh)[0]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 218, in read
st.extend(_read(fh.name, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-yojafh4q.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nied\tests\test_knet_reading.py", line 76, in test_station_name_hack
tr = read(testfile, convert_stnm=True)[0]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nied\tests\data\test.knet
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.nied.__init__
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 22, in obspy.io.nied.__init__
Failed example:
cat = obspy.read_events("/path/to/FNETMTCATALOG")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[1]>", line 1, in <module>
cat = obspy.read_events("/path/to/FNETMTCATALOG")
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nied\tests\data\FNETMTCATALOG
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 23, in obspy.io.nied.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 29, in obspy.io.nied.__init__
Failed example:
print(cat[0]) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[3]>", line 1, in <module>
print(cat[0]) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 90, in obspy.io.nied.__init__
Failed example:
st = read('/path/to/test.knet')
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[5]>", line 1, in <module>
st = read('/path/to/test.knet')
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nied\tests\data\test.knet
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 91, in obspy.io.nied.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[6]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 101, in obspy.io.nied.__init__
Failed example:
st = read('/path/to/test.knet',convert_stnm=True)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[7]>", line 1, in <module>
st = read('/path/to/test.knet',convert_stnm=True)
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nied\tests\data\test.knet
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 102, in obspy.io.nied.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[8]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 109, in obspy.io.nied.__init__
Failed example:
print(st[0].stats) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[9]>", line 1, in <module>
print(st[0].stats) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 123, in obspy.io.nied.__init__
Failed example:
print(st[0].stats.knet.stlo)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[10]>", line 1, in <module>
print(st[0].stats.knet.stlo)
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nied\__init__.py", line 126, in obspy.io.nied.__init__
Failed example:
print(st[0].stats.knet.comment)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[11]>", line 1, in <module>
print(st[0].stats.knet.comment)
NameError: name 'st' is not defined
0.0.0+archive0.4148902893066406True111Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nlloc\tests\test_core.py", line 91, in test_read_nlloc_hyp
cat.write(tf, format="QUAKEML")
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'QUAKEML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nlloc\tests\test_core.py", line 217, in test_read_nlloc_hyp_via_plugin
cat = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nlloc\tests\data\nlloc_custom.hyp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nlloc\tests\test_core.py", line 124, in test_read_nlloc_hyp_with_builtin_projection
cat_expected = read_events(get_example_file("nlloc.qml"))
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nlloc\tests\data\nlloc.qml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'NLLOC_HYP'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nlloc\tests\test_core.py", line 250, in test_read_nlloc_with_multiple_events
format="NLLOC_HYP")
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "NLLOC_HYP" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nlloc\tests\test_core.py", line 237, in test_read_nlloc_with_picks
picks = read_events(get_example_file("nlloc_custom.qml"))[0].picks
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nlloc\tests\data\nlloc_custom.qml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'QUAKEML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nlloc\tests\test_core.py", line 51, in test_write_nlloc_obs
cat = read_events(filename, "QUAKEML")
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "QUAKEML" is not supported. Supported types:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.nlloc.__init__
File "f:\F\同济\obspy-master\obspy\io\nlloc\__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nlloc\__init__.py", line 23, in obspy.io.nlloc.__init__
Failed example:
cat = read_events("/path/to/nlloc.hyp")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nlloc.__init__[1]>", line 1, in <module>
cat = read_events("/path/to/nlloc.hyp")
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nlloc\tests\data\nlloc.hyp
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nlloc\__init__.py", line 24, in obspy.io.nlloc.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nlloc.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nlloc\__init__.py", line 28, in obspy.io.nlloc.__init__
Failed example:
event = cat[0]
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nlloc.__init__[3]>", line 1, in <module>
event = cat[0]
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nlloc\__init__.py", line 29, in obspy.io.nlloc.__init__
Failed example:
print(event) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nlloc.__init__[4]>", line 1, in <module>
print(event) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'event' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nlloc\__init__.py", line 42, in obspy.io.nlloc.__init__
Failed example:
origin = event.origins[0]
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nlloc.__init__[5]>", line 1, in <module>
origin = event.origins[0]
NameError: name 'event' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\nlloc\__init__.py", line 43, in obspy.io.nlloc.__init__
Failed example:
print(origin) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nlloc.__init__[6]>", line 1, in <module>
print(origin) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'origin' is not defined
0.0.0+archive2.2659387588500977True310Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nordic\tests\test_nordic.py", line 198, in test_blanksfile
st = read()
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nordic\tests\test_nordic.py", line 538, in test_distance_conversion
cat = read_events(testing_path)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\nordic\tests\data\01-0411-15L.S201309
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D294A258>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nordic\tests\test_nordic.py", line 325, in test_reading_bytes_io
cat = read_events(file_object)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-u9tvq99b.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.StringIO object at 0x00000271D2A5D318>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nordic\tests\test_nordic.py", line 310, in test_reading_string_io
cat = read_events(file_object)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 814, in read_events
fh.write(pathname_or_url.read())
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 106, in write
return self._fileobj.write(*args, **kwargs)
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nordic\tests\test_nordic.py", line 421, in test_write_plugin
cat = read_events()
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 803, in read_events
return _create_example_catalog()
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 864, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\nordic\tests\test_nordic.py", line 409, in test_write_select
cat = read_events()
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 803, in read_events
return _create_example_catalog()
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 864, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\tests\data\neries_events.xml
0.0.0+archive0.06283164024353027True30Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.pdas.core._read_pdas
File "f:\F\同济\obspy-master\obspy\io\pdas\core.py", line 44, in _read_pdas
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\pdas\core.py", line 60, in obspy.io.pdas.core._read_pdas
Failed example:
st = read("/path/to/p1246001.108")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\pdas\tests\data\p1246001.108
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\pdas\core.py", line 61, in obspy.io.pdas.core._read_pdas
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\io\pdas\core.py", line 63, in obspy.io.pdas.core._read_pdas
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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
0.0.0+archive0.686166524887085True130Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\pde\tests\test_mchedr.py", line 330, in test_read_events
catalog = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\pde\tests\data\mchedr.dat
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.pde.mchedr._read_mchedr
File "f:\F\同济\obspy-master\obspy\io\pde\mchedr.py", line 1, in _read_mchedr
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\pde\mchedr.py", line 19, in obspy.io.pde.mchedr._read_mchedr
Failed example:
cat = read_events('/path/to/mchedr.dat')
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.pde.mchedr._read_mchedr[1]>", line 1, in <module>
cat = read_events('/path/to/mchedr.dat')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\pde\tests\data\mchedr.dat
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\pde\mchedr.py", line 20, in obspy.io.pde.mchedr._read_mchedr
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.pde.mchedr._read_mchedr[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
0.0.0+archive1.3453998565673828True320Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\quakeml\tests\test_quakeml.py", line 735, in test_creating_minimal_quakeml_with_mt
cat.write(memfile, format="quakeml", validate=IS_RECENT_LXML)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'QUAKEML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\quakeml\tests\test_quakeml.py", line 679, in test_preferred_tags
catalog = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\quakeml\tests\data\preferred.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\quakeml\tests\test_quakeml.py", line 772, in test_read_equivalence
cat1 = read_events(self.neries_filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\quakeml\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\quakeml\tests\test_quakeml.py", line 582, in test_read_events
catalog = read_events(self.neries_filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\quakeml\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D26397D8>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\quakeml\tests\test_quakeml.py", line 1006, in test_read_same_file_twice_to_same_variable
cat1 = read_events(sio) # NOQA
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-2uym2q0_.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file b'<?xml version=\'1.0\' encoding=\'UTF-8\'?>\n<quakeml xmlns="http://quakeml.org/xmlns/quakeml/1.0">\n <eventParameters publicID="smi://eu.emsc/unid">\n <event publicID="quakeml:eu.emsc/event/20120404_0000041">\n <preferredOriginID>quakeml:eu.emsc/origin/rts/261020/782484</preferredOriginID>\n <preferredMagnitudeID>quakeml:eu.emsc/NetworkMagnitude/rts/261020/782484/796646</preferredMagnitudeID>\n <type>null</type>\n <creationInfo>\n <agencyURI>smi:smi-registry/organization/EMSC</agencyURI>\n <authorURI>smi:smi-registry/organization/EMSC</authorURI>\n <creationTime>2012-04-04T16:40:50.000000Z</creationTime>\n <version>1.0.1</version>\n </creationInfo>\n <description>\n <type>Flinn-Engdahl region</type>\n <text>KYRGYZSTAN</text>\n </description>\n <origin publicID="quakeml:eu.emsc/origin/rts/261020/782484">\n <time>\n <value>2012-04-04T14:21:42.3+00:00</value>\n <uncertainty>0</uncertainty>\n </time>\n <latitude>\n <value>41.818</value>\n </latitude>\n <longitude>\n <value>79.689</value>\n </longitude>\n <depth>\n <value>1000</value>\n <uncertainty>0</uncertainty>\n </depth>\n <depthType>from location</depthType>\n <methodID>smi:eu.emsc-csem/origin_method/NA</methodID>\n <quality>\n <usedStationCount>16</usedStationCount>\n <standardError>0</standardError>\n <azimuthalGap>231</azimuthalGap>\n <maximumDistance>53.03</maximumDistance>\n <minimumDistance>2.45</minimumDistance>\n </quality>\n <evaluationMode>manual</evaluationMode>\n <creationInfo>\n <agencyURI>smi:smi-registry/organization/EMSC</agencyURI>\n <authorURI>smi:smi-registry/organization/NNC</authorURI>\n </creationInfo>\n <originUncertainty>\n <minHorizontalUncertainty>0</minHorizontalUncertainty>\n <maxHorizontalUncertainty>0</maxHorizontalUncertainty>\n <azimuthMaxHorizontalUncertainty>0</azimuthMaxHorizontalUncertainty>\n </originUncertainty>\n </origin>\n <magnitude\n publicID="quakeml:eu.emsc/NetworkMagnitude/rts/261020/782484/796646">\n <mag>\n <value>4.4</value>\n <uncertainty>0</uncertainty>\n </mag>\n <type>mb</type>\n <originID>quakeml:eu.emsc/origin/rts/261020/782484</originID>\n <stationCount>0</stationCount>\n <creationInfo>\n <agencyURI>smi:smi-registry/organization/EMSC</agencyURI>\n <authorURI>smi:smi-registry/organization/NNC</authorURI>\n </creationInfo>\n </magnitude>\n </event>\n <event publicID="quakeml:eu.emsc/event/20120404_0000038">\n <preferredOriginID>quakeml:eu.emsc/origin/rts/261017/782476</preferredOriginID>\n <preferredMagnitudeID>quakeml:eu.emsc/NetworkMagnitude/rts/261017/782476/796628</preferredMagnitudeID>\n <type>null</type>\n <creationInfo>\n <agencyURI>smi:smi-registry/organization/EMSC</agencyURI>\n <authorURI>smi:smi-registry/organization/EMSC</authorURI>\n <creationTime>2012-04-04T16:40:50.000000Z</creationTime>\n <version>1.0.1</version>\n </creationInfo>\n <description>\n <type>Flinn-Engdahl region</type>\n <text>EASTERN TURKEY</text>\n </description>\n <origin publicID="quakeml:eu.emsc/origin/rts/261017/782476">\n <time>\n <value>2012-04-04T14:18:37.0+00:00</value>\n <uncertainty>0</uncertainty>\n </time>\n <latitude>\n <value>39.342</value>\n </latitude>\n <longitude>\n <value>41.044</value>\n </longitude>\n <depth>\n <value>14400</value>\n <uncertainty>0</uncertainty>\n </depth>\n <depthType>from location</depthType>\n <methodID>smi:eu.emsc-csem/origin_method/NA</methodID>\n <quality>\n <usedStationCount>46</usedStationCount>\n <standardError>0</standardError>\n <azimuthalGap>27</azimuthalGap>\n <maximumDistance>2.7</maximumDistance>\n <minimumDistance>0.27</minimumDistance>\n </quality>\n <evaluationMode>manual</evaluationMode>\n <creationInfo>\n <agencyURI>smi:smi-registry/organization/EMSC</agencyURI>\n <authorURI>smi:smi-registry/organization/DDA</authorURI>\n </creationInfo>\n <originUncertainty>\n <minHorizontalUncertainty>0</minHorizontalUncertainty>\n <maxHorizontalUncertainty>0</maxHorizontalUncertainty>\n <azimuthMaxHorizontalUncertainty>0</azimuthMaxHorizontalUncertainty>\n </originUncertainty>\n </origin>\n <magnitude\n publicID="quakeml:eu.emsc/NetworkMagnitude/rts/261017/782476/796628">\n <mag>\n <value>4.3</value>\n <uncertainty>0</uncertainty>\n </mag>\n <type>ML</type>\n <originID>quakeml:eu.emsc/origin/rts/261017/782476</originID>\n <stationCount>0</stationCount>\n <creationInfo>\n <agencyURI>smi:smi-registry/organization/EMSC</agencyURI>\n <authorURI>smi:smi-registry/organization/DDA</authorURI>\n </creationInfo>\n </magnitude>\n </event>\n <event publicID="quakeml:eu.emsc/event/20120404_0000039">\n <preferredOriginID>quakeml:eu.emsc/origin/rts/261018/782478</preferredOriginID>\n <preferredMagnitudeID>quakeml:eu.emsc/NetworkMagnitude/rts/261018/782478/796631</preferredMagnitudeID>\n <type>null</type>\n <creationInfo>\n <agencyURI>smi:smi-registry/organization/EMSC</agencyURI>\n <authorURI>smi:smi-registry/organization/EMSC</authorURI>\n <creationTime>2012-04-04T16:40:50.000000Z</creationTime>\n <version>1.0.1</version>\n </creationInfo>\n <description>\n <type>Flinn-Engdahl region</type>\n <text>CENTRAL TURKEY</text>\n </description>\n <origin publicID="quakeml:eu.emsc/origin/rts/261018/782478">\n <time>\n <value>2012-04-04T14:08:46.0+00:00</value>\n <uncertainty>0</uncertainty>\n </time>\n <latitude>\n <value>38.017</value>\n </latitude>\n <longitude>\n <value>37.736</value>\n </longitude>\n <depth>\n <value>7000</value>\n <uncertainty>0</uncertainty>\n </depth>\n <depthType>from location</depthType>\n <methodID>smi:eu.emsc-csem/origin_method/NA</methodID>\n <quality>\n <usedStationCount>22</usedStationCount>\n <standardError>0</standardError>\n <azimuthalGap>66</azimuthalGap>\n <maximumDistance>1.38</maximumDistance>\n <minimumDistance>0.31</minimumDistance>\n </quality>\n <evaluationMode>manual</evaluationMode>\n <creationInfo>\n <agencyURI>smi:smi-registry/organization/EMSC</agencyURI>\n <authorURI>smi:smi-registry/organization/DDA</authorURI>\n </creationInfo>\n <originUncertainty>\n <minHorizontalUncertainty>0</minHorizontalUncertainty>\n <maxHorizontalUncertainty>0</maxHorizontalUncertainty>\n <azimuthMaxHorizontalUncertainty>0</azimuthMaxHorizontalUncertainty>\n </originUncertainty>\n </origin>\n <magnitude\n publicID="quakeml:eu.emsc/NetworkMagnitude/rts/261018/782478/796631">\n <mag>\n <value>3</value>\n <uncertainty>0</uncertainty>\n </mag>\n <type>ML</type>\n <originID>quakeml:eu.emsc/origin/rts/261018/782478</originID>\n <stationCount>0</stationCount>\n <creationInfo>\n <agencyURI>smi:smi-registry/organization/EMSC</agencyURI>\n <authorURI>smi:smi-registry/organization/DDA</authorURI>\n </creationInfo>\n </magnitude>\n </event>\n </eventParameters>\n</quakeml>\n'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\quakeml\tests\test_quakeml.py", line 665, in test_read_string
catalog = read_events(data)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 812, in read_events
pathname_or_url.seek(0)
AttributeError: 'bytes' object has no attribute 'seek'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\quakeml\tests\test_quakeml.py", line 829, in test_write_amplitude_time_window
cat.write(tmpfile, format='QUAKEML')
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'QUAKEML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\quakeml\tests\test_quakeml.py", line 909, in test_write_with_extra_tags_and_read
cat.write(tmpfile, format='QUAKEML', nsmap=nsmap)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'QUAKEML'
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.quakeml.core._read_quakeml
File "f:\F\同济\obspy-master\obspy\io\quakeml\core.py", line 1775, in _read_quakeml
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\quakeml\core.py", line 1792, in obspy.io.quakeml.core._read_quakeml
Failed example:
cat = read_events('/path/to/iris_events.xml')
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.quakeml.core._read_quakeml[1]>", line 1, in <module>
cat = read_events('/path/to/iris_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\tests\data\iris_events.xml
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\quakeml\core.py", line 1793, in obspy.io.quakeml.core._read_quakeml
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.quakeml.core._read_quakeml[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
0.0.0+archive0True10>>> Cannot import test suite for module obspy.io.reftek due to:
---------------------------------------------------------------
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\ptvsd_launcher.py", line 45, in <module>
main(ptvsdArgs)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 391, in main
run()
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 272, in run_file
runpy.run_path(target, run_name='__main__')
File "D:\Program Files\Anaconda3\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "f:\F\同济\obspy-master\runtests.py", line 22, in <module>
main(argv=sys.argv[1:])
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 780, in main
errors = run(argv, interactive)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 748, in run
pr_url=args.pr_url)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 576, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 178, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "D:\Program Files\Anaconda3\lib\unittest\loader.py", line 205, in loadTestsFromName
test = obj()
File "f:\F\同济\obspy-master\obspy\io\reftek\tests\__init__.py", line 16, in suite
add_doctests(suite, MODULE_NAME)
File "f:\F\同济\obspy-master\obspy\core\util\testing.py", line 120, in add_doctests
fromlist=[native_str("obspy")])
File "f:\F\同济\obspy-master\obspy\io\reftek\core.py", line 20, in <module>
from .packet import (Packet, EHPacket, _initial_unpack_packets, PACKET_TYPES,
File "f:\F\同济\obspy-master\obspy\io\reftek\packet.py", line 20, in <module>
from obspy.io.mseed.headers import clibmseed
File "f:\F\同济\obspy-master\obspy\io\mseed\headers.py", line 22, in <module>
__clibmseed = _load_cdll("mseed")
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 97, in _load_cdll
raise ImportError(msg)
ImportError: Could not load shared library "libmseed_Windows_64bit_py37.cp37-win_amd64.pyd".
[WinError 126] 找不到指定的模块。
0.0.0+archive1.5299115180969238True930Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 912, in test_always_sac_reftime
tr.write(tf, format='SAC')
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 236, in test_convert_to_sac
st.write(tmpfile, format="SAC")
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\test.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\test.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 341, in test_issue_156
tr.write(sac_file, 'SAC')
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\dis.G.SCZ.__.BHE_short
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 816, in test_merge_sac_obspy_headers
tr.write(tempfile, format='SAC')
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\test.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\null_terminated.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\test.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 210, in read
stream = _read(pathname_or_url, format, headonly, **kwargs)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D3C24F68>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 218, in read
st.extend(_read(fh.name, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-q9r1pfi_.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 474, in test_read_with_fsize
self.assertRaises(SacError, read, longer_file)
File "D:\Program Files\Anaconda3\lib\unittest\case.py", line 743, in assertRaises
return context.handle('assertRaises', args, kwargs)
File "D:\Program Files\Anaconda3\lib\unittest\case.py", line 178, in handle
callable_obj(*args, **kwargs)
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\seism-longer.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SACXY'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 83, in test_read_xy_write_xy_via_obspy
tr = read(self.filexy, format='SACXY')[0]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SACXY" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\seism.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 889, in test_sac_file_from_new_header
tr.write(tf, format='SAC')
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 187, in test_set_version
st.write(tempfile, format="SAC")
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\test.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 781, in test_valid_sac_from_minimal_existing_sac_header
tr.write(tempfile, format='SAC')
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SACXY'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 365, in test_write_sac_xy_with_minimum_stats
tr.write(sac_file, 'SACXY')
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SACXY" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 427, in test_write_small_trace
tr.write(tempfile, format=format)
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 175, in test_write_via_obspy
st.write(tempfile, format='SAC')
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\test.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SAC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 401, in test_writing_micro_seconds
st.write(tmpfile, format="SAC")
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SAC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 740, in test_writing_to_file_like_objects_with_obspy
st = read()[:1]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 578, in test_writing_to_io_string_io_fails
st = read()[:1]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_core.py", line 570, in test_writing_to_obj_with_multiple_traces_fails
st = read()
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\test_encode.sac
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_sacpz.py", line 53, in test_write_sacpz_multiple_channels
inv = read_inventory("/path/to/IU_ANMO_BH.xml")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\tests\data\IU_ANMO_BH.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sac\tests\test_sacpz.py", line 37, in test_write_sacpz_single_channel
inv = read_inventory("/path/to/IU_ANMO_00_BHZ.xml")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\tests\data\IU_ANMO_00_BHZ.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\seism.sac
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._internal_read_sac_xy
File "f:\F\同济\obspy-master\obspy\io\sac\core.py", line 212, in _internal_read_sac_xy
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\core.py", line 238, in obspy.io.sac.core._internal_read_sac_xy
Failed example:
st = read("/path/to/testxy.sac")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.core._internal_read_sac_xy[1]>", line 1, in <module>
st = read("/path/to/testxy.sac")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\testxy.sac
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._read_sac
File "f:\F\同济\obspy-master\obspy\io\sac\core.py", line 311, in _read_sac
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\test.sac
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._read_sac_xy
File "f:\F\同济\obspy-master\obspy\io\sac\core.py", line 174, in _read_sac_xy
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\core.py", line 200, in obspy.io.sac.core._read_sac_xy
Failed example:
st = read("/path/to/testxy.sac")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.core._read_sac_xy[1]>", line 1, in <module>
st = read("/path/to/testxy.sac")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\testxy.sac
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._write_sac
File "f:\F\同济\obspy-master\obspy\io\sac\core.py", line 391, in _write_sac
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\core.py", line 416, in obspy.io.sac.core._write_sac
Failed example:
st = read()
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.core._write_sac[1]>", line 1, in <module>
st = read()
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._write_sac_xy
File "f:\F\同济\obspy-master\obspy\io\sac\core.py", line 247, in _write_sac_xy
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\core.py", line 268, in obspy.io.sac.core._write_sac_xy
Failed example:
st = read()
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.core._write_sac_xy[1]>", line 1, in <module>
st = read()
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace
File "f:\F\同济\obspy-master\obspy\io\sac\sactrace.py", line 1, in sactrace
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\sactrace.py", line 271, in obspy.io.sac.sactrace
Failed example:
tr = read()[0]
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.sactrace[17]>", line 1, in <module>
tr = read()[0]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\sactrace.py", line 272, in obspy.io.sac.sactrace
Failed example:
print(tr.stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.sactrace[18]>", line 1, in <module>
print(tr.stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'tr' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\sactrace.py", line 289, in obspy.io.sac.sactrace
Failed example:
sac = SACTrace.from_obspy_trace(tr)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.sactrace[19]>", line 1, in <module>
sac = SACTrace.from_obspy_trace(tr)
NameError: name 'tr' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\sactrace.py", line 290, in obspy.io.sac.sactrace
Failed example:
print(sac) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Expected:
Reference Time = 08/24/2009 (236) 00:20:03.000000
iztype IB: begin time
b = 0.0
delta = 0.009999999...
e = 29.989999...
iftype = itime
iztype = ib
kcmpnm = EHZ
knetwk = BW
kstnm = RJOB
lcalda = False
leven = True
lovrok = True
lpspol = True
npts = 3000
nvhdr = 6
nzhour = 0
nzjday = 236
nzmin = 20
nzmsec = 0
nzsec = 3
nzyear = 2009
scale = 1.0
Got:
Reference Time = 01/01/1970 (001) 00:00:00.000000
iztype IB: begin time
b = 0.0
delta = 1.0
e = 0.0
iftype = itime
internal0 = 2.0
iztype = ib
lcalda = False
leven = True
lovrok = True
lpspol = True
npts = 0
nvhdr = 6
nzhour = 0
nzjday = 1
nzmin = 0
nzmsec = 0
nzsec = 0
nzyear = 1970
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\sactrace.py", line 316, in obspy.io.sac.sactrace
Failed example:
print(tr2.stats) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Expected:
network: BW
station: RJOB
location:
channel: EHZ
starttime: 2009-08-24T00:20:03.000000Z
endtime: 2009-08-24T00:20:32.990000Z
sampling_rate: 100.0
delta: 0.01
npts: 3000
calib: 1.0
sac: AttribDict(...)
Got:
network:
station:
location:
channel:
starttime: 1970-01-01T00:00:00.000000Z
endtime: 1970-01-01T00:00:00.000000Z
sampling_rate: 1.0
delta: 1.0
npts: 0
calib: 1.0
sac: AttribDict({'delta': 1.0, 'b': 0.0, 'e': 0.0, 'internal0': 2.0, 'nzyear': 1970, 'nzjday': 1, 'nzhour': 0, 'nzmin': 0, 'nzsec': 0, 'nzmsec': 0, 'nvhdr': 6, 'npts': 0, 'iftype': 1, 'iztype': 9, 'leven': 1, 'lpspol': 1, 'lovrok': 1, 'lcalda': 0})
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.read
File "f:\F\同济\obspy-master\obspy\io\sac\sactrace.py", line 1034, in read
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sac\sactrace.py", line 1072, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
sac.data # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Expected:
array([ -8.74227766e-08, -3.09016973e-01, -5.87785363e-01,
-8.09017122e-01, -9.51056600e-01, -1.00000000e+00,
-9.51056302e-01, -8.09016585e-01, -5.87784529e-01,
...
8.09022486e-01, 9.51059461e-01, 1.00000000e+00,
9.51053500e-01, 8.09011161e-01, 5.87777138e-01,
3.09007347e-01], dtype=float32)
Got:
array([-8.74227766e-08, -3.09016973e-01, -5.87785363e-01, -8.09017122e-01,
-9.51056600e-01, -1.00000000e+00, -9.51056302e-01, -8.09016585e-01,
-5.87784529e-01, -3.09016049e-01, 1.12851990e-06, 3.09018195e-01,
5.87786376e-01, 8.09017897e-01, 9.51057017e-01, 1.00000000e+00,
9.51056063e-01, 8.09016109e-01, 5.87783873e-01, 3.09015274e-01,
-1.93119831e-06, -3.09018940e-01, -5.87787032e-01, -8.09018373e-01,
-9.51057255e-01, -1.00000000e+00, -9.51055706e-01, -8.09015334e-01,
-5.87782860e-01, -3.09014052e-01, 3.21071411e-06, 3.09020162e-01,
5.87788045e-01, 8.09019089e-01, 9.51057673e-01, 1.00000000e+00,
9.51055288e-01, 8.09014559e-01, 5.87781847e-01, 3.09012860e-01,
-4.49022991e-06, -3.09021384e-01, -5.87789118e-01, -8.09019864e-01,
-9.51058090e-01, -1.00000000e+00, -9.51054871e-01, -8.09013844e-01,
-5.87780774e-01, -3.09011638e-01, 5.76974526e-06, 3.09022605e-01,
5.87790132e-01, 8.09020638e-01, 9.51058447e-01, 1.00000000e+00,
9.51054513e-01, 8.09013069e-01, 5.87779760e-01, 3.09010416e-01,
-7.04926106e-06, -3.09023827e-01, -5.87791145e-01, -8.09021354e-01,
-9.51058865e-01, -1.00000000e+00, -9.51054096e-01, -8.09012353e-01,
-5.87778747e-01, -3.09009194e-01, 8.32877686e-06, 3.09025049e-01,
5.87792218e-01, 8.09022129e-01, 9.51059222e-01, 1.00000000e+00,
9.51053679e-01, 8.09011579e-01, 5.87777674e-01, 3.09007972e-01,
-9.60829220e-06, -3.09026241e-01, -5.87793231e-01, -8.09022844e-01,
-9.51059639e-01, -1.00000000e+00, -9.51053321e-01, -8.09010804e-01,
-5.87776661e-01, -3.09006751e-01, 1.08878085e-05, 3.09027463e-01,
5.87792754e-01, 8.09022486e-01, 9.51059461e-01, 1.00000000e+00,
9.51053500e-01, 8.09011161e-01, 5.87777138e-01, 3.09007347e-01],
dtype=float32)
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.__init__
File "f:\F\同济\obspy-master\obspy\io\sac\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sac\tests\data\test.sac
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.__init__[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.__init__[3]>", line 1, in <module>
print(st) #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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
0.0.0+archive0.042879581451416016True40Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BytesIO object at 0x00000271D3C83410>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\scardec\tests\test_core.py", line 117, in test_read_and_write_scardec_from_bytes_io
cat = obspy.read_events(buf)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-j5yvrako.tmp
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\scardec\tests\test_core.py", line 43, in test_read_and_write_scardec_from_files
cat = obspy.read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\scardec\tests\data\test.scardec
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 808, in read_events
catalog = _read(pathname_or_url, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 149, in uncompress_file
return func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file <_io.BufferedReader name='f:\\F\\同济\\obspy-master\\obspy\\io\\scardec\\tests\\data\\test.scardec'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\scardec\tests\test_core.py", line 82, in test_read_and_write_scardec_from_open_files
cat = obspy.read_events(fh)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 815, in read_events
catalog = _read(fh.name, format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-nvut8w6l.tmp
0.0.0+archive0.020944833755493164True10Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 201, in uncompress_file
stream = func(tempfile.name, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file C:\Users\chens\AppData\Local\Temp\obspy-aktva0qm.tmp
0.0.0+archive0True10>>> Cannot import test suite for module obspy.io.segy due to:
-------------------------------------------------------------
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\ptvsd_launcher.py", line 45, in <module>
main(ptvsdArgs)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 391, in main
run()
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 272, in run_file
runpy.run_path(target, run_name='__main__')
File "D:\Program Files\Anaconda3\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "f:\F\同济\obspy-master\runtests.py", line 22, in <module>
main(argv=sys.argv[1:])
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 780, in main
errors = run(argv, interactive)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 748, in run
pr_url=args.pr_url)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 576, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 178, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "D:\Program Files\Anaconda3\lib\unittest\loader.py", line 205, in loadTestsFromName
test = obj()
File "f:\F\同济\obspy-master\obspy\io\segy\tests\__init__.py", line 36, in suite
add_doctests(suite, MODULE_NAME)
File "f:\F\同济\obspy-master\obspy\core\util\testing.py", line 120, in add_doctests
fromlist=[native_str("obspy")])
File "f:\F\同济\obspy-master\obspy\io\segy\core.py", line 23, in <module>
from .header import (BINARY_FILE_HEADER_FORMAT, DATA_SAMPLE_FORMAT_CODE_DTYPE,
File "f:\F\同济\obspy-master\obspy\io\segy\header.py", line 12, in <module>
from . import pack, unpack
File "f:\F\同济\obspy-master\obspy\io\segy\unpack.py", line 26, in <module>
from .util import clibsegy
File "f:\F\同济\obspy-master\obspy\io\segy\util.py", line 12, in <module>
clibsegy = _load_cdll("segy")
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 97, in _load_cdll
raise ImportError(msg)
ImportError: Could not load shared library "libsegy_Windows_64bit_py37.cp37-win_amd64.pyd".
[WinError 126] 找不到指定的模块。
0.0.0+archive0.2932150363922119True80Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SEISAN'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seisan\tests\test_core.py", line 114, in test_read_seisan_vs_reference
st = read(_file, format='SEISAN')
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SEISAN" is not supported. Supported types:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seisan.core._read_seisan
File "f:\F\同济\obspy-master\obspy\io\seisan\core.py", line 117, in _read_seisan
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\seisan\tests\data\2001-01-13-1742-24S.KONO__004
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seisan.__init__
File "f:\F\同济\obspy-master\obspy\io\seisan\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\seisan\tests\data\2001-01-13-1742-24S.KONO__004
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.seisan.__init__[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.seisan.__init__[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.seisan.__init__[5]>", line 1, in <module>
print(st[0].data)
NameError: name 'st' is not defined
0.0.0+archive0.24235248565673828True180Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 87, in test_arrival
self.cmp_file('quakeml_1.2_arrival.xml', 'quakeml_1.2_arrival.sc3ml')
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 84, in test_data_used_in_moment_tensor
'quakeml_1.2_data_used.sc3ml', validate=False)
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 58, in test_event
self.cmp_file('quakeml_1.2_event.xml', 'quakeml_1.2_event.sc3ml')
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 116, in test_example
self.cmp_file('qml-example-1.2-RC3.xml', 'qml-example-1.2-RC3.sc3ml')
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 94, in test_focalmechanism
'quakeml_1.2_focalmechanism.sc3ml')
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 97, in test_iris_events
self.cmp_file('iris_events.xml', 'iris_events.sc3ml')
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 67, in test_magnitude
path=self.path)
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 108, in test_neries_events
verbose=True)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 61, in test_origin
self.cmp_file('quakeml_1.2_origin.xml', 'quakeml_1.2_origin.sc3ml')
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 90, in test_pick
self.cmp_file('quakeml_1.2_pick.xml', 'quakeml_1.2_pick.sc3ml')
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 121, in test_remove_events
event_removal=True)
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 79, in test_station_magnitude
path=self.path)
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 73, in test_station_magnitude_contribution
path=self.path)
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 113, in test_usgs_events
self.cmp_file('usgs_event.xml', 'usgs_event.sc3ml')
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_event.py", line 53, in cmp_file
verbose=True, event_removal=event_removal)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 494, in write
format_ep = EVENT_ENTRY_POINTS_WRITE[format]
KeyError: 'SC3ML'
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_sc3ml.py", line 43, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_sc3ml.py", line 43, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_sc3ml.py", line 43, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\seiscomp\tests\test_sc3ml.py", line 43, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
0.0.0+archive0.6153547763824463True190Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sh\tests\test_core.py", line 293, in test_header_whitespaces
tr = read()[0]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'SH_ASC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sh\tests\test_core.py", line 149, in test_read_and_write_multi_channel_asc_file_via_obspy
stream1 = read(origfile, format="SH_ASC")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "SH_ASC" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'Q'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "Q" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sh\tests\test_core.py", line 278, in test_write_long_header
tr = read()[0]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 204, in read
st = _create_example_stream(headonly=headonly)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 318, in _create_example_stream
inv = read_inventory(os.path.join(data_dir, "BW_RJOB.xml"))
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\data\BW_RJOB.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1430, in write
format_ep = ENTRY_POINTS['waveform_write'][format]
KeyError: 'SH_ASC'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\sh\tests\test_core.py", line 262, in test_write_small_trace
tr.write(tempfile, format=format)
File "f:\F\同济\obspy-master\obspy\core\trace.py", line 947, in write
Stream([self]).write(filename, format, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 1438, in write
', '.join(ENTRY_POINTS['waveform_write'])))
TypeError: Writing format "SH_ASC" is not supported. Supported types:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sh.core._read_asc
File "f:\F\同济\obspy-master\obspy\io\sh\core.py", line 96, in _read_asc
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\core.py", line 124, in obspy.io.sh.core._read_asc
Failed example:
st = read("/path/to/QFILE-TEST-ASC.ASC")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sh.core._read_asc[1]>", line 1, in <module>
st = read("/path/to/QFILE-TEST-ASC.ASC")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sh\tests\data\QFILE-TEST-ASC.ASC
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\core.py", line 125, in obspy.io.sh.core._read_asc
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sh.core._read_asc[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\core.py", line 127, in obspy.io.sh.core._read_asc
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sh.core._read_asc[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sh.core._read_q
File "f:\F\同济\obspy-master\obspy\io\sh\core.py", line 326, in _read_q
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\core.py", line 367, in obspy.io.sh.core._read_q
Failed example:
st = read("/path/to/QFILE-TEST.QHD")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sh\tests\data\QFILE-TEST.QHD
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\core.py", line 368, in obspy.io.sh.core._read_q
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\io\sh\core.py", line 370, in obspy.io.sh.core._read_q
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sh.__init__
File "f:\F\同济\obspy-master\obspy\io\sh\__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\__init__.py", line 23, in obspy.io.sh.__init__
Failed example:
st = read("/path/to/QFILE-TEST-ASC.ASC")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sh.__init__[1]>", line 1, in <module>
st = read("/path/to/QFILE-TEST-ASC.ASC")
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\sh\tests\data\QFILE-TEST-ASC.ASC
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\__init__.py", line 24, in obspy.io.sh.__init__
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sh.__init__[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\__init__.py", line 26, in obspy.io.sh.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sh.__init__[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\__init__.py", line 36, in obspy.io.sh.__init__
Failed example:
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sh.__init__[4]>", line 1, in <module>
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\__init__.py", line 50, in obspy.io.sh.__init__
Failed example:
print(st[0].stats.sh['COMMENT'])
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sh.__init__[5]>", line 1, in <module>
print(st[0].stats.sh['COMMENT'])
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\sh\__init__.py", line 55, in obspy.io.sh.__init__
Failed example:
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sh.__init__[6]>", line 1, in <module>
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
0.0.0+archive0.04687356948852539True54Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.shapefile.__init__
File "f:\F\同济\obspy-master\obspy\io\shapefile\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\shapefile\__init__.py", line 12, in obspy.io.shapefile.__init__
Failed example:
inv = read_inventory() # load example data
Exception raised:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.shapefile.__init__[1]>", line 1, in <module>
inv = read_inventory() # load example data
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 68, in read_inventory
return _create_example_inventory()
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 46, in _create_example_inventory
return read_inventory(path, format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\shapefile\__init__.py", line 14, in obspy.io.shapefile.__init__
Failed example:
cat = read_events() # load example data
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.shapefile.__init__[3]>", line 1, in <module>
cat = read_events() # load example data
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 803, in read_events
return _create_example_catalog()
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 864, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\core\tests\data\neries_events.xml
0.0.0+archive0.16954660415649414True110Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationtxt\tests\test_station_text_parsing.py", line 631, in test_parsing_faulty_header_at_channel_level
inv_obs_good = obspy.read_inventory(good_file)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationtxt\tests\data\channel_level_fdsn.txt
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationtxt\tests\test_station_text_parsing.py", line 660, in test_parsing_files_with_no_endtime
inv_obs_a = obspy.read_inventory(file_a)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationtxt\tests\data\network_level_fdsn.txt
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationtxt\tests\test_station_text_parsing.py", line 858, in test_read_write_stationtxt
inv_obs = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationtxt\tests\data\network_level_fdsn.txt
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationtxt\tests\test_station_text_parsing.py", line 408, in test_reading_channel_file
inv_obs = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationtxt\tests\data\channel_level_fdsn.txt
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationtxt\tests\test_station_text_parsing.py", line 568, in test_reading_channel_without_response_info
inv_obs = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationtxt\tests\data\log_channel_fdsn.txt
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationtxt\tests\test_station_text_parsing.py", line 120, in test_reading_network_file
inv_obs = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationtxt\tests\data\network_level_fdsn.txt
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationtxt\tests\test_station_text_parsing.py", line 205, in test_reading_station_file
inv_obs = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationtxt\tests\data\station_level_fdsn.txt
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationtxt\tests\test_station_text_parsing.py", line 478, in test_reading_unicode_file
inv_obs = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationtxt\tests\data\unicode_example_fdsn.txt
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 268, in write
format_ep = ENTRY_POINTS['inventory_write'][format]
KeyError: 'STATIONTXT'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationtxt\tests\test_station_text_parsing.py", line 782, in test_write_stationtxt
test_inv.write(stio, format="STATIONTXT", level="CHANNEL")
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 276, in write
', '.join(ENTRY_POINTS['inventory_write'])))
TypeError: Writing format "STATIONTXT" is not supported. Supported types:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.stationtxt.__init__
File "f:\F\同济\obspy-master\obspy\io\stationtxt\__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\stationtxt\__init__.py", line 24, in obspy.io.stationtxt.__init__
Failed example:
inv = obspy.read_inventory("/path/to/channel_level_fdsn.txt")
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.stationtxt.__init__[1]>", line 1, in <module>
inv = obspy.read_inventory("/path/to/channel_level_fdsn.txt")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationtxt\tests\data\channel_level_fdsn.txt
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\stationtxt\__init__.py", line 25, in obspy.io.stationtxt.__init__
Failed example:
print(inv) # # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.stationtxt.__init__[2]>", line 1, in <module>
print(inv) # # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'inv' is not defined
0.0.0+archive0.08975887298583984True170Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 679, in test_numbers_are_written_to_poles_and_zeros
inv = obspy.read_inventory()
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 68, in read_inventory
return _create_example_inventory()
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 46, in _create_example_inventory
return read_inventory(path, format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 652, in test_parse_file_with_no_default_namespace
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\no_default_namespace.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 665, in test_parse_file_with_schema_2
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\version20.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 153, in test_read_and_write_full_file
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\full_random_stationxml.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 100, in test_read_and_write_minimal_file
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\minimal_station.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 558, in test_reading_and_writing_channel_with_response
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\IRIS_single_channel_with_response.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 238, in test_reading_and_writing_full_network_tag
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\full_network_field_station.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 209, in test_reading_and_writing_full_root_tag
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\minimal_with_non_obspy_module_and_sender_tags_station.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 323, in test_reading_and_writing_full_station_tag
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\full_station_field_station.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 198, in test_reading_other_module_tags
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\minimal_with_non_obspy_module_and_sender_tags_station.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 625, in test_stationxml_with_availability
inv = obspy.read_inventory(filename, format="stationxml")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 130, in test_subsecond_read_and_write_minimal_file
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\minimal_station_with_microseconds.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 850, in test_write_with_extra_tags_and_read
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\IRIS_single_channel_with_response_custom_tags.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 719, in test_write_with_extra_tags_namespace_redef
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\stationxml\tests\data\stationxml_with_availability.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 740, in test_write_with_extra_tags_without_read_extra
inv = obspy.read_inventory()
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 68, in read_inventory
return _create_example_inventory()
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 46, in _create_example_inventory
return read_inventory(path, format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 79, in read_inventory
format=format)[0]
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "STATIONXML" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 268, in write
format_ep = ENTRY_POINTS['inventory_write'][format]
KeyError: 'STATIONXML'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\stationxml\tests\test_stationxml.py", line 178, in test_writing_module_tags
inv.write(file_buffer, format="StationXML", validate=True)
File "f:\F\同济\obspy-master\obspy\core\inventory\inventory.py", line 276, in write
', '.join(ENTRY_POINTS['inventory_write'])))
TypeError: Writing format "STATIONXML" is not supported. Supported types:
0.0.0+archive0.20844411849975586True80Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'WAV'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "WAV" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\wav\tests\test_core.py", line 56, in test_read_head_via_obspy
tr = read(self.file, headonly=True)[0]
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\wav\tests\data\3cssan.near.8.1.RNON.wav
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\wav\tests\data\3cssan.near.8.1.RNON.wav
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'WAV'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "WAV" is not supported. Supported types:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 395, in _read_from_plugin
format_ep = eps[format]
KeyError: 'WAV'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 398, in _read_from_plugin
raise TypeError(msg % (format, ', '.join(eps)))
TypeError: Format "WAV" is not supported. Supported types:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.wav.core._read_wav
File "f:\F\同济\obspy-master\obspy\io\wav\core.py", line 69, in _read_wav
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\wav\core.py", line 88, 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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\wav\tests\data\3cssan.near.8.1.RNON.wav
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\wav\core.py", line 89, in obspy.io.wav.core._read_wav
Failed example:
print(st) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.wav.__init__
File "f:\F\同济\obspy-master\obspy\io\wav\__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\wav\tests\data\3cssan.near.8.1.RNON.wav
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.wav.__init__[4]>", line 1, in <module>
st[0].data
NameError: name 'st' is not defined
0.0.0+archive0.07679414749145508True20Traceback (most recent call last):
File "f:\F\同济\obspy-master\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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\win\tests\data\10030302.00
0.0.0+archive3.9125349521636963True460Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\xseed\tests\test_parser.py", line 687, in test_rotation_to_zne
"II_COCO_three_channel_borehole.mseed"))
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\xseed\tests\data\II_COCO_three_channel_borehole.mseed
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\xseed\tests\test_scripts.py", line 36, in test_dataless2resp
obspy_dataless2resp([self.dataless_file])
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\dataless2resp.py", line 70, in main
dataless2resp(args.files, args)
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\dataless2resp.py", line 25, in dataless2resp
sys.stdout.write(msg)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_io.py", line 40, in write
r.write(s)
OSError: [WinError 6] 句柄无效。
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\xseed\tests\test_scripts.py", line 53, in test_dataless2resp_zipped
obspy_dataless2resp(['--zipped', self.dataless_file])
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\dataless2resp.py", line 70, in main
dataless2resp(args.files, args)
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\dataless2resp.py", line 25, in dataless2resp
sys.stdout.write(msg)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_io.py", line 40, in write
r.write(s)
OSError: [WinError 6] 句柄无效。
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\xseed\tests\test_scripts.py", line 78, in test_dataless2xseed
obspy_dataless2xseed([self.dataless_file])
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\dataless2xseed.py", line 92, in main
dataless2xseed(args.files, args)
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\dataless2xseed.py", line 36, in dataless2xseed
sys.stdout.write(msg)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_io.py", line 40, in write
r.write(s)
OSError: [WinError 6] 句柄无效。
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\xseed\tests\test_scripts.py", line 101, in test_dataless2xseed_split
dataless_multi_file])
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\dataless2xseed.py", line 92, in main
dataless2xseed(args.files, args)
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\dataless2xseed.py", line 36, in dataless2xseed
sys.stdout.write(msg)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_io.py", line 40, in write
r.write(s)
OSError: [WinError 6] 句柄无效。
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\xseed\tests\test_scripts.py", line 124, in test_xseed2dataless
obspy_xseed2dataless(['--output', tf.name, self.xseed_file])
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\xseed2dataless.py", line 85, in main
xseed2dataless(args.files, args)
File "f:\F\同济\obspy-master\obspy\io\xseed\scripts\xseed2dataless.py", line 36, in xseed2dataless
sys.stdout.write(msg)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_io.py", line 40, in write
r.write(s)
OSError: [WinError 6] 句柄无效。
0.0.0+archive0.185502290725708True50Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.y.core._read_y
File "f:\F\同济\obspy-master\obspy\io\y\core.py", line 134, in _read_y
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\y\tests\data\YAYT_BHZ_20021223.124800
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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 "f:\F\同济\obspy-master\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 "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), 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
0.0.0+archive0.23935914039611816True140Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\io\zmap\tests\test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\neries_events.xml
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 2198, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.zmap.__init__
File "f:\F\同济\obspy-master\obspy\io\zmap\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\zmap\__init__.py", line 22, in obspy.io.zmap.__init__
Failed example:
cat = read_events('/path/to/zmap_events.txt')
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.zmap.__init__[1]>", line 1, in <module>
cat = read_events('/path/to/zmap_events.txt')
File "<decorator-gen-42>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 332, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 840, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\event\catalog.py", line 854, in _read
**kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\io\zmap\tests\data\zmap_events.txt
----------------------------------------------------------------------
File "f:\F\同济\obspy-master\obspy\io\zmap\__init__.py", line 23, in obspy.io.zmap.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.zmap.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
0.0.0+archive0True10>>> Cannot import test suite for module obspy.realtime due to:
--------------------------------------------------------------
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\ptvsd_launcher.py", line 45, in <module>
main(ptvsdArgs)
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 391, in main
run()
File "c:\Users\chens\.vscode\extensions\ms-python.python-2019.3.6558\pythonFiles\lib\python\ptvsd\__main__.py", line 272, in run_file
runpy.run_path(target, run_name='__main__')
File "D:\Program Files\Anaconda3\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "D:\Program Files\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "f:\F\同济\obspy-master\runtests.py", line 22, in <module>
main(argv=sys.argv[1:])
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 780, in main
errors = run(argv, interactive)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 748, in run
pr_url=args.pr_url)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 576, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "f:\F\同济\obspy-master\obspy\scripts\runtests.py", line 178, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "D:\Program Files\Anaconda3\lib\unittest\loader.py", line 205, in loadTestsFromName
test = obj()
File "f:\F\同济\obspy-master\obspy\realtime\tests\__init__.py", line 17, in suite
add_unittests(suite, MODULE_NAME)
File "f:\F\同济\obspy-master\obspy\core\util\testing.py", line 71, in add_unittests
fromlist=[native_str("obspy")])
File "f:\F\同济\obspy-master\obspy\realtime\tests\test_rttrace.py", line 19, in <module>
import obspy.signal.filter
File "f:\F\同济\obspy-master\obspy\signal\__init__.py", line 201, in <module>
from .spectral_estimation import PPSD
File "f:\F\同济\obspy-master\obspy\signal\spectral_estimation.py", line 45, in <module>
from obspy.signal.invsim import cosine_taper
File "f:\F\同济\obspy-master\obspy\signal\invsim.py", line 38, in <module>
from obspy.signal import util
File "f:\F\同济\obspy-master\obspy\signal\util.py", line 24, in <module>
from obspy.signal.headers import clibsignal
File "f:\F\同济\obspy-master\obspy\signal\headers.py", line 18, in <module>
clibsignal = _load_cdll("signal")
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 97, in _load_cdll
raise ImportError(msg)
ImportError: Could not load shared library "libsignal_Windows_64bit_py37.cp37-win_amd64.pyd".
[WinError 126] 找不到指定的模块。
0.0.0+archive0.02792954444885254True20Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\scripts\tests\test_print.py", line 23, in test_print
obspy_print(self.all_files)
File "f:\F\同济\obspy-master\obspy\scripts\print.py", line 35, in main
st += read(f, format=args.format)
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\scripts\tests\..\..\io\ascii\tests\data\slist.ascii
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\scripts\tests\test_print.py", line 34, in test_print_nomerge
obspy_print(['--no-merge'] + self.all_files)
File "f:\F\同济\obspy-master\obspy\scripts\print.py", line 35, in main
st += read(f, format=args.format)
File "<decorator-gen-31>", line 2, in read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 299, in _map_example_filename
return func(*args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 231, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "f:\F\同济\obspy-master\obspy\core\util\decorator.py", line 209, in uncompress_file
result = func(filename, *args, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\stream.py", line 273, in _read
headonly=headonly, **kwargs)
File "f:\F\同济\obspy-master\obspy\core\util\base.py", line 390, in _read_from_plugin
raise TypeError('Unknown format for file %s' % filename)
TypeError: Unknown format for file f:\F\同济\obspy-master\obspy\scripts\tests\..\..\io\ascii\tests\data\slist.ascii
0.0.0+archive0.000997781753540039True10ImportError: Failed to import test module: signal
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 94, in _load_cdll
cdll = ctypes.CDLL(str(libpath))
File "D:\Program Files\Anaconda3\lib\ctypes\__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\unittest\loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
File "f:\F\同济\obspy-master\obspy\signal\__init__.py", line 201, in <module>
from .spectral_estimation import PPSD
File "f:\F\同济\obspy-master\obspy\signal\spectral_estimation.py", line 45, in <module>
from obspy.signal.invsim import cosine_taper
File "f:\F\同济\obspy-master\obspy\signal\invsim.py", line 38, in <module>
from obspy.signal import util
File "f:\F\同济\obspy-master\obspy\signal\util.py", line 24, in <module>
from obspy.signal.headers import clibsignal
File "f:\F\同济\obspy-master\obspy\signal\headers.py", line 18, in <module>
clibsignal = _load_cdll("signal")
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 97, in _load_cdll
raise ImportError(msg)
ImportError: Could not load shared library "libsignal_Windows_64bit_py37.cp37-win_amd64.pyd".
[WinError 126] 找不到指定的模块。
0.0.0+archive0.00199127197265625True10ImportError: Failed to import test module: taup
Traceback (most recent call last):
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 94, in _load_cdll
cdll = ctypes.CDLL(str(libpath))
File "D:\Program Files\Anaconda3\lib\ctypes\__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files\Anaconda3\lib\unittest\loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
File "f:\F\同济\obspy-master\obspy\taup\__init__.py", line 385, in <module>
from .tau import TauPyModel # NOQA
File "f:\F\同济\obspy-master\obspy\taup\tau.py", line 19, in <module>
from .tau_model import TauModel
File "f:\F\同济\obspy-master\obspy\taup\tau_model.py", line 20, in <module>
from .slowness_model import SlownessModel
File "f:\F\同济\obspy-master\obspy\taup\slowness_model.py", line 18, in <module>
from .slowness_layer import (bullen_depth_for,
File "f:\F\同济\obspy-master\obspy\taup\slowness_layer.py", line 14, in <module>
from .c_wrappers import clibtau
File "f:\F\同济\obspy-master\obspy\taup\c_wrappers.py", line 17, in <module>
clibtau = _load_cdll("tau")
File "f:\F\同济\obspy-master\obspy\core\util\libnames.py", line 97, in _load_cdll
raise ImportError(msg)
ImportError: Could not load shared library "libtau_Windows_64bit_py37.cp37-win_amd64.pyd".
[WinError 126] 找不到指定的模块。
0.17.11.15.41.1.03.0.24.2.540.6.31.2.154.3.02.21.0------------------------2.0.0------Windows1010.0.17134AMD64Intel64 Family 6 Model 78 Stepping 3, GenuineIntel3.7.1CPythonMSC v.1915 64 bit (AMD64)64bitDESKTOP-J3SQ9R048723507[('geodetics', 'obspy.geodetics.tests.test_util_geodetics', 'UtilGeodeticsTestCase', 'test_gps_2_dist_azimuth_with_geographiclib', 'Module geographiclib is not installed'), ('geodetics', 'obspy.geodetics.tests.test_util_geodetics', 'UtilGeodeticsTestCase', 'test_issue_375', 'Module geographiclib is not installed'), ('io.nlloc', 'obspy.io.nlloc.tests.test_util', 'NLLOCTestCase', 'test_read_nlloc_scatter_coordinate_conversion', 'pyproj not installed'), ('io.shapefile', 'obspy.io.shapefile.tests.test_core', 'ShapefileTestCase', 'test_write_catalog_shapefile', 'gdal not installed or version is too old'), ('io.shapefile', 'obspy.io.shapefile.tests.test_core', 'ShapefileTestCase', 'test_write_catalog_shapefile_via_plugin', 'gdal not installed or version is too old'), ('io.shapefile', 'obspy.io.shapefile.tests.test_core', 'ShapefileTestCase', 'test_write_inventory_shapefile', 'gdal not installed or version is too old'), ('io.shapefile', 'obspy.io.shapefile.tests.test_core', 'ShapefileTestCase', 'test_write_inventory_shapefile_via_plugin', 'gdal not installed or version is too old')]