#91362 Report by node appveyor-ci covering 1451 tests from 45 modules resulted into 540 errors

Report

ObsPy Version
1.1.0.post0+11427.g043eaaede9
Continuous Integration
https://ci.appveyor.com/project/obspy/obspy/build/1.0.5636-maintenance_1.1.x
GitHub Pull Request
https://github.com/obspy/obspy/pull/1766
Report File
XML Document
Total Runtime
137.1 sec
Report Date/Time
2018-01-10 22:55:34

System / Python

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

Dependencies

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

Modules (45)

Module Errors /
Failures
Tracebacks
obspy.clients.arclink Not tested -
obspy.clients.earthworm Not tested -
obspy.clients.fdsn Not tested -
obspy.clients.filesystem 4 1 2 3 4
obspy.clients.iris Not tested -
obspy.clients.neic Not tested -
obspy.clients.nrl Not tested -
obspy.clients.seedlink Not tested -
obspy.clients.seishub Not tested -
obspy.clients.syngine Not tested -
obspy.core 229 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
obspy.db 3 234 235 236
obspy.geodetics - -
obspy.imaging 1 237
obspy.io.ah 3 238 239 240
obspy.io.arclink 1 241
obspy.io.ascii 15 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
obspy.io.cmtsolution 7 257 258 259 260 261 262 263
obspy.io.cnv 1 264
obspy.io.css 4 265 266 267 268
obspy.io.gcf 9 269 270 271 272 273 274 275 276 277
obspy.io.gse2 29 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
obspy.io.iaspei 4 307 308 309 310
obspy.io.json 2 311 312
obspy.io.kinemetrics 5 313 314 315 316 317
obspy.io.kml 2 318 319
obspy.io.mseed 38 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
obspy.io.ndk 11 358 359 360 361 362 363 364 365 366 367 368
obspy.io.nied 4 369 370 371 372
obspy.io.nlloc 4 373 374 375 376
obspy.io.nordic 9 377 378 379 380 381 382 383 384 385
obspy.io.pdas 1 386
obspy.io.pde 12 387 388 389 390 391 392 393 394 395 396 397 398
obspy.io.quakeml 10 399 400 401 402 403 404 405 406 407 408
obspy.io.reftek 12 409 410 411 412 413 414 415 416 417 418 419 420
obspy.io.sac 34 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
obspy.io.scardec - -
obspy.io.seg2 1 455
obspy.io.segy 18 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473
obspy.io.seisan 3 474 475 476
obspy.io.seiscomp 3 477 478 479
obspy.io.sh 8 480 481 482 483 484 485 486 487
obspy.io.shapefile 2 488 489
obspy.io.stationtxt 7 490 491 492 493 494 495 496
obspy.io.stationxml 6 497 498 499 500 501 502
obspy.io.wav 2 503 504
obspy.io.win 2 505 506
obspy.io.xseed 14 507 508 509 510 511 512 513 514 515 516 517 518 519 520
obspy.io.y - -
obspy.io.zmap 10 521 522 523 524 525 526 527 528 529 530
obspy.realtime 7 531 532 533 534 535 536 537
obspy.scripts 2 538 539
obspy.signal 1 540
obspy.taup - -
Summary 540 540

Tracebacks (540)

Traceback (most recent call last):
File "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 "obspy\clients\filesystem\tests\test_sds.py", line 59, in __init__
tr1 = tr.slice(endtime=self.time + 5 * delta)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1142, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\clients\filesystem\tests\test_sds.py", line 110, in test_read_from_sds
with TemporarySDSDirectory(year=year, doy=doy) as temp_sds:
File "obspy\clients\filesystem\tests\test_sds.py", line 59, in __init__
tr1 = tr.slice(endtime=self.time + 5 * delta)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1142, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "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 "obspy\clients\filesystem\tests\test_sds.py", line 59, in __init__
tr1 = tr.slice(endtime=self.time + 5 * delta)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1142, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "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 "obspy\clients\filesystem\tests\test_sds.py", line 59, in __init__
tr1 = tr.slice(endtime=self.time + 5 * delta)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1142, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 324, in test_sub_with_negative_time_stamp
self.assertAlmostEqual(end - start, -1000.5)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 442, in test_sub_add_float
self.assertAlmostEqual(got1 - got2, 0.0)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 579, in test_lt
self.assertFalse(UTCDateTime(999) < UTCDateTime(999))
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 615, in test_le
self.assertLessEqual(UTCDateTime(999), UTCDateTime(999))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 934, in assertLessEqual
if not a <= b:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 995, in test_now
self.assertGreaterEqual(UTCDateTime.now(), dt)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 946, in assertGreaterEqual
if not a >= b:
File "obspy\core\utcdatetime.py", line 1172, in __ge__
return self._operate(other, operator.ge)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 554, in test_ne
self.assertFalse(UTCDateTime(999) != UTCDateTime(999))
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 820, in test_rich_comparision_numeric_objects
self.assertEqual(t1, t1_int)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 875, in test_rich_comparision_fuzzy
self.assertEqual(dt1 == dt2, False)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 302, in test_sub
self.assertAlmostEqual(end - start, 4.995)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 1032, in test_string_with_timezone
self.assertEqual(t, UTCDateTime(time_string))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 1285, in test_close_utc_are_equal
if utc1 == utc2:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.__eq__
File "obspy\core\utcdatetime.py", line 1012, in __eq__
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 1023, in obspy.core.utcdatetime.UTCDateTime.__eq__
Failed example:
t1 == t2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime.__eq__[2]>", line 1, in <module>
t1 == t2
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1063, in test_bugfix_merge_drop_trace_if_already_contained
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 188, in test_add_trace_to_stream
self.assertEqual(st1.__add__(tr), st0)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1094, in test_bugfix_merge_multiple_traces_2
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1078, in test_bugfix_merge_multiple_traces
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1479, in test_comparisons
self.assertEqual(st0 == st, True)
File "obspy\core\stream.py", line 600, in __eq__
if self_sorted.traces != other_sorted.traces:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1679, in test_cleanup
dt = end - start
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1290, in test_cpickle
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1857, in test_copy
self.assertEqual(st, st2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 308, in test_get_gaps
gap_list = stream.get_gaps()
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 479, in test_cutout
st_cut.cutout(t4, t4 + 10)
File "obspy\core\stream.py", line 1576, in cutout
tmp = self.slice(endtime=starttime, keep_empty_traces=False)
File "obspy\core\stream.py", line 1638, in slice
nearest_sample=nearest_sample)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1142, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.slice
File "obspy\core\trace.py", line 1152, in slice
----------------------------------------------------------------------
File "obspy\core\trace.py", line 1183, in obspy.core.trace.Trace.slice
Failed example:
tr2 = tr.slice(t + 2, t + 8)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.slice[3]>", line 1, in <module>
tr2 = tr.slice(t + 2, t + 8)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\trace.py", line 1184, in obspy.core.trace.Trace.slice
Failed example:
tr2.data
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.slice[4]>", line 1, in <module>
tr2.data
NameError: name 'tr2' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.slide
File "obspy\core\trace.py", line 1194, in slide
----------------------------------------------------------------------
File "obspy\core\trace.py", line 1208, in obspy.core.trace.Trace.slide
Failed example:
for windowed_tr in tr.slide(window_length=10.0, step=10.0):
print("---") # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
print(windowed_tr)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.slide[2]>", line 1, in <module>
for windowed_tr in tr.slide(window_length=10.0, step=10.0):
File "obspy\core\trace.py", line 1256, in slide
nearest_sample=nearest_sample)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.__ge__
File "obspy\core\utcdatetime.py", line 1147, in __ge__
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 1158, in obspy.core.utcdatetime.UTCDateTime.__ge__
Failed example:
t1 >= t2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime.__ge__[2]>", line 1, in <module>
t1 >= t2
File "obspy\core\utcdatetime.py", line 1172, in __ge__
return self._operate(other, operator.ge)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 282, in test_add
self.assertEqual(a + 1, UTCDateTime(1970, 1, 1, 0, 0, 1))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.slide
File "obspy\core\stream.py", line 1645, in slide
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1663, in obspy.core.stream.Stream.slide
Failed example:
for windowed_st in st.slide(window_length=10.0, step=10.0):
print(windowed_st)
print("---") # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.slide[2]>", line 1, in <module>
for windowed_st in st.slide(window_length=10.0, step=10.0):
File "obspy\core\stream.py", line 1703, in slide
starttime = min(tr.stats.starttime for tr in self)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.sort
File "obspy\core\stream.py", line 1329, in sort
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1358, in obspy.core.stream.Stream.sort
Failed example:
st.sort() # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.sort[3]>", line 1, in <module>
st.sort() # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1360, in obspy.core.stream.Stream.sort
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
3 Trace(s) in Stream:
BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples
BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples
BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples
Got:
3 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.std
File "obspy\core\stream.py", line 2471, in std
----------------------------------------------------------------------
File "obspy\core\stream.py", line 2487, in obspy.core.stream.Stream.std
Failed example:
st.std()
Expected:
[4.2614551505325036, 4.4348618918744247]
Got:
[4.261455150532504, 4.434861891874425]
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.trim
File "obspy\core\stream.py", line 1446, in trim
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1494, in obspy.core.stream.Stream.trim
Failed example:
st.trim(dt, dt + 5) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.trim[3]>", line 1, in <module>
st.trim(dt, dt + 5) # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1509, in trim
(starttime - tr.stats.starttime) * tr.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1496, in obspy.core.stream.Stream.trim
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
3 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:20.000000Z ... | 100.0 Hz, 501 samples
BW.RJOB..EHN | 2009-08-24T00:20:20.000000Z ... | 100.0 Hz, 501 samples
BW.RJOB..EHE | 2009-08-24T00:20:20.000000Z ... | 100.0 Hz, 501 samples
Got:
3 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 2723, in test_pickle
self.assertEqual(tr_orig, tr_pickled)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 2736, in test_pickle_soh
self.assertEqual(tr_orig, tr_pickled)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1193, in test_masked_array_to_string
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1638, in test_method_chaining
temp_tr = tr.trim(tr.stats.starttime + 1)\
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1455, in test_modulo_operation
self.assertEqual(tr, st[0])
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1128, in test_nearest_sample
tr._ltrim(t - 3, nearest_sample=True)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1972, in test_interpolation_time_shift
self.assertEqual(tr.stats.starttime, org_tr.stats.starttime + 0.2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1267, in test_issue_317
tr = tr.slice(tstart, tend)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1578, in test_issue_540
endtime=tr.stats.endtime + 0.01, pad=True, fill_value=None)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 114, in test_ltrim
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 901, in test_merge_gaps_2
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 996, in test_merge_overlaps_default_method
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2050, in test_issue_540
endtime=st[0].stats.endtime + 0.01, pad=True, fill_value=None)
File "obspy\core\stream.py", line 1509, in trim
(starttime - tr.stats.starttime) * tr.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 871, in test_merge_gaps
self.assertEqual(stream[0].stats.starttime, start)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2247, in test_integrate
self.assertEqual(st1, st2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2260, in test_integrate_args
self.assertEqual(st1, st2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1412, in test_get_gaps_2
tr1.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 346, in test_get_gaps_multiplexed_streams
self.assertEqual(len(st.get_gaps()), 0)
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.slice
File "obspy\core\stream.py", line 1582, in slice
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1626, in obspy.core.stream.Stream.slice
Failed example:
st = st.slice(dt, dt + 5)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.slice[3]>", line 1, in <module>
st = st.slice(dt, dt + 5)
File "obspy\core\stream.py", line 1638, in slice
nearest_sample=nearest_sample)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1627, in obspy.core.stream.Stream.slice
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
3 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:20.000000Z ... | 100.0 Hz, 501 samples
BW.RJOB..EHN | 2009-08-24T00:20:20.000000Z ... | 100.0 Hz, 501 samples
BW.RJOB..EHE | 2009-08-24T00:20:20.000000Z ... | 100.0 Hz, 501 samples
Got:
3 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.read
File "obspy\core\stream.py", line 1, in read
----------------------------------------------------------------------
File "obspy\core\stream.py", line 176, in obspy.core.stream.read
Failed example:
st = read("https://examples.obspy.org/loc_RJOB20050831023349.z",
starttime=dt, endtime=dt+10)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.read[25]>", line 2, in <module>
starttime=dt, endtime=dt+10)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 254, in read
st._ltrim(starttime, nearest_sample=nearest_sample)
File "obspy\core\stream.py", line 1530, in _ltrim
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 178, in obspy.core.stream.read
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
1 Trace(s) in Stream:
.RJOB..Z | 2005-08-31T02:34:00.000000Z - ... | 200.0 Hz, 2001 samples
Got:
1 Trace(s) in Stream:
.RJOB..Z | 2005-08-31T02:33:49.850000Z - 2005-08-31T02:34:49.845000Z | 200.0 Hz, 12000 samples
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.__mod__
File "obspy\core\trace.py", line 520, in __mod__
----------------------------------------------------------------------
File "obspy\core\trace.py", line 535, in obspy.core.trace.Trace.__mod__
Failed example:
st = tr % 800
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.__mod__[3]>", line 1, in <module>
st = tr % 800
File "obspy\core\trace.py", line 556, in __mod__
st.append(self.slice(tstart, tend).copy())
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\trace.py", line 536, in obspy.core.trace.Trace.__mod__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.__mod__[4]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1136, in test_merge_overlaps_method_1
st.merge(method=1)
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 803, in test_merge_with_different_calibration_factors
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.std
File "obspy\core\trace.py", line 1826, in std
----------------------------------------------------------------------
File "obspy\core\trace.py", line 1838, in obspy.core.trace.Trace.std
Failed example:
tr.std()
Expected:
4.2614551505325036
Got:
4.261455150532504
----------------------------------------------------------------------
File "obspy\core\trace.py", line 1841, in obspy.core.trace.Trace.std
Failed example:
tr.std()
Expected:
4.4348618918744247
Got:
4.434861891874425
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.__sub__
File "obspy\core\utcdatetime.py", line 932, in __sub__
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 951, in obspy.core.utcdatetime.UTCDateTime.__sub__
Failed example:
UTCDateTime(1970, 1, 2, 0, 0) - UTCDateTime(1970, 1, 1, 0, 0)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime.__sub__[3]>", line 1, in <module>
UTCDateTime(1970, 1, 2, 0, 0) - UTCDateTime(1970, 1, 1, 0, 0)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.__ne__
File "obspy\core\utcdatetime.py", line 1039, in __ne__
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 1050, in obspy.core.utcdatetime.UTCDateTime.__ne__
Failed example:
t1 != t2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime.__ne__[2]>", line 1, in <module>
t1 != t2
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 2033, in test_interpolation_arguments
self.assertEqual(tr.stats.starttime, interp_tr.stats.starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1897, in test_interpolate
self.assertLessEqual(int_tr.stats.endtime, org_tr.stats.endtime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 934, in assertLessEqual
if not a <= b:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1245, in test_integrate
self.assertEqual(tr.stats.starttime, UTCDateTime(0))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 2417, in test_dtype_is_not_unnecessarily_changed
self.assertEqual(tr_int32.copy().trim(1, 2).data.dtype, np.int32)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 96, in test_div
st = tr / 5
File "obspy\core\trace.py", line 512, in __div__
st.append(self.slice(tstart, tend).copy())
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1077, in test_comparisons
self.assertEqual(tr0 == tr1, True)
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1015, in test_add_with_different_sampling_rates
tr1 + tr3
File "obspy\core\trace.py", line 705, in __add__
if self.stats.starttime <= trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1039, in test_add_with_different_datatypes_or_id
tr1 + tr3
File "obspy\core\trace.py", line 705, in __add__
if self.stats.starttime <= trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 448, in test_add_trace_within_trace
trace = tr1 + tr2
File "obspy\core\trace.py", line 705, in __add__
if self.stats.starttime <= trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 404, in test_add_trace_with_overlap
trace = tr1 + tr2
File "obspy\core\trace.py", line 705, in __add__
if self.stats.starttime <= trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.get_gaps
File "obspy\core\stream.py", line 745, in get_gaps
----------------------------------------------------------------------
File "obspy\core\stream.py", line 768, in obspy.core.stream.Stream.get_gaps
Failed example:
st.get_gaps()
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.get_gaps[2]>", line 1, in <module>
st.get_gaps()
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 770, in obspy.core.stream.Stream.get_gaps
Failed example:
st.print_gaps() # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.get_gaps[3]>", line 1, in <module>
st.print_gaps() # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1261, in print_gaps
result = self.get_gaps(min_gap, max_gap)
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 779, in obspy.core.stream.Stream.get_gaps
Failed example:
st[0].trim(endtime=t) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.get_gaps[6]>", line 1, in <module>
st[0].trim(endtime=t) # doctest: +ELLIPSIS
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1142, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 781, in obspy.core.stream.Stream.get_gaps
Failed example:
tr.trim(starttime=t + 1) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.get_gaps[7]>", line 1, in <module>
tr.trim(starttime=t + 1) # doctest: +ELLIPSIS
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 788, in obspy.core.stream.Stream.get_gaps
Failed example:
st.print_gaps() # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.get_gaps[10]>", line 1, in <module>
st.print_gaps() # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1261, in print_gaps
result = self.get_gaps(min_gap, max_gap)
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.cutout
File "obspy\core\stream.py", line 1546, in cutout
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1565, in obspy.core.stream.Stream.cutout
Failed example:
st.cutout(t1, t2) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.cutout[4]>", line 1, in <module>
st.cutout(t1, t2) # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1576, in cutout
tmp = self.slice(endtime=starttime, keep_empty_traces=False)
File "obspy\core\stream.py", line 1638, in slice
nearest_sample=nearest_sample)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1142, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1567, in obspy.core.stream.Stream.cutout
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
6 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 301 samples
BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 301 samples
BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 301 samples
BW.RJOB..EHZ | 2009-08-24T00:20:11.000000Z ... | 100.0 Hz, 2200 samples
BW.RJOB..EHN | 2009-08-24T00:20:11.000000Z ... | 100.0 Hz, 2200 samples
BW.RJOB..EHE | 2009-08-24T00:20:11.000000Z ... | 100.0 Hz, 2200 samples
Got:
3 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.copy
File "obspy\core\stream.py", line 2716, in copy
----------------------------------------------------------------------
File "obspy\core\stream.py", line 2738, in obspy.core.stream.Stream.copy
Failed example:
st == st2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.copy[4]>", line 1, in <module>
st == st2
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 2748, in obspy.core.stream.Stream.copy
Failed example:
st == st3
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.copy[7]>", line 1, in <module>
st == st3
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.attach_response
File "obspy\core\stream.py", line 1, in attach_response
----------------------------------------------------------------------
File "obspy\core\stream.py", line 13, in obspy.core.stream.Stream.attach_response
Failed example:
st.attach_response(inv)
Expected:
[]
Got:
[<obspy.core.trace.Trace object at 0x000000000BE1F208>, <obspy.core.trace.Trace object at 0x000000000B76E668>, <obspy.core.trace.Trace object at 0x000000000BE1F160>]
----------------------------------------------------------------------
File "obspy\core\stream.py", line 16, in obspy.core.stream.Stream.attach_response
Failed example:
print(tr.stats.response) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.attach_response[5]>", line 1, in <module>
print(tr.stats.response) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
File "obspy\core\util\attribdict.py", line 125, in __getattr__
raise AttributeError(e.args[0])
AttributeError: response
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream._rotate_to_zne
File "obspy\core\stream.py", line 3204, in _rotate_to_zne
----------------------------------------------------------------------
File "obspy\core\stream.py", line 3211, in obspy.core.stream.Stream._rotate_to_zne
Failed example:
st._rotate_to_zne(inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream._rotate_to_zne[3]>", line 1, in <module>
st._rotate_to_zne(inv) # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 3250, in _rotate_to_zne
net, sta, loc, channels_, inventory)
File "obspy\core\stream.py", line 3303, in _rotate_specific_channels_to_zne
st._trim_common_channels()
File "obspy\core\stream.py", line 3191, in _trim_common_channels
self._cleanup()
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream._rotate_specific_channels_to_zne
File "obspy\core\stream.py", line 3254, in _rotate_specific_channels_to_zne
----------------------------------------------------------------------
File "obspy\core\stream.py", line 3261, in obspy.core.stream.Stream._rotate_specific_channels_to_zne
Failed example:
st._rotate_specific_channels_to_zne(
"BW", "FFB1", "", ["HHZ", "HH1", "HH2"],
inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream._rotate_specific_channels_to_zne[3]>", line 3, in <module>
inv) # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 3299, in _rotate_specific_channels_to_zne
self.remove(tr)
File "obspy\core\stream.py", line 1302, in remove
self.traces.remove(trace)
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.__ne__
File "obspy\core\stream.py", line 605, in __ne__
----------------------------------------------------------------------
File "obspy\core\stream.py", line 616, in obspy.core.stream.Stream.__ne__
Failed example:
st != st2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.__ne__[4]>", line 1, in <module>
st != st2
File "obspy\core\stream.py", line 620, in __ne__
return not self.__eq__(other)
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.__iter__
File "obspy\core\stream.py", line 466, in __iter__
----------------------------------------------------------------------
File "obspy\core\stream.py", line 496, in obspy.core.stream.Stream.__iter__
Failed example:
for tr in st:
if tr.stats.channel[-1] not in ["Z", "N", "E"]:
st.remove(tr) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.__iter__[4]>", line 3, in <module>
st.remove(tr) # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1302, in remove
self.traces.remove(trace)
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 500, in obspy.core.stream.Stream.__iter__
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
4 Trace(s) in Stream:
.TEST..EHZ | 1970-01-01T00:00:00.000000Z - ... | 1.0 Hz, 0 samples
.TEST..EHZ | 1970-01-01T00:00:00.000000Z - ... | 1.0 Hz, 0 samples
.TEST..EHN | 1970-01-01T00:00:00.000000Z - ... | 1.0 Hz, 0 samples
.TEST..EHE | 1970-01-01T00:00:00.000000Z - ... | 1.0 Hz, 0 samples
Got:
8 Trace(s) in Stream:
.TEST..EHZ | 1970-01-01T00:00:00.000000Z - 1970-01-01T00:00:00.000000Z | 1.0 Hz, 0 samples
.TEST..EH2 | 1970-01-01T00:00:00.000000Z - 1970-01-01T00:00:00.000000Z | 1.0 Hz, 0 samples
.TEST..EH3 | 1970-01-01T00:00:00.000000Z - 1970-01-01T00:00:00.000000Z | 1.0 Hz, 0 samples
.TEST..EHZ | 1970-01-01T00:00:00.000000Z - 1970-01-01T00:00:00.000000Z | 1.0 Hz, 0 samples
.TEST..EHN | 1970-01-01T00:00:00.000000Z - 1970-01-01T00:00:00.000000Z | 1.0 Hz, 0 samples
.TEST..EHE | 1970-01-01T00:00:00.000000Z - 1970-01-01T00:00:00.000000Z | 1.0 Hz, 0 samples
.TEST..EH4 | 1970-01-01T00:00:00.000000Z - 1970-01-01T00:00:00.000000Z | 1.0 Hz, 0 samples
.TEST..EH5 | 1970-01-01T00:00:00.000000Z - 1970-01-01T00:00:00.000000Z | 1.0 Hz, 0 samples
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.__le__
File "obspy\core\utcdatetime.py", line 1093, in __le__
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 1104, in obspy.core.utcdatetime.UTCDateTime.__le__
Failed example:
t1 <= t2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime.__le__[2]>", line 1, in <module>
t1 <= t2
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.inventory.Inventory.select
File "obspy\core\inventory\inventory.py", line 462, in select
----------------------------------------------------------------------
File "obspy\core\inventory\inventory.py", line 483, in obspy.core.inventory.inventory.Inventory.select
Failed example:
inv = inv.select(channel="*Z", station="[RW]*", time=t)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.inventory.inventory.Inventory.select[3]>", line 1, in <module>
inv = inv.select(channel="*Z", station="[RW]*", time=t)
File "obspy\core\inventory\inventory.py", line 548, in select
sampling_rate=sampling_rate, keep_empty=keep_empty)
File "obspy\core\inventory\network.py", line 407, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 176, in is_active
if self.start_date is not None and time < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\inventory\inventory.py", line 484, in obspy.core.inventory.inventory.Inventory.select
Failed example:
print(inv) # doctest: +NORMALIZE_WHITESPACE
Expected:
Inventory created at 2014-03-03T11:07:06.198000Z
Created by: fdsn-stationxml-converter/1.0.0
http://www.iris.edu/fdsnstationconverter
Sending institution: Erdbebendienst Bayern
Contains:
Networks (2):
BW, GR
Stations (2):
BW.RJOB (Jochberg, Bavaria, BW-Net)
GR.WET (Wettzell, Bavaria, GR-Net)
Channels (4):
BW.RJOB..EHZ, GR.WET..BHZ, GR.WET..HHZ, GR.WET..LHZ
Got:
Inventory created at 2014-03-03T11:07:06.198000Z
	Created by: fdsn-stationxml-converter/1.0.0
		 http://www.iris.edu/fdsnstationconverter
	Sending institution: Erdbebendienst Bayern
	Contains:
		Networks (2):
			BW, GR
		Stations (5):
			BW.RJOB (Jochberg, Bavaria, BW-Net) (3x)
			GR.FUR (Fuerstenfeldbruck, Bavaria, GR-Net)
			GR.WET (Wettzell, Bavaria, GR-Net)
		Channels (30):
			BW.RJOB..EHZ (3x), BW.RJOB..EHN (3x), BW.RJOB..EHE (3x),
			GR.FUR..BHZ, GR.FUR..BHN, GR.FUR..BHE, GR.FUR..HHZ, GR.FUR..HHN,
			GR.FUR..HHE, GR.FUR..LHZ, GR.FUR..LHN, GR.FUR..LHE, GR.FUR..VHZ,
			GR.FUR..VHN, GR.FUR..VHE, GR.WET..BHZ, GR.WET..BHN, GR.WET..BHE,
			GR.WET..HHZ, GR.WET..HHN, GR.WET..HHE, GR.WET..LHZ, GR.WET..LHN,
			GR.WET..LHE
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.network.Network.select
File "obspy\core\inventory\network.py", line 333, in select
----------------------------------------------------------------------
File "obspy\core\inventory\network.py", line 353, in obspy.core.inventory.network.Network.select
Failed example:
net = net.select(channel="[LB]HZ", time=t)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.inventory.network.Network.select[3]>", line 1, in <module>
net = net.select(channel="[LB]HZ", time=t)
File "obspy\core\inventory\network.py", line 407, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 176, in is_active
if self.start_date is not None and time < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\inventory\network.py", line 354, in obspy.core.inventory.network.Network.select
Failed example:
print(net) # doctest: +NORMALIZE_WHITESPACE
Expected:
Network GR (GRSN)
Station Count: None/None (Selected/Total)
-- - --
Access: UNKNOWN
Contains:
Stations (2):
GR.FUR (Fuerstenfeldbruck, Bavaria, GR-Net)
GR.WET (Wettzell, Bavaria, GR-Net)
Channels (4):
GR.FUR..BHZ, GR.FUR..LHZ, GR.WET..BHZ, GR.WET..LHZ
Got:
Network GR (GRSN)
	Station Count: None/None (Selected/Total)
	-- - --
	Access: UNKNOWN
	Contains:
		Stations (2):
			GR.FUR (Fuerstenfeldbruck, Bavaria, GR-Net)
			GR.WET (Wettzell, Bavaria, GR-Net)
		Channels (21):
			GR.FUR..BHZ, GR.FUR..BHN, GR.FUR..BHE, GR.FUR..HHZ, GR.FUR..HHN,
			GR.FUR..HHE, GR.FUR..LHZ, GR.FUR..LHN, GR.FUR..LHE, GR.FUR..VHZ,
			GR.FUR..VHN, GR.FUR..VHE, GR.WET..BHZ, GR.WET..BHN, GR.WET..BHE,
			GR.WET..HHZ, GR.WET..HHN, GR.WET..HHE, GR.WET..LHZ, GR.WET..LHN,
			GR.WET..LHE
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.remove
File "obspy\core\stream.py", line 1276, in remove
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1294, in obspy.core.stream.Stream.remove
Failed example:
for tr in st.select(component="E"):
st.remove(tr) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.remove[3]>", line 2, in <module>
st.remove(tr) # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1302, in remove
self.traces.remove(trace)
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1297, in obspy.core.stream.Stream.remove
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
2 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples
BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples
Got:
3 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.print_gaps
File "obspy\core\stream.py", line 1203, in print_gaps
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1218, in obspy.core.stream.Stream.print_gaps
Failed example:
st.get_gaps()
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[2]>", line 1, in <module>
st.get_gaps()
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1220, in obspy.core.stream.Stream.print_gaps
Failed example:
st.print_gaps() # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[3]>", line 1, in <module>
st.print_gaps() # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1261, in print_gaps
result = self.get_gaps(min_gap, max_gap)
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1229, in obspy.core.stream.Stream.print_gaps
Failed example:
st[0].trim(endtime=t) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[6]>", line 1, in <module>
st[0].trim(endtime=t) # doctest: +ELLIPSIS
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1142, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1231, in obspy.core.stream.Stream.print_gaps
Failed example:
tr.trim(starttime=t+1) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[7]>", line 1, in <module>
tr.trim(starttime=t+1) # doctest: +ELLIPSIS
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1235, in obspy.core.stream.Stream.print_gaps
Failed example:
st.get_gaps() # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[9]>", line 1, in <module>
st.get_gaps() # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1237, in obspy.core.stream.Stream.print_gaps
Failed example:
st.print_gaps() # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[10]>", line 1, in <module>
st.print_gaps() # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1261, in print_gaps
result = self.get_gaps(min_gap, max_gap)
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1248, in obspy.core.stream.Stream.print_gaps
Failed example:
st[0].trim(endtime=t) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[14]>", line 1, in <module>
st[0].trim(endtime=t) # doctest: +ELLIPSIS
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1142, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1250, in obspy.core.stream.Stream.print_gaps
Failed example:
tr.trim(starttime=t-1) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[15]>", line 1, in <module>
tr.trim(starttime=t-1) # doctest: +ELLIPSIS
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1254, in obspy.core.stream.Stream.print_gaps
Failed example:
st.get_gaps() # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[17]>", line 1, in <module>
st.get_gaps() # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\stream.py", line 1256, in obspy.core.stream.Stream.print_gaps
Failed example:
st.print_gaps() # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.print_gaps[18]>", line 1, in <module>
st.print_gaps() # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 1261, in print_gaps
result = self.get_gaps(min_gap, max_gap)
File "obspy\core\stream.py", line 795, in get_gaps
self.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_inventory.py", line 208, in test_inventory_merging_metadata_update
self.assertTrue((UTCDateTime() - inv_1.created) < 5)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_inventory.py", line 55, in test_initialization
self.assertLessEqual(inv.created - dt, 10.0)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_inventory.py", line 167, in test_get_orientation
UTCDateTime('2010-01-01T12:00'))
File "obspy\core\inventory\inventory.py", line 454, in get_orientation
metadata = self.get_channel_metadata(seed_id, datetime)
File "obspy\core\inventory\inventory.py", line 406, in get_channel_metadata
raise Exception(msg)
Exception: No matching channel metadata found.
Traceback (most recent call last):
File "obspy\core\tests\test_inventory.py", line 135, in test_get_coordinates
UTCDateTime('2010-01-01T12:00'))
File "obspy\core\inventory\inventory.py", line 430, in get_coordinates
metadata = self.get_channel_metadata(seed_id, datetime)
File "obspy\core\inventory\inventory.py", line 406, in get_channel_metadata
raise Exception(msg)
Exception: No matching channel metadata found.
Traceback (most recent call last):
File "obspy\core\tests\test_network.py", line 120, in test_get_coordinates
UTCDateTime('2010-01-01T12:00'))
File "obspy\core\inventory\network.py", line 308, in get_coordinates
metadata = self.get_channel_metadata(seed_id, datetime)
File "obspy\core\inventory\network.py", line 268, in get_channel_metadata
if cha.start_date and cha.start_date > datetime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_inventory.py", line 514, in test_combined_station_event_plot
cat.plot(outfile=ic.name, fig=fig)
File "obspy\core\event\catalog.py", line 682, in plot
origin = event.preferred_origin() or event.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_inventory.py", line 193, in test_response_plot
station="[WR]*", time=t, outfile=ic.name)
File "obspy\core\inventory\inventory.py", line 863, in plot_response
starttime=starttime, endtime=endtime)
File "obspy\core\inventory\inventory.py", line 548, in select
sampling_rate=sampling_rate, keep_empty=keep_empty)
File "obspy\core\inventory\network.py", line 407, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 176, in is_active
if self.start_date is not None and time < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_inventory.py", line 324, in test_inventory_select
self.assertEqual(len(inv.select(time=UTCDateTime(2001, 1, 1))), 0)
File "obspy\core\inventory\inventory.py", line 540, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 176, in is_active
if self.start_date is not None and time < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_network.py", line 257, in test_network_select_with_empty_stations
self.assertEqual(len(net.select(time=UTCDateTime(2006, 1, 1))), 0)
File "obspy\core\inventory\network.py", line 407, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 176, in is_active
if self.start_date is not None and time < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_network.py", line 194, in test_network_select
net_2 = net.select(time=UTCDateTime(2000, 1, 1))
File "obspy\core\inventory\network.py", line 407, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 176, in is_active
if self.start_date is not None and time < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.copy
File "obspy\core\trace.py", line 2186, in copy
----------------------------------------------------------------------
File "obspy\core\trace.py", line 2211, in obspy.core.trace.Trace.copy
Failed example:
tr2 == tr
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.copy[3]>", line 1, in <module>
tr2 == tr
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.remove_response
File "obspy\core\trace.py", line 1, in remove_response
----------------------------------------------------------------------
File "obspy\core\trace.py", line 42, in obspy.core.trace.Trace.remove_response
Failed example:
tr.remove_response(inventory=inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.remove_response[4]>", line 1, in <module>
tr.remove_response(inventory=inv) # doctest: +ELLIPSIS
File "<decorator-gen-28>", line 2, in remove_response
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 2721, in remove_response
response = self._get_response(inventory)
File "obspy\core\trace.py", line 2552, in _get_response
raise ValueError(msg)
ValueError: No matching response information found.
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.remove_sensitivity
File "obspy\core\trace.py", line 1, in remove_sensitivity
----------------------------------------------------------------------
File "obspy\core\trace.py", line 17, in obspy.core.trace.Trace.remove_sensitivity
Failed example:
tr.remove_sensitivity(inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.remove_sensitivity[3]>", line 1, in <module>
tr.remove_sensitivity(inv) # doctest: +ELLIPSIS
File "<decorator-gen-29>", line 2, in remove_sensitivity
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 2902, in remove_sensitivity
response = self._get_response(inventory)
File "obspy\core\trace.py", line 2552, in _get_response
raise ValueError(msg)
ValueError: No matching response information found.
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 327, in test_trim
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 353, in test_trim_all_does_not_change_dtype
tr.trim(UTCDateTime(10000), UTCDateTime(20000))
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 700, in test_slice_nearest_sample
tr2 = tr.slice(UTCDateTime(4), UTCDateTime(44))
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 612, in test_slice_no_starttime_or_endtime
tr_trim.trim(starttime=t2)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1677, in test_skip_empty_trace
tr.trim(t, t + 10)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 581, in test_slice
tr1 = tr.slice(t + 2, t + 8)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1530, in test_split_masked_array_without_actually_masked_values
self.assertEqual(tr, st[0])
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1406, in test_times
self.assertAlmostEqual(tm[-1], tr.stats.endtime - tr.stats.starttime)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 2171, in test_slide
for window_tr in tr.slide(window_length=5.0, step=5.0):
File "obspy\core\trace.py", line 1256, in slide
nearest_sample=nearest_sample)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1496, in test_split
trace = tr1 + tr2
File "obspy\core\trace.py", line 705, in __add__
if self.stats.starttime <= trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace._rtrim
File "obspy\core\trace.py", line 1022, in _rtrim
----------------------------------------------------------------------
File "obspy\core\trace.py", line 1031, in obspy.core.trace.Trace._rtrim
Failed example:
tr._rtrim(tr.stats.starttime + 2) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace._rtrim[2]>", line 1, in <module>
tr._rtrim(tr.stats.starttime + 2) # doctest: +ELLIPSIS
File "obspy\core\trace.py", line 1047, in _rtrim
self.stats.sampling_rate) - self.stats.npts + 1
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\trace.py", line 1033, in obspy.core.trace.Trace._rtrim
Failed example:
tr.data
Expected:
array([0, 1, 2])
Got:
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
----------------------------------------------------------------------
File "obspy\core\trace.py", line 1035, in obspy.core.trace.Trace._rtrim
Failed example:
tr.stats.endtime
Expected:
UTCDateTime(1970, 1, 1, 0, 0, 2)
Got:
UTCDateTime(1970, 1, 1, 0, 0, 9)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.attach_response
File "obspy\core\trace.py", line 2555, in attach_response
----------------------------------------------------------------------
File "obspy\core\trace.py", line 2567, in obspy.core.trace.Trace.attach_response
Failed example:
tr.attach_response(inv)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.attach_response[4]>", line 1, in <module>
tr.attach_response(inv)
File "obspy\core\trace.py", line 2586, in attach_response
self.stats.response = self._get_response(inventories)
File "obspy\core\trace.py", line 2552, in _get_response
raise ValueError(msg)
ValueError: No matching response information found.
----------------------------------------------------------------------
File "obspy\core\trace.py", line 2568, in obspy.core.trace.Trace.attach_response
Failed example:
print(tr.stats.response) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.attach_response[5]>", line 1, in <module>
print(tr.stats.response) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
File "obspy\core\util\attribdict.py", line 125, in __getattr__
raise AttributeError(e.args[0])
AttributeError: response
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.util.BaseNode.copy
File "obspy\core\inventory\util.py", line 113, in copy
----------------------------------------------------------------------
File "obspy\core\inventory\util.py", line 135, in obspy.core.inventory.util.BaseNode.copy
Failed example:
sta == sta2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.inventory.util.BaseNode.copy[4]>", line 1, in <module>
sta == sta2
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.station.Station.select
File "obspy\core\inventory\station.py", line 322, in select
----------------------------------------------------------------------
File "obspy\core\inventory\station.py", line 341, in obspy.core.inventory.station.Station.select
Failed example:
sta = sta.select(channel="[LB]HZ", time=t)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.inventory.station.Station.select[3]>", line 1, in <module>
sta = sta.select(channel="[LB]HZ", time=t)
File "obspy\core\inventory\station.py", line 395, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 176, in is_active
if self.start_date is not None and time < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\inventory\station.py", line 342, in obspy.core.inventory.station.Station.select
Failed example:
print(sta) # doctest: +NORMALIZE_WHITESPACE
Expected:
Station FUR (Fuerstenfeldbruck, Bavaria, GR-Net)
Station Code: FUR
Channel Count: None/None (Selected/Total)
2006-12-16T00:00:00.000000Z -
Access: None
Latitude: 48.16, Longitude: 11.28, Elevation: 565.0 m
Available Channels:
FUR..BHZ, FUR..LHZ
Got:
Station FUR (Fuerstenfeldbruck, Bavaria, GR-Net)
	Station Code: FUR
	Channel Count: None/None (Selected/Total)
	2006-12-16T00:00:00.000000Z -
	Access: None
	Latitude: 48.16, Longitude: 11.28, Elevation: 565.0 m
	Available Channels:
		FUR..BHZ, FUR..BHN, FUR..BHE, FUR..HHZ, FUR..HHN, FUR..HHE, FUR..LHZ
		FUR..LHN, FUR..LHE, FUR..VHZ, FUR..VHN, FUR..VHE
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.__gt__
File "obspy\core\utcdatetime.py", line 1120, in __gt__
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 1131, in obspy.core.utcdatetime.UTCDateTime.__gt__
Failed example:
t1 > t2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime.__gt__[2]>", line 1, in <module>
t1 > t2
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_network.py", line 146, in test_response_plot
time=t, outfile=ic.name)
File "obspy\core\inventory\network.py", line 647, in plot_response
starttime=starttime, endtime=endtime)
File "obspy\core\inventory\network.py", line 407, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 176, in is_active
if self.start_date is not None and time < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_network.py", line 229, in test_writing_network_before_1990
self.assertEqual(inv.networks[0], inv2.networks[0])
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_preview.py", line 32, in test_create_preview
self.assertEqual(preview.stats.starttime, UTCDateTime(60))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_preview.py", line 114, in test_merge_previews
st2 = merge_previews(st)
File "obspy\core\preview.py", line 99, in merge_previews
stream.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_preview.py", line 175, in test_merge_previews_2
tr1.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_preview.py", line 146, in test_resample_previews
omitted_samples = resample_preview(tr, 100, method='fast')
File "obspy\core\preview.py", line 212, in resample_preview
trace.stats.delta = (endtime - trace.stats.starttime) / \
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_response.py", line 76, in test_evalresp_with_output_from_seed
if p.blockettes[50][0].end_effective_date > t_:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_station.py", line 141, in test_station_select
self.assertEqual(len(sta.select(time=UTCDateTime(2005, 1, 1))), 0)
File "obspy\core\inventory\station.py", line 395, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 176, in is_active
if self.start_date is not None and time < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stats.py", line 233, in test_compare_with_dict
self.assertEqual(ad, adict)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stats.py", line 190, in test_pickle_stats
self.assertEqual(stats, stats2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 2287, in test_remove_response_plot
tr.attach_response(inv)
File "obspy\core\trace.py", line 2586, in attach_response
self.stats.response = self._get_response(inventories)
File "obspy\core\trace.py", line 2552, in _get_response
raise ValueError(msg)
ValueError: No matching response information found.
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1712, in test_remove_response
tr2.remove_response(pre_filt=(0.1, 0.5, 30, 50))
File "<decorator-gen-28>", line 2, in remove_response
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 2721, in remove_response
response = self._get_response(inventory)
File "obspy\core\trace.py", line 2533, in _get_response
raise ValueError(msg)
ValueError: No response information found. Use `inventory` parameter to specify an inventory with response information.
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 2099, in test_resample_new
self.assertEqual(tr.stats.starttime, starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1612, in test_resample
self.assertEqual(tr_2.stats.endtime, tr.stats.endtime - 1.0 / 100.0)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1765, in test_processing_info_remove_response_and_sensitivity
tr.remove_sensitivity()
File "<decorator-gen-29>", line 2, in remove_sensitivity
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 2902, in remove_sensitivity
response = self._get_response(inventory)
File "obspy\core\trace.py", line 2533, in _get_response
raise ValueError(msg)
ValueError: No response information found. Use `inventory` parameter to specify an inventory with response information.
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1464, in test_plot
tr.plot(show=False)
File "obspy\core\trace.py", line 893, in plot
waveform = WaveformPlotting(stream=self, **kwargs)
File "obspy\imaging\waveform.py", line 97, in __init__
self.stream.trim(self.starttime, self.endtime)
File "obspy\core\stream.py", line 1509, in trim
(starttime - tr.stats.starttime) * tr.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1729, in test_remove_polynomial_response
del tr.stats.response
File "obspy\core\util\attribdict.py", line 106, in __delitem__
del self.__dict__[name]
KeyError: 'response'
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1805, in test_processing_information
tr.trim(trimming_starttime)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 294, in test_rtrim_with_padding
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 202, in test_rtrim
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 531, in test_eq
self.assertEqual(UTCDateTime(999), UTCDateTime(999))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 982, in test_datetime_with_timezone
self.assertEqual(UTCDateTime(dt.isoformat()), UTCDateTime(dt))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime
File "obspy\core\utcdatetime.py", line 25, in UTCDateTime
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 179, in obspy.core.utcdatetime.UTCDateTime
Failed example:
dt == dt2 # 5th digit is within current precision
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime[30]>", line 1, in <module>
dt == dt2 # 5th digit is within current precision
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 181, in obspy.core.utcdatetime.UTCDateTime
Failed example:
dt == dt3 # 7th digit will be neglected
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime[31]>", line 1, in <module>
dt == dt3 # 7th digit will be neglected
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 192, in obspy.core.utcdatetime.UTCDateTime
Failed example:
dt == dt2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime[35]>", line 1, in <module>
dt == dt2
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 203, in obspy.core.utcdatetime.UTCDateTime
Failed example:
dt == dt2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime[40]>", line 1, in <module>
dt == dt2
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.__lt__
File "obspy\core\utcdatetime.py", line 1066, in __lt__
----------------------------------------------------------------------
File "obspy\core\utcdatetime.py", line 1077, in obspy.core.utcdatetime.UTCDateTime.__lt__
Failed example:
t1 < t2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.utcdatetime.UTCDateTime.__lt__[2]>", line 1, in <module>
t1 < t2
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1618, in test_trim_consistent_start_end_time
st.trim(t + 3.5, t + 6.5, nearest_sample=False)
File "obspy\core\stream.py", line 1518, in trim
nearest_sample=nearest_sample, fill_value=fill_value)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1639, in test_trim_consistent_start_and_time_pad
st.trim(t - 3.5, t + 16.5, nearest_sample=False, pad=True)
File "obspy\core\stream.py", line 1518, in trim
nearest_sample=nearest_sample, fill_value=fill_value)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 701, in test_sort
stream.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2454, in test_slide_nearest_sample
list(st.slide(5, 5))
File "obspy\core\stream.py", line 1703, in slide
starttime = min(tr.stats.starttime for tr in self)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 956, in test_split
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 768, in test_sorting_twice
stream.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 430, in test_slice
st2 = st.slice(st[0].stats.starttime, st[0].stats.endtime)
File "obspy\core\stream.py", line 1638, in slice
nearest_sample=nearest_sample)
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2178, in test_simulate_seedresp_parser
self.assertEqual(tr1, tr2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2367, in test_slide
for window_st in st.slide(window_length=5.0, step=5.0):
File "obspy\core\stream.py", line 1703, in slide
starttime = min(tr.stats.starttime for tr in self)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 397, in test_slicing
self.assertEqual(stream[0:], stream[0:])
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.remove_response
File "obspy\core\stream.py", line 3032, in remove_response
----------------------------------------------------------------------
File "obspy\core\stream.py", line 3043, in obspy.core.stream.Stream.remove_response
Failed example:
st.remove_response(inventory=inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.remove_response[3]>", line 1, in <module>
st.remove_response(inventory=inv) # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 3063, in remove_response
tr.remove_response(*args, **kwargs)
File "<decorator-gen-28>", line 2, in remove_response
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 2721, in remove_response
response = self._get_response(inventory)
File "obspy\core\trace.py", line 2552, in _get_response
raise ValueError(msg)
ValueError: No matching response information found.
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.trim
File "obspy\core\trace.py", line 1, in trim
----------------------------------------------------------------------
File "obspy\core\trace.py", line 45, in obspy.core.trace.Trace.trim
Failed example:
tr.trim(t + 2.000001, t + 7.999999) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.trim[3]>", line 1, in <module>
tr.trim(t + 2.000001, t + 7.999999) # doctest: +ELLIPSIS
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\trace.py", line 47, in obspy.core.trace.Trace.trim
Failed example:
tr.data
Expected:
array([2, 3, 4, 5, 6, 7, 8])
Got:
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 217, in test_from_iso8601_week_date_string
self.assertEqual(dt, UTCDateTime(2010, 1, 3, 12, 23, 34, 500000))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 78, in test_from_numeric
self.assertEqual(dt, UTCDateTime(1970, 1, 1, 0, 0, 0))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 47, in test_from_numpy_string
self.assertEqual(dt, UTCDateTime(1970, 1, 1, 12, 23, 34))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 65, in test_from_python_date_time
self.assertEqual(dt, UTCDateTime(1970, 1, 1, 12, 23, 34, 123456))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 26, in test_from_string
self.assertEqual(dt, UTCDateTime(1970, 1, 1, 12, 23, 34))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 693, in test_ge
self.assertGreaterEqual(UTCDateTime(999), UTCDateTime(999))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 946, in assertGreaterEqual
if not a >= b:
File "obspy\core\utcdatetime.py", line 1172, in __ge__
return self._operate(other, operator.ge)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 657, in test_gt
self.assertFalse(UTCDateTime(999) > UTCDateTime(999))
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 392, in test_init_utcdatetime_mixing_keyworks_with_arguments
self.assertEqual(dt, UTCDateTime(2008, 1, 1, 12))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 1088, in test_issue_1215
UTCDateTime(2015, 7, 3, 6, 0, 0))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 450, in test_issue_159
self.assertEqual(dt, UTCDateTime(2010, 2, 13, 2, 13, 11))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.remove_sensitivity
File "obspy\core\stream.py", line 3066, in remove_sensitivity
----------------------------------------------------------------------
File "obspy\core\stream.py", line 3077, in obspy.core.stream.Stream.remove_sensitivity
Failed example:
st.remove_sensitivity(inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.remove_sensitivity[3]>", line 1, in <module>
st.remove_sensitivity(inv) # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 3088, in remove_sensitivity
tr.remove_sensitivity(*args, **kwargs)
File "<decorator-gen-29>", line 2, in remove_sensitivity
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 2902, in remove_sensitivity
response = self._get_response(inventory)
File "obspy\core\trace.py", line 2552, in _get_response
raise ValueError(msg)
ValueError: No matching response information found.
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1552, in test_trim_nearest_sample
st.trim(UTCDateTime(0.6), endtime=None)
File "obspy\core\stream.py", line 1509, in trim
(starttime - tr.stats.starttime) * tr.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1214, in test_trim_removing_empty_traces
stream.trim(UTCDateTime(900), UTCDateTime(1100))
File "obspy\core\stream.py", line 1509, in trim
(starttime - tr.stats.starttime) * tr.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1577, in test_trim_consistent_start_end_time_nearest_sample
st.trim(t + 3.5, t + 6.5)
File "obspy\core\stream.py", line 1509, in trim
(starttime - tr.stats.starttime) * tr.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1598, in test_trim_consistent_start_end_time_nearest_sample_padded
st.trim(t - 3.5, t + 16.5, pad=True)
File "obspy\core\stream.py", line 1509, in trim
(starttime - tr.stats.starttime) * tr.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 542, in test_add_into_gap
bigtrace = bigtrace.__add__(trace1, method=method)
File "obspy\core\trace.py", line 705, in __add__
if self.stats.starttime <= trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 913, in test_add_overlaps_default_method
tr = tr1 + tr2
File "obspy\core\trace.py", line 705, in __add__
if self.stats.starttime <= trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1241, in test_trim_with_small_sampling_rate
st.trim(trace1.stats.starttime, trace4.stats.endtime)
File "obspy\core\stream.py", line 1509, in trim
(starttime - tr.stats.starttime) * tr.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 482, in test_add_gap_and_overlap
overlap = tr1 + tr2
File "obspy\core\trace.py", line 705, in __add__
if self.stats.starttime <= trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 428, in test_add_same_trace
trace = tr1 + tr1
File "obspy\core\trace.py", line 705, in __add__
if self.stats.starttime <= trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 371, in test_add_trace_with_gap
tr1.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.times
File "obspy\core\trace.py", line 2427, in times
----------------------------------------------------------------------
File "obspy\core\trace.py", line 2449, in obspy.core.trace.Trace.times
Failed example:
tr.times()
Expected:
array([ 0.00000000e+00, 1.00000000e-02, 2.00000000e-02, ...,
2.99700000e+01, 2.99800000e+01, 2.99900000e+01])
Got:
array([0.000e+00, 1.000e-02, 2.000e-02, ..., 2.997e+01, 2.998e+01,
2.999e+01])
----------------------------------------------------------------------
File "obspy\core\trace.py", line 2453, in obspy.core.trace.Trace.times
Failed example:
tr.times(reftime=UTCDateTime("2009-01-01T00"))
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.times[3]>", line 1, in <module>
tr.times(reftime=UTCDateTime("2009-01-01T00"))
File "obspy\core\trace.py", line 2491, in times
time_array += (self.stats.starttime - reftime)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\trace.py", line 2465, in obspy.core.trace.Trace.times
Failed example:
tr.times("timestamp")
Expected:
array([ 1.25107320e+09, 1.25107320e+09, 1.25107320e+09, ...,
1.25107323e+09, 1.25107323e+09, 1.25107323e+09])
Got:
array([1.25107320e+09, 1.25107320e+09, 1.25107320e+09, ...,
1.25107323e+09, 1.25107323e+09, 1.25107323e+09])
----------------------------------------------------------------------
File "obspy\core\trace.py", line 2469, in obspy.core.trace.Trace.times
Failed example:
tr.times("matplotlib")
Expected:
array([ 733643.01392361, 733643.01392373, 733643.01392384, ...,
733643.01427049, 733643.0142706 , 733643.01427072])
Got:
array([733643.01392361, 733643.01392373, 733643.01392384, ...,
733643.01427049, 733643.0142706 , 733643.01427072])
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.rotate
File "obspy\core\stream.py", line 2568, in rotate
----------------------------------------------------------------------
File "obspy\core\stream.py", line 2617, in obspy.core.stream.Stream.rotate
Failed example:
st.rotate(method="->ZNE", inventory=inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.rotate[3]>", line 1, in <module>
st.rotate(method="->ZNE", inventory=inv) # doctest: +ELLIPSIS
File "obspy\core\stream.py", line 2625, in rotate
return self._rotate_to_zne(inventory, **kwargs)
File "obspy\core\stream.py", line 3250, in _rotate_to_zne
net, sta, loc, channels_, inventory)
File "obspy\core\stream.py", line 3303, in _rotate_specific_channels_to_zne
st._trim_common_channels()
File "obspy\core\stream.py", line 3191, in _trim_common_channels
self._cleanup()
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.resample
File "obspy\core\trace.py", line 1, in resample
----------------------------------------------------------------------
File "obspy\core\trace.py", line 53, in obspy.core.trace.Trace.resample
Failed example:
tr.data # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Expected:
array([ 0.5 , 0.40432914, 0.3232233 , 0.26903012, 0.25 ...
Got:
array([0.5 , 0.40432914, 0.3232233 , 0.26903012, 0.25 ,
0.26903012, 0.3232233 , 0.40432914, 0.5 , 0.59567086,
0.6767767 , 0.73096988, 0.75 , 0.73096988, 0.6767767 ,
0.59567086, 0.5 , 0.40432914, 0.3232233 , 0.26903012,
0.25 , 0.26903012, 0.3232233 , 0.40432914, 0.5 ,
0.59567086, 0.6767767 , 0.73096988, 0.75 , 0.73096988,
0.6767767 , 0.59567086])
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 738, in test_same_resource_id_different_referred_object
res_b = ResourceIdentifier(id=id, referred_object=object_b)
File "obspy\core\event\base.py", line 637, in __init__
self.set_referred_object(referred_object)
File "obspy\core\event\base.py", line 737, in set_referred_object
if warn and last_obj is not None and last_obj != referred_object:
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 1147, in test_resource_ids_refer_to_newest_object
rid = ResourceIdentifier("a", referred_object=t2)
File "obspy\core\event\base.py", line 637, in __init__
self.set_referred_object(referred_object)
File "obspy\core\event\base.py", line 737, in set_referred_object
if warn and last_obj is not None and last_obj != referred_object:
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 570, in test_catalog_plot_ortho_longitude_wrap
cat = read_events('/path/to/events_longitude_wrap.zmap', format='ZMAP')
File "<decorator-gen-42>", line 2, in read_events
File "obspy\core\util\decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\event\catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\event\catalog.py", line 858, in _read
**kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\zmap\core.py", line 334, in _read_zmap
return Unpickler().load(filename)
File "obspy\io\zmap\core.py", line 194, in load
catalog = self._deserialize(zmap_str)
File "obspy\io\zmap\core.py", line 242, in _deserialize
origin.time = self._decyear2utc(year)
File "obspy\io\zmap\core.py", line 283, in _decyear2utc
t = start_of_year + (decimal_year % 1) * (end_of_year - start_of_year)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 127, in test_event_copying_does_not_raise_duplicate_resource_id_warning
self.assertEqual(ev, ev2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\event\base.py", line 350, in __ne__
return not self.__eq__(other)
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 594, in test_catalog_plot_local
color='date', colormap='gist_heat')
File "obspy\core\event\catalog.py", line 682, in plot
origin = event.preferred_origin() or event.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 562, in test_catalog_plot_ortho
color='date')
File "obspy\core\event\catalog.py", line 682, in plot
origin = event.preferred_origin() or event.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 961, in test_automatic_dereferring_if_resource_id_goes_out_of_scope
self.assertEqual(r1.get_referred_object(), t1)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 836, in test_getting_gc_with_shared_resource_id
rid2 = ResourceIdentifier(uri, referred_object=obj2)
File "obspy\core\event\base.py", line 637, in __init__
self.set_referred_object(referred_object)
File "obspy\core\event\base.py", line 737, in set_referred_object
if warn and last_obj is not None and last_obj != referred_object:
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 159, in test_plot_farfield_without_quiver_with_maps
['p_sphere', 's_sphere']], outfile=ic.name)
File "obspy\core\event\event.py", line 252, in plot
**kwargs)
File "obspy\core\event\catalog.py", line 682, in plot
origin = event.preferred_origin() or event.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 52, in test_str
s = event.short_str()
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 1304, in test_verify
tr.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 852, in test_trim_floating_point_with_padding_2
nearest_sample=False)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 812, in test_trim_floating_point_with_padding_1
self.assertEqual(tr.stats.starttime, UTCDateTime(0))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_trace.py", line 728, in test_trim_floating_point
self.assertEqual(tr.stats.starttime, UTCDateTime(0))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 434, in test_copy
self.assertEqual(cat, cat2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\event\base.py", line 350, in __ne__
return not self.__eq__(other)
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 464, in test_filter
cat_smaller = cat.filter('%s < %s' % (attr_filter, value))
File "obspy\core\event\catalog.py", line 381, in filter
float(value))):
File "obspy\core\event\catalog.py", line 328, in _is_smaller
if value_1 is None or value_1 < value_2:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 392, in test_get_item
self.assertEqual(catalog[0], catalog.events[0])
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\event\base.py", line 350, in __ne__
return not self.__eq__(other)
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 302, in test_read_events_with_wildcard
self.assertEqual(expected, got)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 274, in test_str
self.assertTrue(catalog.__str__().startswith("3 Event(s) in Catalog:"))
File "obspy\core\event\catalog.py", line 236, in __str__
out += "\n".join([ev.short_str() for ev in self])
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_event.py", line 549, in test_catalog_plot_global
cat.plot(method='basemap', outfile=ic.name)
File "obspy\core\event\catalog.py", line 682, in plot
origin = event.preferred_origin() or event.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 166, in test_from_iso8601_ordinal_date_string
self.assertEqual(dt, UTCDateTime(2009, 12, 31, 12, 23, 34, 500000))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 90, in test_from_iso8601_calendar_date_string
self.assertEqual(dt, UTCDateTime(2009, 12, 31, 12, 23, 34, 500000))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.__truediv__
File "obspy\core\trace.py", line 473, in __truediv__
----------------------------------------------------------------------
File "obspy\core\trace.py", line 488, in obspy.core.trace.Trace.__truediv__
Failed example:
st = tr / 7
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.__truediv__[3]>", line 1, in <module>
st = tr / 7
File "obspy\core\trace.py", line 512, in __div__
st.append(self.slice(tstart, tend).copy())
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\trace.py", line 489, in obspy.core.trace.Trace.__truediv__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace.__truediv__[4]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.util.base.create_empty_data_chunk
File "obspy\core\util\base.py", line 128, in create_empty_data_chunk
----------------------------------------------------------------------
File "obspy\core\util\base.py", line 144, in obspy.core.util.base.create_empty_data_chunk
Failed example:
create_empty_data_chunk(6, np.complex128, 0)
Expected:
array([ 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j])
Got:
array([0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j])
----------------------------------------------------------------------
File "obspy\core\util\base.py", line 147, in obspy.core.util.base.create_empty_data_chunk
Failed example:
create_empty_data_chunk(
3, 'f') # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Expected:
masked_array(data = [-- -- --],
mask = ...,
...)
Got:
masked_array(data=[--, --, --],
mask=[ True, True, True],
fill_value=1e+20,
dtype=float32)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace._ltrim
File "obspy\core\trace.py", line 955, in _ltrim
----------------------------------------------------------------------
File "obspy\core\trace.py", line 964, in obspy.core.trace.Trace._ltrim
Failed example:
tr._ltrim(tr.stats.starttime + 8) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.trace.Trace._ltrim[2]>", line 1, in <module>
tr._ltrim(tr.stats.starttime + 8) # doctest: +ELLIPSIS
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\trace.py", line 966, in obspy.core.trace.Trace._ltrim
Failed example:
tr.data
Expected:
array([8, 9])
Got:
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
----------------------------------------------------------------------
File "obspy\core\trace.py", line 968, in obspy.core.trace.Trace._ltrim
Failed example:
tr.stats.starttime
Expected:
UTCDateTime(1970, 1, 1, 0, 0, 8)
Got:
UTCDateTime(1970, 1, 1, 0, 0)
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.catalog.Catalog.__eq__
File "obspy\core\event\catalog.py", line 124, in __eq__
----------------------------------------------------------------------
File "obspy\core\event\catalog.py", line 140, in obspy.core.event.catalog.Catalog.__eq__
Failed example:
cat == cat2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.catalog.Catalog.__eq__[4]>", line 1, in <module>
cat == cat2
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\event\base.py", line 350, in __ne__
return not self.__eq__(other)
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1786, in test_read
self.assertEqual(tr, tr2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 374, in test_pop
self.assertEqual(temp_trace.stats, traces[-1].stats)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1954, in test_plot
self.mseed_stream.plot(show=False)
File "obspy\core\stream.py", line 1145, in plot
waveform = WaveformPlotting(stream=self, *args, **kwargs)
File "obspy\imaging\waveform.py", line 94, in __init__
self.stream])
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1267, in test_pickle
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2297, in test_misaligned_traces
tr_contained1.trim(t1 + 2 * delta, t2 - delta)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2092, in test_method_chaining
self.assertEqual(st1[0], st1[1])
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1117, in test_merge_with_small_sampling_rate
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1871, in test_merge_with_empty_trace
st = tr / 3
File "obspy\core\trace.py", line 512, in __div__
st.append(self.slice(tstart, tend).copy())
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 833, in test_merge_with_different_sampling_rates
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 857, in test_merge_with_different_data_types
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.base.ResourceIdentifier
File "obspy\core\event\base.py", line 430, in ResourceIdentifier
----------------------------------------------------------------------
File "obspy\core\event\base.py", line 546, in obspy.core.event.base.ResourceIdentifier
Failed example:
ref_b = ResourceIdentifier(res_id, referred_object=obj_b)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.base.ResourceIdentifier[26]>", line 1, in <module>
ref_b = ResourceIdentifier(res_id, referred_object=obj_b)
File "obspy\core\event\base.py", line 637, in __init__
self.set_referred_object(referred_object)
File "obspy\core\event\base.py", line 737, in set_referred_object
if warn and last_obj is not None and last_obj != referred_object:
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\event\base.py", line 547, in obspy.core.event.base.ResourceIdentifier
Failed example:
assert ref_a.get_referred_object() == ref_b.get_referred_object()
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.base.ResourceIdentifier[27]>", line 1, in <module>
assert ref_a.get_referred_object() == ref_b.get_referred_object()
AssertionError
----------------------------------------------------------------------
File "obspy\core\event\base.py", line 549, in obspy.core.event.base.ResourceIdentifier
Failed example:
assert ref_a.get_referred_object() is obj_a
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.base.ResourceIdentifier[29]>", line 1, in <module>
assert ref_a.get_referred_object() is obj_a
AssertionError
----------------------------------------------------------------------
File "obspy\core\event\base.py", line 550, in obspy.core.event.base.ResourceIdentifier
Failed example:
assert ref_b.get_referred_object() is obj_b
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.base.ResourceIdentifier[30]>", line 1, in <module>
assert ref_b.get_referred_object() is obj_b
AssertionError
Traceback (most recent call last):
File "obspy\core\tests\test_waveform_plugins.py", line 403, in test_read_zip_archive
self.assertEqual(st1, st2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 600, in __eq__
if self_sorted.traces != other_sorted.traces:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.__eq__
File "obspy\core\stream.py", line 565, in __eq__
----------------------------------------------------------------------
File "obspy\core\stream.py", line 584, in obspy.core.stream.Stream.__eq__
Failed example:
st == st2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.stream.Stream.__eq__[4]>", line 1, in <module>
st == st2
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_waveform_plugins.py", line 357, in test_read_gzip2_file
self.assertEqual(st1, st2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 600, in __eq__
if self_sorted.traces != other_sorted.traces:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_waveform_plugins.py", line 380, in test_read_tar_archive
self.assertEqual(st1, st2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 600, in __eq__
if self_sorted.traces != other_sorted.traces:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_waveform_plugins.py", line 149, in test_read_and_write
self.assertEqual(st[0].stats.starttime, start)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_waveform_plugins.py", line 368, in test_read_bzip2_file
self.assertEqual(st1, st2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 600, in __eq__
if self_sorted.traces != other_sorted.traces:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_util_misc.py", line 124, in test_get_window_times
(UTCDateTime(15), UTCDateTime(20))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 742, in assertListEqual
self.assertSequenceEqual(list1, list2, msg, seq_type=list)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 663, in assertSequenceEqual
if seq1 == seq2:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_waveform_plugins.py", line 449, in test_deepcopy
st.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 1244, in test_timestamp_can_serialize_with_time_attrs
self.assertEqual(utc, utc2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_utcdatetime.py", line 1002, in test_utcnow
self.assertGreaterEqual(UTCDateTime.utcnow(), dt)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 946, in assertGreaterEqual
if not a >= b:
File "obspy\core\utcdatetime.py", line 1172, in __ge__
return self._operate(other, operator.ge)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.__init__
File "obspy\core\__init__.py", line 11, in __init__
----------------------------------------------------------------------
File "obspy\core\__init__.py", line 72, in obspy.core.__init__
Failed example:
tr.data
Expected:
array([ 0. , 0.00694644, 0.07597424, ..., 1.93449584,
0.98196204, 0.44196924])
Got:
array([0. , 0.00694644, 0.07597424, ..., 1.93449584, 0.98196204,
0.44196924])
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.origin.Origin
File "obspy\core\event\origin.py", line 180, in Origin
----------------------------------------------------------------------
File "obspy\core\event\origin.py", line 289, in obspy.core.event.origin.Origin
Failed example:
print(origin) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.origin.Origin[9]>", line 1, in <module>
print(origin) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
File "obspy\core\event\base.py", line 252, in __str__
_i.endswith("_errors") and _bool(getattr(self, _i))]
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.inventory.Inventory.get_response
File "obspy\core\inventory\inventory.py", line 336, in get_response
----------------------------------------------------------------------
File "obspy\core\inventory\inventory.py", line 343, in obspy.core.inventory.inventory.Inventory.get_response
Failed example:
response = inventory.get_response("IU.ANMO.00.BHZ", datetime)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.inventory.inventory.Inventory.get_response[3]>", line 1, in <module>
response = inventory.get_response("IU.ANMO.00.BHZ", datetime)
File "obspy\core\inventory\inventory.py", line 375, in get_response
raise Exception(msg)
Exception: No matching response information found.
----------------------------------------------------------------------
File "obspy\core\inventory\inventory.py", line 344, in obspy.core.inventory.inventory.Inventory.get_response
Failed example:
print(response) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.inventory.inventory.Inventory.get_response[4]>", line 1, in <module>
print(response) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'response' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.catalog.Catalog.copy
File "obspy\core\event\catalog.py", line 402, in copy
----------------------------------------------------------------------
File "obspy\core\event\catalog.py", line 424, in obspy.core.event.catalog.Catalog.copy
Failed example:
cat == cat2
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.catalog.Catalog.copy[4]>", line 1, in <module>
cat == cat2
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\event\base.py", line 350, in __ne__
return not self.__eq__(other)
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.catalog.Catalog.filter
File "obspy\core\event\catalog.py", line 274, in filter
----------------------------------------------------------------------
File "obspy\core\event\catalog.py", line 302, in obspy.core.event.catalog.Catalog.filter
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.catalog.Catalog.filter[2]>", line 1, in <module>
print(cat)
File "obspy\core\event\catalog.py", line 236, in __str__
out += "\n".join([ev.short_str() for ev in self])
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\event\catalog.py", line 308, in obspy.core.event.catalog.Catalog.filter
Failed example:
print(cat2)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.catalog.Catalog.filter[4]>", line 1, in <module>
print(cat2)
File "obspy\core\event\catalog.py", line 236, in __str__
out += "\n".join([ev.short_str() for ev in self])
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\event\catalog.py", line 311, in obspy.core.event.catalog.Catalog.filter
Failed example:
cat3 = cat.filter("time > 2012-04-04T14:10",
"time < 2012-04-04T14:20")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.catalog.Catalog.filter[5]>", line 2, in <module>
"time < 2012-04-04T14:20")
File "obspy\core\event\catalog.py", line 381, in filter
float(value))):
File "obspy\core\event\catalog.py", line 338, in _is_greater
if value_1 is None or value_1 <= value_2:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\event\catalog.py", line 313, in obspy.core.event.catalog.Catalog.filter
Failed example:
print(cat3)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.catalog.Catalog.filter[6]>", line 1, in <module>
print(cat3)
NameError: name 'cat3' is not defined
----------------------------------------------------------------------
File "obspy\core\event\catalog.py", line 316, in obspy.core.event.catalog.Catalog.filter
Failed example:
cat4 = cat.filter("time > 2012-04-04T14:10",
"time < 2012-04-04T14:20",
inverse=True)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.catalog.Catalog.filter[7]>", line 3, in <module>
inverse=True)
File "obspy\core\event\catalog.py", line 381, in filter
float(value))):
File "obspy\core\event\catalog.py", line 338, in _is_greater
if value_1 is None or value_1 <= value_2:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\core\event\catalog.py", line 319, in obspy.core.event.catalog.Catalog.filter
Failed example:
print(cat4)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.core.event.catalog.Catalog.filter[8]>", line 1, in <module>
print(cat4)
NameError: name 'cat4' is not defined
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 588, in test_select
self.assertEqual(stream, stream2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2193, in test_select_empty_strings
self.assertEqual(st.select(network=""), st2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2218, in test_remove_sensitivity
tr.remove_sensitivity()
File "<decorator-gen-29>", line 2, in remove_sensitivity
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 2902, in remove_sensitivity
response = self._get_response(inventory)
File "obspy\core\trace.py", line 2533, in _get_response
raise ValueError(msg)
ValueError: No response information found. Use `inventory` parameter to specify an inventory with response information.
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 556, in test_reverse
self.assertEqual(traces[_i].stats, stream[_i].stats)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1888, in test_rotate
st.rotate(method='NE->RT', back_azimuth=30)
File "obspy\core\stream.py", line 2663, in rotate
(abs(i_1.stats.starttime - i_2.stats.starttime) > dt) \
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2535, in test_rotate_to_zne
st.rotate("->ZNE", inventory=metadata)
File "obspy\core\stream.py", line 2625, in rotate
return self._rotate_to_zne(inventory, **kwargs)
File "obspy\core\stream.py", line 3250, in _rotate_to_zne
net, sta, loc, channels_, inventory)
File "obspy\core\stream.py", line 3303, in _rotate_specific_channels_to_zne
st._trim_common_channels()
File "obspy\core\stream.py", line 3191, in _trim_common_channels
self._cleanup()
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1373, in test_read_pickle
UTCDateTime('2009-08-24T00:20:03.000000Z'))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 1844, in test_read_url_via_network
endtime=tr.stats.endtime - 2)[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 254, in read
st._ltrim(starttime, nearest_sample=nearest_sample)
File "obspy\core\stream.py", line 1530, in _ltrim
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 540, in test_remove
self.assertEqual(stream, stream2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\core\tests\test_stream.py", line 2206, in test_remove_response
tr.remove_response(pre_filt=(0.1, 0.5, 30, 50))
File "<decorator-gen-28>", line 2, in remove_response
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 2721, in remove_response
response = self._get_response(inventory)
File "obspy\core\trace.py", line 2533, in _get_response
raise ValueError(msg)
ValueError: No response information found. Use `inventory` parameter to specify an inventory with response information.
Traceback (most recent call last):
File "obspy\db\tests\test_util.py", line 27, in test_parse_mapping
results = parse_mapping_data(data)
File "obspy\db\util.py", line 68, in parse_mapping_data
if temp['endtime'] < temp['starttime']:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\db\tests\test_client.py", line 221, in test_get_preview
st = self.client.get_preview(starttime=dt, endtime=dt2)
File "obspy\db\client.py", line 283, in get_preview
st = merge_previews(st)
File "obspy\core\preview.py", line 99, in merge_previews
stream.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\db\tests\test_client.py", line 161, in test_get_end_times
UTCDateTime(2012, 1, 2, 23, 59, 59, 999999))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
>>> Cannot import test suite for module obspy.imaging due to:
-------------------------------------------------------------
File "C:\Miniconda-x64\envs\test\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Miniconda-x64\envs\test\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\projects\obspy\obspy\scripts\runtests.py", line 748, in <module>
errors = run(interactive=False)
File "C:\projects\obspy\obspy\scripts\runtests.py", line 706, in run
pr_url=args.pr_url)
File "C:\projects\obspy\obspy\scripts\runtests.py", line 533, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "C:\projects\obspy\obspy\scripts\runtests.py", line 154, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "C:\Miniconda-x64\envs\test\lib\unittest\loader.py", line 115, in loadTestsFromName
test = obj()
File "obspy\imaging\tests\__init__.py", line 24, in suite
add_unittests(suite, MODULE_NAME)
File "obspy\core\util\testing.py", line 72, in add_unittests
fromlist=[native_str("obspy")])
File "obspy\imaging\tests\test_ppsd.py", line 16, in <module>
from obspy.signal.tests.test_spectral_estimation import _get_ppsd
File "obspy\signal\tests\test_spectral_estimation.py", line 89, in <module>
_ppsd = _internal_get_ppsd()
File "obspy\signal\tests\test_spectral_estimation.py", line 84, in _internal_get_ppsd
ppsd.add(st)
File "obspy\signal\spectral_estimation.py", line 721, in add
while t1 + self.ppsd_length <= t2:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ah\tests\test_core.py", line 121, in test_read_ah
self.assertEqual(ah.record.start_time, dt)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ah\tests\test_core.py", line 282, in test_write_ah1
self.assertEqual(stats.starttime, starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ah\tests\test_core.py", line 222, in test_tsg
self.assertEqual(ah.event.origin_time, UTCDateTime(1988, 2, 8, 15, 23))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\arclink\tests\test_inventory_xml.py", line 102, in test_auto_read_arclink_xml
self.assertEqual(arc.start_date, st_xml.start_date)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 241, in test_read_tspair_head_only
UTCDateTime("2008-01-15T00:00:00.025000"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 467, in test_write_slist
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 516, in test_write_slist_custom_fmt_float
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 341, in test_write_tspair_custom_fmt
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 135, in test_read_slist_file_encoding
UTCDateTime("2008-01-15T00:00:00.025000"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 117, in test_read_slist_file_head_only
UTCDateTime("2008-01-15T00:00:00.025000"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 70, in test_read_slist_file_multiple_traces
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 46, in test_read_slist_file_single_trace
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 253, in test_read_tspair_file_encoding
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 190, in test_read_tspair_file_multiple_traces
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 165, in test_read_tspair_file_single_trace
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 561, in test_write_slist_custom_fmt_custom
'194.0500031\t205.0599976')
AssertionError: u'185.0099945\t181.0200043\t185.0299988\t189.0399933\t194.0500031\t205.0599976' != u'185.0099945\t181.02000430000001\t185.02999879999999\t189.03999329999999\t194.0 [truncated]...
- 185.0099945	181.0200043	185.0299988	189.0399933	194.0500031	205.0599976
? ^ ^
+ 185.0099945	181.02000430000001	185.02999879999999	189.03999329999999	194.0500031	205.0599976
? +++++++ ^^^^^^^^ ^^^^^^^^
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 294, in test_write_tspair
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 406, in test_write_tspair_file_multiple_traces
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ascii\tests\test_ascii.py", line 581, in test_write_slist_file_multiple_traces
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\cmtsolution\tests\test_core.py", line 98, in test_read_and_write_cmtsolution_from_open_files
cat.write(tf, format="CMTSOLUTION")
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\cmtsolution\core.py", line 314, in _write_cmtsolution
file_mode="wb", catalog=catalog, **kwargs)
File "obspy\io\cmtsolution\core.py", line 62, in _buffer_proxy
ret_val = function(filename_or_buf, *args, **kwargs)
File "obspy\io\cmtsolution\core.py", line 330, in _internal_write_cmtsolution
_internal_write_single_cmtsolution(buf, event)
File "obspy\io\cmtsolution\core.py", line 486, in _internal_write_single_cmtsolution
time_shift=cmt_origin.time - hypo_origin.time,
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\cmtsolution\tests\test_core.py", line 44, in test_read_and_write_cmtsolution_from_files
cat.write(temp_filename, format="CMTSOLUTION")
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\cmtsolution\core.py", line 314, in _write_cmtsolution
file_mode="wb", catalog=catalog, **kwargs)
File "obspy\io\cmtsolution\core.py", line 68, in _buffer_proxy
return function(fh, *args, **kwargs)
File "obspy\io\cmtsolution\core.py", line 330, in _internal_write_cmtsolution
_internal_write_single_cmtsolution(buf, event)
File "obspy\io\cmtsolution\core.py", line 486, in _internal_write_single_cmtsolution
time_shift=cmt_origin.time - hypo_origin.time,
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\cmtsolution\tests\test_core.py", line 123, in test_read_and_write_cmtsolution_from_bytes_io
cat.write(buf2, format="CMTSOLUTION")
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\cmtsolution\core.py", line 314, in _write_cmtsolution
file_mode="wb", catalog=catalog, **kwargs)
File "obspy\io\cmtsolution\core.py", line 62, in _buffer_proxy
ret_val = function(filename_or_buf, *args, **kwargs)
File "obspy\io\cmtsolution\core.py", line 330, in _internal_write_cmtsolution
_internal_write_single_cmtsolution(buf, event)
File "obspy\io\cmtsolution\core.py", line 486, in _internal_write_single_cmtsolution
time_shift=cmt_origin.time - hypo_origin.time,
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\cmtsolution\tests\test_core.py", line 148, in test_read_and_write_cmtsolution_explosion
cat.write(buf2, format="CMTSOLUTION")
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\cmtsolution\core.py", line 314, in _write_cmtsolution
file_mode="wb", catalog=catalog, **kwargs)
File "obspy\io\cmtsolution\core.py", line 62, in _buffer_proxy
ret_val = function(filename_or_buf, *args, **kwargs)
File "obspy\io\cmtsolution\core.py", line 330, in _internal_write_cmtsolution
_internal_write_single_cmtsolution(buf, event)
File "obspy\io\cmtsolution\core.py", line 486, in _internal_write_single_cmtsolution
time_shift=cmt_origin.time - hypo_origin.time,
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\cmtsolution\tests\test_core.py", line 72, in test_write_no_preferred_focal_mechanism
cat.write(temp_filename, format="CMTSOLUTION")
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\cmtsolution\core.py", line 314, in _write_cmtsolution
file_mode="wb", catalog=catalog, **kwargs)
File "obspy\io\cmtsolution\core.py", line 68, in _buffer_proxy
return function(fh, *args, **kwargs)
File "obspy\io\cmtsolution\core.py", line 330, in _internal_write_cmtsolution
_internal_write_single_cmtsolution(buf, event)
File "obspy\io\cmtsolution\core.py", line 486, in _internal_write_single_cmtsolution
time_shift=cmt_origin.time - hypo_origin.time,
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\cmtsolution\tests\test_core.py", line 188, in test_read_and_write_multiple_cmtsolution_from_files
cat.write(temp_filename, format="CMTSOLUTION")
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\cmtsolution\core.py", line 314, in _write_cmtsolution
file_mode="wb", catalog=catalog, **kwargs)
File "obspy\io\cmtsolution\core.py", line 68, in _buffer_proxy
return function(fh, *args, **kwargs)
File "obspy\io\cmtsolution\core.py", line 330, in _internal_write_cmtsolution
_internal_write_single_cmtsolution(buf, event)
File "obspy\io\cmtsolution\core.py", line 486, in _internal_write_single_cmtsolution
time_shift=cmt_origin.time - hypo_origin.time,
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\cmtsolution\tests\test_core.py", line 220, in test_read_and_write_multiple_events_from_bytes_io
cat.write(buf2, format="CMTSOLUTION")
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\cmtsolution\core.py", line 314, in _write_cmtsolution
file_mode="wb", catalog=catalog, **kwargs)
File "obspy\io\cmtsolution\core.py", line 62, in _buffer_proxy
ret_val = function(filename_or_buf, *args, **kwargs)
File "obspy\io\cmtsolution\core.py", line 330, in _internal_write_cmtsolution
_internal_write_single_cmtsolution(buf, event)
File "obspy\io\cmtsolution\core.py", line 486, in _internal_write_single_cmtsolution
time_shift=cmt_origin.time - hypo_origin.time,
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\cnv\tests\test_core.py", line 40, in test_write_cnv
cat.write(tf, format="CNV")
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\cnv\core.py", line 129, in _write_cnv
dt = "%6.2f" % (p.time - o.time)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\css\tests\test_core.py", line 123, in test_nnsa_kb_core_read_via_module
self.assertEqual(st, self.st_result_nnsa)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\css\tests\test_core.py", line 112, in test_nnsa_kb_core_read_via_obspy
self.assertEqual(st, self.st_result_nnsa)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\css\tests\test_core.py", line 104, in test_css_read_via_module
self.assertEqual(st, self.st_result_css)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\css\tests\test_core.py", line 93, in test_css_read_via_obspy
self.assertEqual(st, self.st_result_css)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 597, in __eq__
self_sorted.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "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 "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gcf\core.py", line 100, in _read_gcf
st = merge_gcf_stream(st)
File "obspy\io\gcf\core.py", line 30, in merge_gcf_stream
and not starttime == trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gcf\tests\test_core.py", line 95, in test_read_head_via_module
st = _read_gcf(filename, headonly=True)
File "obspy\io\gcf\core.py", line 100, in _read_gcf
st = merge_gcf_stream(st)
File "obspy\io\gcf\core.py", line 30, in merge_gcf_stream
and not starttime == trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "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 "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gcf\core.py", line 102, in _read_gcf
st.merge(-1)
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gcf\tests\test_core.py", line 76, in test_read_via_module
st = _read_gcf(filename)
File "obspy\io\gcf\core.py", line 102, in _read_gcf
st.merge(-1)
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gcf.core._read_gcf
File "obspy\io\gcf\core.py", line 60, in _read_gcf
----------------------------------------------------------------------
File "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 "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in 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 "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gcf\core.py", line 102, in _read_gcf
st.merge(-1)
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "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 "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gcf\core.py", line 100, in _read_gcf
st = merge_gcf_stream(st)
File "obspy\io\gcf\core.py", line 30, in merge_gcf_stream
and not starttime == trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gcf.__init__
File "obspy\io\gcf\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "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 "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in 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 "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gcf\core.py", line 102, in _read_gcf
st.merge(-1)
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "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 "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gcf\core.py", line 100, in _read_gcf
st = merge_gcf_stream(st)
File "obspy\io\gcf\core.py", line 30, in merge_gcf_stream
and not starttime == trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "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 "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gcf\core.py", line 100, in _read_gcf
st = merge_gcf_stream(st)
File "obspy\io\gcf\core.py", line 30, in merge_gcf_stream
and not starttime == trace.stats.starttime:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_core.py", line 170, in test_write_integers_via_obspy
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 43, in test_catalog
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 142, in test_pick
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 700, in test_read_events
catalog = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "obspy\core\util\decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\event\catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\event\catalog.py", line 858, in _read
**kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 198, in test_arrival
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 247, in test_magnitude
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 553, in test_non_standard_format
event_point_separator=True)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 85, in test_origin
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 486, in test_parameters
fields, False, 'AGE')
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 57, in test_event
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 705, in test_incomplete_file
self.assertRaises(GSE2BulletinSyntaxError, _read_gse2, filename)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 597, in test_inventory
event_point_separator=True)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 637, in test_inventory_with_multiple_channels
event_point_separator=True)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.__init__
File "obspy\io\gse2\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\gse2\__init__.py", line 79, in obspy.io.gse2.__init__
Failed example:
print(st[0].data)
Expected:
[ 12 -10 16 ..., 8 0 -40]
Got:
[ 12 -10 16 ... 8 0 -40]
----------------------------------------------------------------------
File "obspy\io\gse2\__init__.py", line 98, in obspy.io.gse2.__init__
Failed example:
catalog = read_events('/path/to/bulletin/gse_2.0_standard.txt')
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[10]>", line 1, in <module>
catalog = read_events('/path/to/bulletin/gse_2.0_standard.txt')
File "<decorator-gen-42>", line 2, in read_events
File "obspy\core\util\decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\event\catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\event\catalog.py", line 858, in _read
**kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\io\gse2\__init__.py", line 99, in obspy.io.gse2.__init__
Failed example:
print(catalog)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[11]>", line 1, in <module>
print(catalog)
NameError: name 'catalog' is not defined
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.bulletin._read_gse2
File "obspy\io\gse2\bulletin.py", line 984, in _read_gse2
----------------------------------------------------------------------
File "obspy\io\gse2\bulletin.py", line 1107, in obspy.io.gse2.bulletin._read_gse2
Failed example:
catalog = read_events('/path/to/bulletin/gse_2.0_non_standard.txt',
default_network_code='FR', res_id_prefix='quakeml:abc',
fields=fields, event_point_separator=True)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.bulletin._read_gse2[3]>", line 3, in <module>
fields=fields, event_point_separator=True)
File "<decorator-gen-42>", line 2, in read_events
File "obspy\core\util\decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\event\catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\event\catalog.py", line 858, in _read
**kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\io\gse2\bulletin.py", line 1110, in obspy.io.gse2.bulletin._read_gse2
Failed example:
print(catalog)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.bulletin._read_gse2[4]>", line 1, in <module>
print(catalog)
NameError: name 'catalog' is not defined
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_libgse2.py", line 50, in test_read
header['starttime'])
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_libgse2.py", line 108, in test_bytes_io
self.assertEqual(header, newheader)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_libgse2.py", line 126, in test_read_header
header['starttime'])
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_libgse2.py", line 87, in test_read_and_write
self.assertEqual(header, newheader)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 323, in test_amplitude
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_core.py", line 38, in test_read_via_obspy
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_core.py", line 282, in test_read_intv_gse1_via_obspy
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_core.py", line 358, in test_read_gse2_int_datatype
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_core.py", line 239, in test_read_gse1_via_obspy
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_core.py", line 79, in test_read_and_write_via_obspy
st1.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_core.py", line 131, in test_read_and_write_streams_via_obspy
st1.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 289, in test_station_magnitude
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 387, in test_several_events
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\gse2\tests\test_bulletin.py", line 666, in test_several_begin
catalog = _read_gse2(filename)
File "obspy\io\gse2\bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "obspy\io\gse2\bulletin.py", line 246, in load
return self._deserialize()
File "obspy\io\gse2\bulletin.py", line 961, in _deserialize
event = self._parse_event(line)
File "obspy\io\gse2\bulletin.py", line 431, in _parse_event
origin, origin_res_id = self._parse_origin(event)
File "obspy\io\gse2\bulletin.py", line 481, in _parse_origin
if not origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\iaspei\tests\test_core.py", line 126, in test_reading_via_bytes_io
cat = _read_ims10_bulletin(buf, _no_uuid_hashes=True)
File "obspy\io\iaspei\core.py", line 627, in _read_ims10_bulletin
reset_fp=False, **kwargs)
File "obspy\io\iaspei\core.py", line 609, in _buffer_proxy
ret_val = function(filename_or_buf, *args, **kwargs)
File "obspy\io\iaspei\core.py", line 641, in __read_ims10_bulletin
return ISFReader(fh, **kwargs).deserialize()
File "obspy\io\iaspei\core.py", line 89, in deserialize
self._deserialize()
File "obspy\io\iaspei\core.py", line 107, in _deserialize
self._process_block()
File "obspy\io\iaspei\core.py", line 156, in _process_block
self._read_phases()
File "obspy\io\iaspei\core.py", line 171, in _read_phases
pick, amplitude, station_magnitude = self._parse_phase(line)
File "obspy\io\iaspei\core.py", line 496, in _parse_phase
time = self._get_pick_time(line[28:40])
File "obspy\io\iaspei\core.py", line 441, in _get_pick_time
origin_time_min = min(origin_times)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\iaspei\tests\test_core.py", line 101, in test_reading
cat = _read_ims10_bulletin(self.path_to_ims, _no_uuid_hashes=True)
File "obspy\io\iaspei\core.py", line 627, in _read_ims10_bulletin
reset_fp=False, **kwargs)
File "obspy\io\iaspei\core.py", line 615, in _buffer_proxy
return function(fh, *args, **kwargs)
File "obspy\io\iaspei\core.py", line 641, in __read_ims10_bulletin
return ISFReader(fh, **kwargs).deserialize()
File "obspy\io\iaspei\core.py", line 89, in deserialize
self._deserialize()
File "obspy\io\iaspei\core.py", line 107, in _deserialize
self._process_block()
File "obspy\io\iaspei\core.py", line 156, in _process_block
self._read_phases()
File "obspy\io\iaspei\core.py", line 171, in _read_phases
pick, amplitude, station_magnitude = self._parse_phase(line)
File "obspy\io\iaspei\core.py", line 496, in _parse_phase
time = self._get_pick_time(line[28:40])
File "obspy\io\iaspei\core.py", line 441, in _get_pick_time
origin_time_min = min(origin_times)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\iaspei\tests\test_core.py", line 135, in test_reading_via_plugin
_no_uuid_hashes=True)
File "<decorator-gen-42>", line 2, in read_events
File "obspy\core\util\decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\event\catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\event\catalog.py", line 858, in _read
**kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\iaspei\core.py", line 627, in _read_ims10_bulletin
reset_fp=False, **kwargs)
File "obspy\io\iaspei\core.py", line 615, in _buffer_proxy
return function(fh, *args, **kwargs)
File "obspy\io\iaspei\core.py", line 641, in __read_ims10_bulletin
return ISFReader(fh, **kwargs).deserialize()
File "obspy\io\iaspei\core.py", line 89, in deserialize
self._deserialize()
File "obspy\io\iaspei\core.py", line 107, in _deserialize
self._process_block()
File "obspy\io\iaspei\core.py", line 156, in _process_block
self._read_phases()
File "obspy\io\iaspei\core.py", line 171, in _read_phases
pick, amplitude, station_magnitude = self._parse_phase(line)
File "obspy\io\iaspei\core.py", line 496, in _parse_phase
time = self._get_pick_time(line[28:40])
File "obspy\io\iaspei\core.py", line 441, in _get_pick_time
origin_time_min = min(origin_times)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\iaspei\tests\test_core.py", line 110, in test_reading_via_file
cat = _read_ims10_bulletin(fh, _no_uuid_hashes=True)
File "obspy\io\iaspei\core.py", line 627, in _read_ims10_bulletin
reset_fp=False, **kwargs)
File "obspy\io\iaspei\core.py", line 609, in _buffer_proxy
ret_val = function(filename_or_buf, *args, **kwargs)
File "obspy\io\iaspei\core.py", line 641, in __read_ims10_bulletin
return ISFReader(fh, **kwargs).deserialize()
File "obspy\io\iaspei\core.py", line 89, in deserialize
self._deserialize()
File "obspy\io\iaspei\core.py", line 107, in _deserialize
self._process_block()
File "obspy\io\iaspei\core.py", line 156, in _process_block
self._read_phases()
File "obspy\io\iaspei\core.py", line 171, in _read_phases
pick, amplitude, station_magnitude = self._parse_phase(line)
File "obspy\io\iaspei\core.py", line 496, in _parse_phase
time = self._get_pick_time(line[28:40])
File "obspy\io\iaspei\core.py", line 441, in _get_pick_time
origin_time_min = min(origin_times)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\json\tests\test_json.py", line 44, in test_default
s = json.dumps(self.event, default=default)
File "C:\Miniconda-x64\envs\test\lib\json\__init__.py", line 251, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File "C:\Miniconda-x64\envs\test\lib\json\encoder.py", line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Miniconda-x64\envs\test\lib\json\encoder.py", line 270, in iterencode
return _iterencode(o, 0)
File "obspy\io\json\default.py", line 69, in __call__
return {k: v for k, v in obj.items() if v or v == 0}
File "obspy\io\json\default.py", line 69, in <dictcomp>
return {k: v for k, v in obj.items() if v or v == 0}
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\json\tests\test_json.py", line 55, in test_get_dump_kwargs
s1 = json.dumps(self.event, **kw)
File "C:\Miniconda-x64\envs\test\lib\json\__init__.py", line 251, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File "C:\Miniconda-x64\envs\test\lib\json\encoder.py", line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Miniconda-x64\envs\test\lib\json\encoder.py", line 270, in iterencode
return _iterencode(o, 0)
File "obspy\io\json\default.py", line 69, in __call__
return {k: v for k, v in obj.items() if v or v == 0}
File "obspy\io\json\default.py", line 69, in <dictcomp>
return {k: v for k, v in obj.items() if v or v == 0}
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\kinemetrics\tests\test_core.py", line 181, in test_read_via_module
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\kinemetrics\tests\test_core.py", line 231, in test_read_via_module_and_bytesio
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.kinemetrics.__init__
File "obspy\io\kinemetrics\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\kinemetrics\__init__.py", line 100, in obspy.io.kinemetrics.__init__
Failed example:
print(st[0].data)
Expected:
[-0.02446475 -0.02453492 -0.02446709 ..., -0.02452556 -0.02450685
-0.02442499]
Got:
[-0.02446475 -0.02453492 -0.02446709 ... -0.02452556 -0.02450685
-0.02442499]
Traceback (most recent call last):
File "obspy\io\kinemetrics\tests\test_core.py", line 83, in test_read_via_obspy
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\kinemetrics\tests\test_core.py", line 132, in test_reading_via_obspy_and_bytesio
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\kml\tests\test_kml.py", line 30, in test_write_inventory
inv.write(native_str(tf.name), format="KML")
File "obspy\core\inventory\inventory.py", line 320, in write
return write_format(self, path_or_file_object, **kwargs)
File "obspy\io\kml\core.py", line 293, in _write_kml
kml_string = inventory_to_kml_string(obj, **kwargs)
File "obspy\io\kml\core.py", line 125, in inventory_to_kml_string
end < twenty_years_from_now:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\kml\tests\test_kml.py", line 47, in test_write_catalog
cat.write(native_str(tf.name), format="KML")
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\kml\core.py", line 291, in _write_kml
kml_string = catalog_to_kml_string(obj, **kwargs)
File "obspy\io\kml\core.py", line 236, in catalog_to_kml_string
SubElement(folder, "description").text = str(catalog)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\types\newstr.py", line 102, in __new__
return super(newstr, cls).__new__(cls, value)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\types\newobject.py", line 78, in __unicode__
s = type(self).__str__(self)
File "obspy\core\event\catalog.py", line 236, in __str__
out += "\n".join([ev.short_str() for ev in self])
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 804, in test_mseed_zero_data_offset
UTCDateTime("2016-08-21T01:41:19.000000Z"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 848, in test_mseed_zero_data_headonly
self.assertEqual(tr.stats.starttime, exp[1])
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 1049, in test_reading_file_with_data_offset_of_48
UTCDateTime(1995, 9, 22, 0, 0, 18, 238400))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 899, in test_read_file_with_microsecond_wrap
self.assertEqual(info["starttime"], tr.stats.starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 219, in test_write_with_date_time_before_1970
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 921, in test_reading_miniseed_with_no_blockette_1000
UTCDateTime(1976, 3, 10, 3, 28))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 123, in test_convert_datetime
dt, util._convert_mstime_to_datetime(ts * 1000000))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 667, in test_check_flag_value
UTCDateTime("2009-12-23T06:00:00.0"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 924, in test_convert_flags_to_raw_bytes
FIXED_HEADER_ACTIVITY_FLAGS, user_flags, recstart, recend)
File "obspy\io\mseed\util.py", line 1465, in _convert_flags_to_raw_byte
if(event_start < recend) and (recstart <= event_end):
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 147, in test_convert_datetime2
util._convert_datetime_to_mstime(dt)))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 376, in test_read_partial_with_only_starttime_set
self.assertTrue(starttime < stream[0].stats.starttime)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 363, in test_read_partial_time_window_from_file
self.assertTrue(starttime < stream[0].stats.starttime)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 474, in test_read_ms_traces_via_records_multiple_ids
st = read(file, starttime=starttime, endtime=endtime)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 254, in read
st._ltrim(starttime, nearest_sample=nearest_sample)
File "obspy\core\stream.py", line 1530, in _ltrim
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 314, in test_read_file_via_mseed
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 222, in test_read_and_write_file_with_gaps
self.assertEqual(tr1.stats, tr2.stats)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 1495, in test_libmseed_test_cases
assert_valid(test_file, ref_file, test_type)
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 1368, in assert_valid
self.assertEqual(tr.stats.starttime, dt, msg=filename)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 643, in test_header
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 1016, in test_bizarre_files
UTCDateTime("2003-05-29T02:13:22.043400Z"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 621, in test_read_with_wild_card
st.merge()
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 711, in test_read_parts_of_file
tr1 = read(file, starttime=t[0], endtime=t[1])[0]
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 254, in read
st._ltrim(starttime, nearest_sample=nearest_sample)
File "obspy\core\stream.py", line 1530, in _ltrim
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 1242, in test_get_record_information_with_invalid_word_order
self.assertEqual(len(w), 1)
AssertionError: 0 != 1
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.mseed.core._read_mseed
File "obspy\io\mseed\core.py", line 147, in _read_mseed
----------------------------------------------------------------------
File "obspy\io\mseed\core.py", line 204, in obspy.io.mseed.core._read_mseed
Failed example:
st = read("/path/to/two_channels.mseed",
starttime=UTCDateTime("2010-06-20T00:00:01"),
sourcename="*.?HZ")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.mseed.core._read_mseed[4]>", line 3, in <module>
sourcename="*.?HZ")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 254, in read
st._ltrim(starttime, nearest_sample=nearest_sample)
File "obspy\core\stream.py", line 1530, in _ltrim
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\io\mseed\core.py", line 207, in obspy.io.mseed.core._read_mseed
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
1 Trace(s) in Stream:
BW.UH3..EHZ | 2010-06-20T00:00:00.999999Z - ... | 200.0 Hz, 242 samples
Got:
2 Trace(s) in Stream:
BW.UH3..EHE | 2010-06-20T00:00:00.279999Z - 2010-06-20T00:00:02.204999Z | 200.0 Hz, 386 samples
BW.UH3..EHZ | 2010-06-20T00:00:00.279999Z - 2010-06-20T00:00:02.204999Z | 200.0 Hz, 386 samples
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.mseed.__init__
File "obspy\io\mseed\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\mseed\__init__.py", line 65, in obspy.io.mseed.__init__
Failed example:
print(st[0].data)
Expected:
[2787 2776 2774 ..., 2850 2853 2853]
Got:
[2787 2776 2774 ... 2850 2853 2853]
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 579, in test_time_shifting
self.assertEqual(st_before, st_after)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 600, in __eq__
if self_sorted.traces != other_sorted.traces:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 637, in test_time_shifting_special_case
self.assertEqual(st_before, st_after)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\stream.py", line 600, in __eq__
if self_sorted.traces != other_sorted.traces:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 489, in test_get_start_and_end_time
self.assertEqual(start, stream[0].stats.starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_util.py", line 1100, in test_set_flags_in_fixed_header
set_flags_in_fixed_headers(file_name, dated_traces)
File "obspy\io\mseed\util.py", line 1019, in set_flags_in_fixed_headers
corrected_flag = _check_flag_value(flag_value)
File "obspy\io\mseed\util.py", line 1289, in _check_flag_value
if start <= end:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 591, in test_enforcing_reading_byteorder
self.assertEqual(tr, tr2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 327, in test_issue160
tr.stats.endtime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 346, in test_issue217
tr.stats.endtime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 490, in test_issue325
st2 = read(filename, starttime=t1, endtime=t2)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 254, in read
st._ltrim(starttime, nearest_sample=nearest_sample)
File "obspy\core\stream.py", line 1530, in _ltrim
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1139, in trim
fill_value=fill_value)
File "obspy\core\trace.py", line 979, in _ltrim
(starttime - self.stats.starttime) * self.stats.sampling_rate)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 942, in test_reading_and_writing_dataquality
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 1047, in test_write_and_read_different_encodings
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 443, in test_write_integers
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 904, in test_writing_microseconds
self.assertEqual(st[0].stats.starttime, st2[0].stats.starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_reading_and_writing.py", line 389, in test__partial_with_only_endtime_set
self.assertEqual(starttime, stream[0].stats.starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 645, in test_long_year_range
self.assertEqual(tr, tr2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\mseed\tests\test_mseed_special_issues.py", line 731, in test_microsecond_accuracy_reading_and_writing_before_1970
self.assertEqual(tr2.stats.starttime, starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 248, in test_reading_from_string
self.assertEqual(cat, ref_cat)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 151, in test_reading_from_open_file_in_text_mode
self.assertEqual(cat, ref_cat)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 164, in test_reading_from_open_file_in_binary_mode
self.assertEqual(cat, ref_cat)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 265, in test_reading_from_bytestring
self.assertEqual(cat, ref_cat)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ndk.__init__
File "obspy\io\ndk\__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "obspy\io\ndk\__init__.py", line 61, in obspy.io.ndk.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.ndk.__init__[2]>", line 1, in <module>
print(cat)
File "obspy\core\event\catalog.py", line 236, in __str__
out += "\n".join([ev.short_str() for ev in self])
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 106, in test_reading_using_obspy_plugin
self.assertEqual(cat, ref_cat)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 179, in test_reading_the_same_file_twice_does_not_raise_a_warnings
self.assertEqual(cat_1, cat_2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 122, in test_reading_from_string_io
self.assertEqual(cat, ref_cat)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 327, in test_parse_date_time_function
UTCDateTime(1997, 11, 3, 19, 17, 33, int(8E5)))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 39, in test_read_single_ndk
self.assertEqual(cat, ref_cat)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\ndk\tests\test_ndk.py", line 138, in test_reading_from_bytes_io
self.assertEqual(cat, ref_cat)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nied\tests\test_knet_reading.py", line 47, in test_read_knet_ascii_from_open_files
duration = int(tr.stats.endtime - tr.stats.starttime + 0.5)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.nied.__init__
File "obspy\io\nied\__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "obspy\io\nied\__init__.py", line 23, in obspy.io.nied.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[2]>", line 1, in <module>
print(cat)
File "obspy\core\event\catalog.py", line 236, in __str__
out += "\n".join([ev.short_str() for ev in self])
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "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 "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[3]>", line 1, in <module>
print(cat[0]) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
File "obspy\core\event\event.py", line 133, in __str__
self.short_str(),
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nied\tests\test_knet_reading.py", line 66, in test_read_knet_ascii_from_bytes_io
duration = int(tr.stats.endtime - tr.stats.starttime + 0.5)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nied\tests\test_knet_reading.py", line 32, in test_read_knet_ascii
duration = int(tr.stats.endtime - tr.stats.starttime + 0.5)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nlloc\tests\test_core.py", line 278, in test_read_nlloc_6_beta_signature
UTCDateTime(2017, 5, 9, 11, 0, 22))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nlloc\tests\test_core.py", line 97, in test_read_nlloc_hyp
self.assertEqual(cat[0].creation_info.creation_time, creation_time)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nlloc\tests\test_core.py", line 130, in test_read_nlloc_hyp_with_builtin_projection
ev_expected.creation_info.creation_time)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 537, in assertAlmostEqual
if first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.nlloc.__init__
File "obspy\io\nlloc\__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "obspy\io\nlloc\__init__.py", line 24, in obspy.io.nlloc.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nlloc.__init__[2]>", line 1, in <module>
print(cat)
File "obspy\core\event\catalog.py", line 236, in __str__
out += "\n".join([ev.short_str() for ev in self])
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "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 "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nlloc.__init__[4]>", line 1, in <module>
print(event) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
File "obspy\core\event\event.py", line 133, in __str__
self.short_str(),
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "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 "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nlloc.__init__[6]>", line 1, in <module>
print(origin) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
File "obspy\core\event\base.py", line 252, in __str__
_i.endswith("_errors") and _bool(getattr(self, _i))]
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nordic\tests\test_nordic.py", line 472, in test_read_moment_info
spec_inf = read_spectral_info(testing_path)
File "obspy\io\nordic\core.py", line 337, in read_spectral_info
spec_inf = _read_spectral_info(f=f)
File "obspy\io\nordic\core.py", line 392, in _read_spectral_info
if info['starttime'] < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nordic\tests\test_nordic.py", line 510, in test_read_picks_across_day_end
self.assertGreater(pick.time, event.origins[0].time)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 940, in assertGreater
if not a > b:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nordic\tests\test_nordic.py", line 330, in test_reading_bytes_io
_assert_similarity(cat[0], ref_cat[0])
File "obspy\io\nordic\tests\test_nordic.py", line 554, in _assert_similarity
if not _test_similarity(event_1, event_2, verbose=verbose):
File "obspy\io\nordic\tests\test_nordic.py", line 581, in _test_similarity
if ori_1[key] != ori_2[key]:
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nordic\tests\test_nordic.py", line 62, in test_read_write
self.assertEqual(read_pick.time, test_pick.time)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nordic\tests\test_nordic.py", line 426, in test_write_plugin
cat.write(tf.name, format='nordic')
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\nordic\core.py", line 765, in write_select
string_io=select)
File "obspy\io\nordic\core.py", line 882, in _write_nordic
if event.creation_info:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nordic\tests\test_nordic.py", line 315, in test_reading_string_io
_assert_similarity(cat[0], ref_cat[0])
File "obspy\io\nordic\tests\test_nordic.py", line 554, in _assert_similarity
if not _test_similarity(event_1, event_2, verbose=verbose):
File "obspy\io\nordic\tests\test_nordic.py", line 581, in _test_similarity
if ori_1[key] != ori_2[key]:
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nordic\tests\test_nordic.py", line 295, in test_header_mapping
_assert_similarity(head_1, head_2)
File "obspy\io\nordic\tests\test_nordic.py", line 554, in _assert_similarity
if not _test_similarity(event_1, event_2, verbose=verbose):
File "obspy\io\nordic\tests\test_nordic.py", line 581, in _test_similarity
if ori_1[key] != ori_2[key]:
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nordic\tests\test_nordic.py", line 278, in test_read_extra_header
header_event.origins[0].time)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\nordic\tests\test_nordic.py", line 414, in test_write_select
write_select(cat, filename=tf.name)
File "obspy\io\nordic\core.py", line 765, in write_select
string_io=select)
File "obspy\io\nordic\core.py", line 882, in _write_nordic
if event.creation_info:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pdas\tests\test_core.py", line 51, in test_read_pdas
self.assertEqual(sorted(tr.stats.items()), expected)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 742, in assertListEqual
self.assertSequenceEqual(list1, list2, msg, seq_type=list)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 663, in assertSequenceEqual
if seq1 == seq2:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.pde.mchedr._read_mchedr
File "obspy\io\pde\mchedr.py", line 1, in _read_mchedr
----------------------------------------------------------------------
File "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 "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in 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 "obspy\core\util\decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\event\catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\event\catalog.py", line 858, in _read
**kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "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 "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.pde.mchedr._read_mchedr[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\pde\tests\test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\quakeml\tests\test_quakeml.py", line 814, in test_read_amplitude_time_window
UTCDateTime("2007-10-10T14:40:39.055"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\quakeml\tests\test_quakeml.py", line 517, in test_focalmechanism
UTCDateTime("2012-04-04T16:40:50+00:00"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\quakeml\tests\test_quakeml.py", line 439, in test_pick
self.assertEqual(pick.time, UTCDateTime('2005-09-18T22:04:35Z'))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\quakeml\tests\test_quakeml.py", line 683, in test_preferred_tags
self.assertIn(ev_str, str(catalog.events[0]))
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\types\newstr.py", line 102, in __new__
return super(newstr, cls).__new__(cls, value)
File "obspy\core\event\event.py", line 133, in __str__
self.short_str(),
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\quakeml\tests\test_quakeml.py", line 750, in test_creating_minimal_quakeml_with_mt
self.assertEqual(org.time, org_time)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\quakeml\tests\test_quakeml.py", line 122, in test_event
UTCDateTime("2012-04-04T16:40:50+00:00"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\quakeml\tests\test_quakeml.py", line 792, in test_reading_twice_raises_no_warning
self.assertEqual(cat1, cat2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 345, in __eq__
(getattr(self, container) != getattr(other, container)):
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\event\base.py", line 350, in __ne__
return not self.__eq__(other)
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.quakeml.core._read_quakeml
File "obspy\io\quakeml\core.py", line 1778, in _read_quakeml
----------------------------------------------------------------------
File "obspy\io\quakeml\core.py", line 1796, in obspy.io.quakeml.core._read_quakeml
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.quakeml.core._read_quakeml[2]>", line 1, in <module>
print(cat)
File "obspy\core\event\catalog.py", line 236, in __str__
out += "\n".join([ev.short_str() for ev in self])
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\quakeml\tests\test_quakeml.py", line 143, in test_origin
self.assertEqual(origin.time, UTCDateTime("2011-03-11T05:46:24.1200"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\quakeml\tests\test_quakeml.py", line 775, in test_read_equivalence
self.assertEqual(cat1, cat2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\event\catalog.py", line 145, in __eq__
if self.events != other.events:
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\event\base.py", line 350, in __ne__
return not self.__eq__(other)
File "obspy\core\event\base.py", line 341, in __eq__
(getattr(self, attrib) != getattr(other, attrib)):
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 517, in test_reading_packet_with_vpu_float_string
st = obspy.read(self.reftek_file_vpu)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 366, in test_truncated_last_packet
component_codes=["1", "2", "3"])
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.reftek.__init__
File "obspy\io\reftek\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 53, in obspy.io.reftek.__init__
Failed example:
st = read("/path/to/225051000_00008656", network="BW", location="",
component_codes="ZNE")
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[4]>", line 2, in <module>
component_codes="ZNE")
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 55, in obspy.io.reftek.__init__
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[5]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 57, in obspy.io.reftek.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[6]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "obspy\io\reftek\__init__.py", line 71, in obspy.io.reftek.__init__
Failed example:
print(st[0].stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[7]>", line 1, in <module>
print(st[0].stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 242, in test_warning_disturbed_packet_sequence
component_codes=["1", "2", "3"])
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 537, in test_reading_file_with_multiple_events
st = obspy.read(bytes_, format='REFTEK130')
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 222, in read
st.extend(_read(fh.name, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 150, in test_read_reftek130_steim2
component_codes=["1", "2", "3"])
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 310, in test_drop_not_implemented_packets
component_codes=["1", "2", "3"])
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 211, in test_integration_with_obspy_core
component_codes=["1", "2", "3"])
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 276, in test_read_file_perturbed_packet_sequence
component_codes=["1", "2", "3"])
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 341, in test_missing_event_trailer_packet
component_codes=["1", "2", "3"])
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 138, in test_read_reftek130_steim1
component_codes=["1", "2", "3"])
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\reftek\tests\test_core.py", line 178, in test_read_reftek130_no_component_codes_specified
self.reftek_file, network="XX", location="01")
File "obspy\io\reftek\core.py", line 102, in _read_reftek130
verbose=verbose)
File "obspy\io\reftek\core.py", line 333, in to_stream
t_last + (npts_last - 1) * delta)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace._allt
File "obspy\io\sac\sactrace.py", line 1498, in _allt
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1523, in obspy.io.sac.sactrace.SACTrace._allt
Failed example:
sac.o = UTCDateTime(year=1982, julday=123,
hour=13, minute=37,
second=10, microsecond=103)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[4]>", line 3, in <module>
second=10, microsecond=103)
File "obspy\io\sac\sactrace.py", line 405, in __set__
offset = value - instance.reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1526, in obspy.io.sac.sactrace.SACTrace._allt
Failed example:
sac.iztype = 'io'
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[5]>", line 1, in <module>
sac.iztype = 'io'
File "obspy\io\sac\sactrace.py", line 486, in __set__
reftime = _iztype_reftime(instance, value)
File "obspy\io\sac\sactrace.py", line 625, in _iztype_reftime
raise SacError(msg)
SacError: Reference header for iztype 'io' is not set
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace
File "obspy\io\sac\sactrace.py", line 1, in sactrace
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 127, in obspy.io.sac.sactrace
Failed example:
sac.reftime -= 2.5
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace[7]>", line 1, in <module>
sac.reftime -= 2.5
File "obspy\io\sac\sactrace.py", line 1022, in reftime
shift = old_reftime - new_reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 128, in obspy.io.sac.sactrace
Failed example:
sac.b, sac.e, sac.t1
Expected:
(2.5, 101.5, 26.0)
Got:
(0.0, 99.0, 23.5)
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 139, in obspy.io.sac.sactrace
Failed example:
sac.reftime = UTCDateTime(2000, 1, 1, 0, 2, 0, 0)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace[10]>", line 1, in <module>
sac.reftime = UTCDateTime(2000, 1, 1, 0, 2, 0, 0)
File "obspy\io\sac\sactrace.py", line 1022, in reftime
shift = old_reftime - new_reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 140, in obspy.io.sac.sactrace
Failed example:
sac.b, sac.e, sac.t1
Expected:
(-120.0, -21.0, -96.5)
Got:
(0.0, 99.0, 23.5)
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 272, in obspy.io.sac.sactrace
Failed example:
print(tr.stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
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
back_azimuth: 100.0
inclination: 30.0
response: Channel Response
...
Got:
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
back_azimuth: 100.0
inclination: 30.0
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.__init__
File "obspy\io\sac\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\sac\__init__.py", line 59, in obspy.io.sac.__init__
Failed example:
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Expected:
array([ -8.74227766e-08, -3.09016973e-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 "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.read
File "obspy\io\sac\sactrace.py", line 1034, in read
----------------------------------------------------------------------
File "obspy\io\sac\sactrace.py", line 1075, 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 "obspy\io\sac\tests\test_core.py", line 86, in test_read_xy_write_xy_via_obspy
tr.write(tempfile, format='SACXY')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 287, in _write_sac_xy
_internal_write_sac_xy(trace, fh, **kwargs)
File "obspy\io\sac\core.py", line 306, in _internal_write_sac_xy
sac = SACTrace.from_obspy_trace(trace, keep_sac_header=True)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 350, in obspy_to_sac_header
header['e'] = b + (stats['endtime'] - stats['starttime'])
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 643, in test_read_xy_write_xy_from_open_file_binary_mode
_write_sac_xy(st, tf)
File "obspy\io\sac\core.py", line 277, in _write_sac_xy
_internal_write_sac_xy(stream[0], filename, **kwargs)
File "obspy\io\sac\core.py", line 306, in _internal_write_sac_xy
sac = SACTrace.from_obspy_trace(trace, keep_sac_header=True)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 350, in obspy_to_sac_header
header['e'] = b + (stats['endtime'] - stats['starttime'])
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 626, in test_read_xy_write_xy_from_bytes_io
_write_sac_xy(st, fh)
File "obspy\io\sac\core.py", line 277, in _write_sac_xy
_internal_write_sac_xy(stream[0], filename, **kwargs)
File "obspy\io\sac\core.py", line 306, in _internal_write_sac_xy
sac = SACTrace.from_obspy_trace(trace, keep_sac_header=True)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 350, in obspy_to_sac_header
header['e'] = b + (stats['endtime'] - stats['starttime'])
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 101, in test_read_write_xy_via_obspy
tr.write(tempfile, format='SACXY')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 287, in _write_sac_xy
_internal_write_sac_xy(trace, fh, **kwargs)
File "obspy\io\sac\core.py", line 306, in _internal_write_sac_xy
sac = SACTrace.from_obspy_trace(trace, keep_sac_header=True)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 68, in test_read_write_via_obspy
tr.write(tempfile, format='SAC')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 441, in _write_sac
_internal_write_sac(trace, fh, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 553, in test_read_write_open_file
_write_sac(st, tf_out)
File "obspy\io\sac\core.py", line 431, in _write_sac
_internal_write_sac(stream[0], filename, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 536, in test_read_write_bytes_io
_write_sac(st, buf)
File "obspy\io\sac\core.py", line 431, in _write_sac
_internal_write_sac(stream[0], filename, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 598, in test_read_via_obspy_from_bytes_io
self.assertEqual(tr, tr2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 889, in test_sac_file_from_new_header
tr.write(tf, format='SAC')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 431, in _write_sac
_internal_write_sac(stream[0], filename, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 350, in obspy_to_sac_header
header['e'] = b + (stats['endtime'] - stats['starttime'])
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 288, in test_reference_time
UTCDateTime("1981-03-29 10:38:23.459999"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 231, in test_propagate_modified_stats_strings_to_sactrace
sac = SACTrace.from_obspy_trace(tr)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 152, in test_reftime
UTCDateTime('1981-03-29T10:38:14.000000Z'))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 404, in test_writing_micro_seconds
self.assertEqual(st2[0].stats.starttime, st[0].stats.starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 352, in test_enumheader
setattr(sac, enumhdr, accepted_val)
File "obspy\io\sac\sactrace.py", line 487, in __set__
instance.reftime = reftime
File "obspy\io\sac\sactrace.py", line 1022, in reftime
shift = old_reftime - new_reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 781, in test_valid_sac_from_minimal_existing_sac_header
tr.write(tempfile, format='SAC')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 441, in _write_sac
_internal_write_sac(trace, fh, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 350, in obspy_to_sac_header
header['e'] = b + (stats['endtime'] - stats['starttime'])
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 606, in test_write_via_obspy_to_bytes_io
tr.write(buf, format="sac")
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 431, in _write_sac
_internal_write_sac(stream[0], filename, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 132, in test_swap_bytes_via_obspy
trbe.write(tempfile, format='SAC', byteorder='<')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 441, in _write_sac
_internal_write_sac(trace, fh, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 323, in test_undefined_b
tr.write(tmpfile, format="SAC")
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 441, in _write_sac
_internal_write_sac(trace, fh, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 170, in test_reftime_relative_times
sac.reftime -= 10.0
File "obspy\io\sac\sactrace.py", line 1022, in reftime
shift = old_reftime - new_reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_sactrace.py", line 296, in test_relative_time_headers
setattr(sac, hdr, offset_utc)
File "obspy\io\sac\sactrace.py", line 405, in __set__
offset = value - instance.reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 263, in test_iztype11
tr.write(tempfile, format="SAC")
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 441, in _write_sac
_internal_write_sac(trace, fh, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 816, in test_merge_sac_obspy_headers
tr.write(tempfile, format='SAC')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 441, in _write_sac
_internal_write_sac(trace, fh, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 350, in obspy_to_sac_header
header['e'] = b + (stats['endtime'] - stats['starttime'])
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 382, in test_not_used_but_given_headers
tr1.write(sac_file, 'SAC')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 441, in _write_sac
_internal_write_sac(trace, fh, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 205, in test_read_and_write_via_obspy
st2.write(tempfile, format='SAC')
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 441, in _write_sac
_internal_write_sac(trace, fh, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 912, in test_always_sac_reftime
tr.write(tf, format='SAC')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 431, in _write_sac
_internal_write_sac(stream[0], filename, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 350, in obspy_to_sac_header
header['e'] = b + (stats['endtime'] - stats['starttime'])
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 239, in test_convert_to_sac
self.assertEqual(st2[0].stats.starttime, st[0].stats.starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 831, in test_decimate_resample
tr.write(tempfile, format='SAC')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 441, in _write_sac
_internal_write_sac(trace, fh, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 846, in test_invalid_header_field
tr.write(buf, format='SAC')
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\sac\core.py", line 431, in _write_sac
_internal_write_sac(stream[0], filename, byteorder=byteorder, **kwargs)
File "obspy\io\sac\core.py", line 471, in _internal_write_sac
sac = SACTrace.from_obspy_trace(trace)
File "obspy\io\sac\sactrace.py", line 1226, in from_obspy_trace
header = _ut.obspy_to_sac_header(trace.stats, keep_sac_header)
File "obspy\io\sac\util.py", line 330, in obspy_to_sac_header
b = stats['starttime'] - reftime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 515, in test_read_sac_from_bytes_io
self.assertEqual(tr, tr2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sac\tests\test_core.py", line 528, in test_read_sac_from_open_file
self.assertEqual(tr, tr2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\seg2\tests\test_seg2.py", line 85, in test_read_data_format_2
self.assertEqual(len(w), 1)
AssertionError: 4 != 1
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 625, in test_revision_number_in_binary_file_header
_tr.write(buf, format="segy", byteorder=endian)
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 129, in test_enforcing_endianness_while_writing
_write_segy(st1, out_file)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 645, in test_textual_header_has_the_right_fields_at_the_end
tr.write(buf, format="segy")
File "obspy\core\trace.py", line 952, in write
Stream([self]).write(filename, format, **kwargs)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 603, in test_issue_377
st.write(outfile, format='SEGY')
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 246, in test_enforcing_textual_header_encoding_while_writing
_write_segy(st1, out_file)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 187, in test_reading_and_writing_different_data_encodings
_write_segy(st, out_file, data_encoding=data_encoding)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 440, in test_large_sample_rate_interval_raises
_write_segy(segy, outfile)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 359, in test_writing_using_core
_write_segy(st, out_file2)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_segy.py", line 610, in test_iterative_reading
self.assertEqual(st.traces, ist)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 742, in assertListEqual
self.assertSequenceEqual(list1, list2, msg, seq_type=list)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 663, in assertSequenceEqual
if seq1 == seq2:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_su.py", line 140, in test_iterative_reading
self.assertEqual(st.traces, ist)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 742, in assertListEqual
self.assertSequenceEqual(list1, list2, msg, seq_type=list)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 663, in assertSequenceEqual
if seq1 == seq2:
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 634, in test_reading_and_writing_with_unset_dates
self.assertEqual(st[0].stats.starttime, UTCDateTime(2015, 1, 1))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 418, in test_reading_date
self.assertEqual(date, segy[0].stats.starttime)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 152, in test_setting_data_encoding_works
_write_segy(st, out_file)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 501, in test_writing_modified_date
_write_segy(segy, outfile)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 402, in test_writing_new_sampling_rate
_write_segy(segy, outfile)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 532, in test_writing_starttime_timestamp_0
_write_segy(segy, outfile)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 468, in test_writing_su_file_with_no_header
st.write(outfile, format='SU')
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\segy\core.py", line 600, in _write_su
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\segy\tests\test_core.py", line 667, in test_writing_text_and_binary_textual_file_headers
textual_header_encoding=encoding)
File "obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "obspy\io\segy\core.py", line 373, in _write_segy
if starttime == UTCDateTime(0):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\seisan\tests\test_core.py", line 73, in test_read_seisan
st.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seisan.__init__
File "obspy\io\seisan\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "obspy\io\seisan\__init__.py", line 52, in obspy.io.seisan.__init__
Failed example:
print(st[0].data)
Expected:
[ 464 492 519 ..., -7042 -6960 -6858]
Got:
[ 464 492 519 ... -7042 -6960 -6858]
Traceback (most recent call last):
File "obspy\io\seisan\tests\test_core.py", line 132, in test_read_seisan_head_only
UTCDateTime('1997-01-30T10:48:54.040000Z'))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seiscomp.event._read_sc3ml
File "obspy\io\seiscomp\event.py", line 31, in _read_sc3ml
----------------------------------------------------------------------
File "obspy\io\seiscomp\event.py", line 58, in obspy.io.seiscomp.event._read_sc3ml
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seiscomp.event._read_sc3ml[2]>", line 1, in <module>
print(cat)
File "obspy\core\event\catalog.py", line 236, in __str__
out += "\n".join([ev.short_str() for ev in self])
File "obspy\core\event\event.py", line 116, in short_str
origin = self.preferred_origin() or self.origins[0]
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\seiscomp\tests\test_inventory.py", line 120, in test_empty_depth
self.assertEqual(str(w[0].message), "Sensor is missing "
IndexError: list index out of range
Traceback (most recent call last):
File "obspy\io\seiscomp\tests\test_inventory.py", line 151, in test_compare_response
self.assertEqual(sc3ml_net.start_date, stationxml_net.start_date)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 170, in test_read_and_write_multi_channel_q_file
stream1.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 207, in test_read_and_write_multi_channel_q_file_via_obspy
stream1.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 126, in test_read_and_write_multi_channel_asc_file
stream1.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 150, in test_read_and_write_multi_channel_asc_file_via_obspy
stream1.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sh.__init__
File "obspy\io\sh\__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "obspy\io\sh\__init__.py", line 55, in obspy.io.sh.__init__
Failed example:
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Expected:
array([ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...
-4.03387604e+01, -3.99515305e+01, -3.95423012e+01], dtype=float32)
Got:
array([ 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
9.999987e-05, 3.338366e+01, 6.641345e+01, 9.907165e+01,
1.313408e+02, 1.632039e+02, 1.946445e+02, 2.256463e+02,
2.561938e+02, 2.862716e+02, 3.158649e+02, 3.449595e+02,
3.735416e+02, 4.015977e+02, 4.291148e+02, 4.560807e+02,
4.824833e+02, 5.083111e+02, 5.335532e+02, 5.581991e+02,
5.822387e+02, 6.056627e+02, 6.284618e+02, 6.506277e+02,
6.721521e+02, 6.930278e+02, 7.132476e+02, 7.328047e+02,
7.516935e+02, 7.699081e+02, 7.874437e+02, 8.042954e+02,
8.204593e+02, 8.359318e+02, 8.507097e+02, 8.647904e+02,
8.781716e+02, 8.908519e+02, 9.028298e+02, 9.141045e+02,
9.246761e+02, 9.345443e+02, 9.437100e+02, 9.521742e+02,
9.599384e+02, 9.670044e+02, 9.733748e+02, 9.790523e+02,
9.840402e+02, 9.883419e+02, 9.919617e+02, 9.949040e+02,
9.971735e+02, 9.987755e+02, 9.997157e+02, 1.000000e+03,
9.996348e+02, 9.986266e+02, 9.969827e+02, 9.947104e+02,
9.918174e+02, 9.883117e+02, 9.842017e+02, 9.794961e+02,
9.742039e+02, 9.683343e+02, 9.618969e+02, 9.549014e+02,
9.473580e+02, 9.392769e+02, 9.306688e+02, 9.215444e+02,
9.119149e+02, 9.017914e+02, 8.911855e+02, 8.801086e+02,
8.685729e+02, 8.565902e+02, 8.441728e+02, 8.313329e+02,
8.180833e+02, 8.044363e+02, 7.904048e+02, 7.760018e+02,
7.612402e+02, 7.461334e+02, 7.306941e+02, 7.149359e+02,
6.988723e+02, 6.825165e+02, 6.658820e+02, 6.489823e+02,
6.318311e+02, 6.144420e+02, 5.968284e+02, 5.790043e+02,
5.609829e+02, 5.427780e+02, 5.244034e+02, 5.058723e+02,
4.871986e+02, 4.683954e+02, 4.494765e+02, 4.304553e+02,
4.113447e+02, 3.921585e+02, 3.729093e+02, 3.536106e+02,
3.342753e+02, 3.149161e+02, 2.955461e+02, 2.761774e+02,
2.568228e+02, 2.374949e+02, 2.182056e+02, 1.989673e+02,
1.797915e+02, 1.606902e+02, 1.416753e+02, 1.227577e+02,
1.039492e+02, 8.526044e+01, 6.670248e+01, 4.828622e+01,
3.002179e+01, 1.191969e+01, -6.009835e+00, -2.375724e+01,
-4.131253e+01, -5.866658e+01, -7.581001e+01, -9.273368e+01,
-1.094291e+02, -1.258876e+02, -1.421010e+02, -1.580611e+02,
-1.737601e+02, -1.891906e+02, -2.043451e+02, -2.192169e+02,
-2.337988e+02, -2.480843e+02, -2.620674e+02, -2.757417e+02,
-2.891018e+02, -3.021419e+02, -3.148568e+02, -3.272417e+02,
-3.392915e+02, -3.510022e+02, -3.623694e+02, -3.733889e+02,
-3.840574e+02, -3.943714e+02, -4.043277e+02, -4.139235e+02,
-4.231560e+02, -4.320230e+02, -4.405224e+02, -4.486523e+02,
-4.564113e+02, -4.637978e+02, -4.708109e+02, -4.774497e+02,
-4.837136e+02, -4.896024e+02, -4.951160e+02, -5.002545e+02,
-5.050183e+02, -5.094081e+02, -5.134249e+02, -5.170696e+02,
-5.203436e+02, -5.232486e+02, -5.257861e+02, -5.279585e+02,
-5.297678e+02, -5.312165e+02, -5.323072e+02, -5.330428e+02,
-5.334263e+02, -5.334611e+02, -5.331505e+02, -5.324981e+02,
-5.315079e+02, -5.301838e+02, -5.285301e+02, -5.265509e+02,
-5.242509e+02, -5.216347e+02, -5.187073e+02, -5.154734e+02,
-5.119384e+02, -5.081075e+02, -5.039861e+02, -4.995798e+02,
-4.948942e+02, -4.899351e+02, -4.847086e+02, -4.792205e+02,
-4.734773e+02, -4.674849e+02, -4.612498e+02, -4.547784e+02,
-4.480773e+02, -4.411532e+02, -4.340126e+02, -4.266623e+02,
-4.191092e+02, -4.113603e+02, -4.034225e+02, -3.953027e+02,
-3.870081e+02, -3.785457e+02, -3.699226e+02, -3.611463e+02,
-3.522235e+02, -3.431619e+02, -3.339684e+02, -3.246504e+02,
-3.152153e+02, -3.056700e+02, -2.960221e+02, -2.862787e+02,
-2.764471e+02, -2.665348e+02, -2.565485e+02, -2.464957e+02,
-2.363835e+02, -2.262190e+02, -2.160095e+02, -2.057618e+02,
-1.954829e+02, -1.851799e+02, -1.748596e+02, -1.645292e+02,
-1.541949e+02, -1.438638e+02, -1.335424e+02, -1.232373e+02,
-1.129553e+02, -1.027023e+02, -9.248491e+01, -8.230938e+01,
-7.218187e+01, -6.210864e+01, -5.209529e+01, -4.214787e+01,
-3.227218e+01, -2.247388e+01, -1.275873e+01, -3.131806e+00,
6.401351e+00, 1.583551e+01, 2.516556e+01, 3.438632e+01,
4.349327e+01, 5.248148e+01, 6.134630e+01, 7.008325e+01,
7.868778e+01, 8.715596e+01, 9.548351e+01, 1.036665e+02,
1.117009e+02, 1.195831e+02, 1.273096e+02, 1.348769e+02,
1.422817e+02, 1.495208e+02, 1.565910e+02, 1.634897e+02,
1.702141e+02, 1.767615e+02, 1.831294e+02, 1.893154e+02,
1.953175e+02, 2.011336e+02, 2.067617e+02, 2.122001e+02,
2.174471e+02, 2.225013e+02, 2.273613e+02, 2.320260e+02,
2.364941e+02, 2.407648e+02, 2.448374e+02, 2.487110e+02,
2.523853e+02, 2.558598e+02, 2.591343e+02, 2.622086e+02,
2.650827e+02, 2.677568e+02, 2.702311e+02, 2.725060e+02,
2.745821e+02, 2.764599e+02, 2.781403e+02, 2.796240e+02,
2.809121e+02, 2.820058e+02, 2.829061e+02, 2.836146e+02,
2.841326e+02, 2.844617e+02, 2.846035e+02, 2.845599e+02,
2.843326e+02, 2.839238e+02, 2.833354e+02, 2.825696e+02,
2.816287e+02, 2.805150e+02, 2.792309e+02, 2.777791e+02,
2.761621e+02, 2.743825e+02, 2.724432e+02, 2.703470e+02,
2.680969e+02, 2.656956e+02, 2.631466e+02, 2.604527e+02,
2.576170e+02, 2.546431e+02, 2.515340e+02, 2.482932e+02,
2.449242e+02, 2.414301e+02, 2.378148e+02, 2.340815e+02,
2.302341e+02, 2.262761e+02, 2.222110e+02, 2.180428e+02,
2.137749e+02, 2.094114e+02, 2.049558e+02, 2.004119e+02,
1.957837e+02, 1.910748e+02, 1.862894e+02, 1.814311e+02,
1.765036e+02, 1.715112e+02, 1.664573e+02, 1.613463e+02,
1.561818e+02, 1.509675e+02, 1.457076e+02, 1.404056e+02,
1.350658e+02, 1.296917e+02, 1.242871e+02, 1.188560e+02,
1.134019e+02, 1.079290e+02, 1.024407e+02, 9.694056e+01,
9.143266e+01, 8.592022e+01, 8.040728e+01, 7.489719e+01,
6.939329e+01, 6.389946e+01, 5.841878e+01, 5.295506e+01,
4.751145e+01, 4.209107e+01, 3.669762e+01, 3.133389e+01,
2.600347e+01, 2.070927e+01, 1.545415e+01, 1.024153e+01,
5.073956e+00, -4.528630e-02, -5.113564e+00, -1.012829e+01,
-1.508639e+01, -1.998558e+01, -2.482291e+01, -2.959606e+01,
-3.430275e+01, -3.894025e+01, -4.350659e+01, -4.799920e+01,
-5.241605e+01, -5.675522e+01, -6.101436e+01, -6.519180e+01,
-6.928538e+01, -7.329341e+01, -7.721430e+01, -8.104610e+01,
-8.478751e+01, -8.843670e+01, -9.199241e+01, -9.545336e+01,
-9.881802e+01, -1.020854e+02, -1.052542e+02, -1.083233e+02,
-1.112920e+02, -1.141590e+02, -1.169238e+02, -1.195853e+02,
-1.221431e+02, -1.245964e+02, -1.269447e+02, -1.291877e+02,
-1.313246e+02, -1.333554e+02, -1.352798e+02, -1.370975e+02,
-1.388086e+02, -1.404127e+02, -1.419101e+02, -1.433009e+02,
-1.445851e+02, -1.457630e+02, -1.468349e+02, -1.478013e+02,
-1.486624e+02, -1.494188e+02, -1.500710e+02, -1.506197e+02,
-1.510655e+02, -1.514092e+02, -1.516516e+02, -1.517935e+02,
-1.518357e+02, -1.517794e+02, -1.516255e+02, -1.513750e+02,
-1.510292e+02, -1.505891e+02, -1.500560e+02, -1.494311e+02,
-1.487158e+02, -1.479115e+02, -1.470195e+02, -1.460413e+02,
-1.449784e+02, -1.438323e+02, -1.426046e+02, -1.412969e+02,
-1.399108e+02, -1.384480e+02, -1.369102e+02, -1.352992e+02,
-1.336167e+02, -1.318646e+02, -1.300446e+02, -1.281586e+02,
-1.262085e+02, -1.241962e+02, -1.221236e+02, -1.199925e+02,
-1.178052e+02, -1.155633e+02, -1.132691e+02, -1.109245e+02,
-1.085314e+02, -1.060920e+02, -1.036081e+02, -1.010821e+02,
-9.851581e+01, -9.591125e+01, -9.327070e+01, -9.059598e+01,
-8.788938e+01, -8.515289e+01, -8.238844e+01, -7.959832e+01,
-7.678439e+01, -7.394889e+01, -7.109379e+01, -6.822102e+01,
-6.533281e+01, -6.243098e+01, -5.951776e+01, -5.659503e+01,
-5.366467e+01, -5.072888e+01, -4.778937e+01, -4.484832e+01,
-4.190754e+01, -3.896879e+01, -3.603420e+01, -3.310539e+01,
-3.018443e+01, -2.727300e+01, -2.437280e+01, -2.148581e+01,
-1.861353e+01, -1.575791e+01, -1.292050e+01, -1.010287e+01,
-7.306848e+00, -4.533814e+00, -1.785544e+00, 9.365342e-01,
3.631025e+00, 6.296255e+00, 8.930993e+00, 1.153364e+01,
1.410293e+01, 1.663764e+01, 1.913626e+01, 2.159774e+01,
2.402068e+01, 2.640396e+01, 2.874655e+01, 3.104715e+01,
3.330486e+01, 3.551849e+01, 3.768711e+01, 3.980988e+01,
4.188569e+01, 4.391383e+01, 4.589332e+01, 4.782344e+01,
4.970349e+01, 5.153262e+01, 5.331029e+01, 5.503572e+01,
5.670840e+01, 5.832783e+01, 5.989335e+01, 6.140462e+01,
6.286109e+01, 6.426241e+01, 6.560828e+01, 6.689828e+01,
6.813223e+01, 6.930978e+01, 7.043080e+01, 7.149516e+01,
7.250264e+01, 7.345325e+01, 7.434686e+01, 7.518349e+01,
7.596322e+01, 7.668604e+01, 7.735207e+01, 7.796144e+01,
7.851433e+01, 7.901096e+01, 7.945152e+01, 7.983635e+01,
8.016570e+01, 8.043991e+01, 8.065939e+01, 8.082452e+01,
8.093573e+01, 8.099349e+01, 8.099830e+01, 8.095068e+01,
8.085117e+01, 8.070037e+01, 8.049888e+01, 8.024734e+01,
7.994638e+01, 7.959673e+01, 7.919907e+01, 7.875417e+01,
7.826274e+01, 7.772560e+01, 7.714354e+01, 7.651736e+01,
7.584795e+01, 7.513612e+01, 7.438281e+01, 7.358889e+01,
7.275525e+01, 7.188288e+01, 7.097267e+01, 7.002564e+01,
6.904277e+01, 6.802498e+01, 6.697335e+01, 6.588885e+01,
6.477255e+01, 6.362548e+01, 6.244863e+01, 6.124314e+01,
6.001001e+01, 5.875037e+01, 5.746527e+01, 5.615575e+01,
5.482299e+01, 5.346798e+01, 5.209193e+01, 5.069588e+01,
4.928088e+01, 4.784815e+01, 4.639867e+01, 4.493367e+01,
4.345417e+01, 4.196125e+01, 4.045609e+01, 3.893969e+01,
3.741326e+01, 3.587782e+01, 3.433439e+01, 3.278417e+01,
3.122812e+01, 2.966741e+01, 2.810305e+01, 2.653602e+01,
2.496747e+01, 2.339833e+01, 2.182973e+01, 2.026262e+01,
1.869794e+01, 1.713679e+01, 1.558004e+01, 1.402876e+01,
1.248384e+01, 1.094616e+01, 9.416759e+00, 7.896429e+00,
6.386178e+00, 4.886823e+00, 3.399170e+00, 1.924178e+00,
4.625617e-01, -9.847549e-01, -2.417034e+00, -3.833552e+00,
-5.233443e+00, -6.616073e+00, -7.980615e+00, -9.326418e+00,
-1.065285e+01, -1.195914e+01, -1.324475e+01, -1.450896e+01,
-1.575120e+01, -1.697090e+01, -1.816757e+01, -1.934050e+01,
-2.048925e+01, -2.161332e+01, -2.271222e+01, -2.378559e+01,
-2.483281e+01, -2.585355e+01, -2.684742e+01, -2.781403e+01,
-2.875311e+01, -2.966418e+01, -3.054700e+01, -3.140128e+01,
-3.222675e+01, -3.302323e+01, -3.379036e+01, -3.452802e+01,
-3.523600e+01, -3.591415e+01, -3.656237e+01, -3.718045e+01,
-3.776833e+01, -3.832594e+01, -3.885322e+01, -3.935016e+01,
-3.981667e+01, -4.025278e+01, -4.065853e+01, -4.103395e+01,
-4.137911e+01, -4.169406e+01, -4.197891e+01, -4.223377e+01,
-4.245879e+01, -4.265413e+01, -4.281992e+01, -4.295636e+01,
-4.306367e+01, -4.314207e+01, -4.319178e+01, -4.321307e+01,
-4.320619e+01, -4.317144e+01, -4.310912e+01, -4.301954e+01,
-4.290302e+01, -4.275992e+01, -4.259060e+01, -4.239541e+01,
-4.217473e+01, -4.192899e+01, -4.165858e+01, -4.136391e+01,
-4.104543e+01, -4.070354e+01, -4.033876e+01, -3.995153e+01,
-3.954230e+01], dtype=float32)
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 64, in test_read_single_channel_asc_file
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 240, in test_skip_asc_lines
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\sh\tests\test_core.py", line 34, in test_read_101_traces
stream.verify()
File "obspy\core\stream.py", line 1832, in verify
trace.verify()
File "obspy\core\trace.py", line 1274, in verify
delta = self.stats.endtime - self.stats.starttime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\shapefile\tests\test_core.py", line 204, in test_write_catalog_shapefile_via_plugin
cat = read_events('/path/to/mchedr.dat')
File "<decorator-gen-42>", line 2, in read_events
File "obspy\core\util\decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\event\catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\event\catalog.py", line 858, in _read
**kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\shapefile\tests\test_core.py", line 166, in test_write_catalog_shapefile
cat = read_events('/path/to/mchedr.dat')
File "<decorator-gen-42>", line 2, in read_events
File "obspy\core\util\decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\event\catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\event\catalog.py", line 858, in _read
**kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\io\pde\mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "obspy\io\pde\mchedr.py", line 93, in load
return self._deserialize()
File "obspy\io\pde\mchedr.py", line 1043, in _deserialize
focal_mechanism = self._parse_record_dp(line, event)
File "obspy\io\pde\mchedr.py", line 617, in _parse_record_dp
if origin.time < event.origins[0].time:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationtxt\tests\test_station_text_parsing.py", line 641, in test_parsing_faulty_header_at_channel_level
self.assertEqual(inv_good, inv_obs_good)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationtxt\tests\test_station_text_parsing.py", line 483, in test_reading_unicode_file
self.assertEqual(inv, expected_inv)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationtxt\tests\test_station_text_parsing.py", line 210, in test_reading_station_file
self.assertEqual(inv, expected_inv)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationtxt\tests\test_station_text_parsing.py", line 413, in test_reading_channel_file
self.assertEqual(inv, expected_inv)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationtxt\tests\test_station_text_parsing.py", line 679, in test_parsing_files_with_no_endtime
self.assertEqual(inv_a, inv_obs_a)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationtxt\tests\test_station_text_parsing.py", line 125, in test_reading_network_file
self.assertEqual(inv, expected_inv)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationtxt\tests\test_station_text_parsing.py", line 573, in test_reading_channel_without_response_info
self.assertEqual(inv, expected_inv)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\util\base.py", line 505, in __eq__
return self.__dict__ == other.__dict__
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationxml\tests\test_stationxml.py", line 607, in test_reading_and_writing_channel_with_response
self.assertEqual(inv.created, obspy.UTCDateTime("2013-04-16T06:15:28"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationxml\tests\test_stationxml.py", line 150, in test_read_and_write_minimal_file
self.assertEqual(inv.created, obspy.UTCDateTime(2013, 1, 1))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationxml\tests\test_stationxml.py", line 674, in test_stationxml_with_availability
obspy.UTCDateTime("1998-10-26T20:35:58"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationxml\tests\test_stationxml.py", line 377, in test_reading_and_writing_full_station_tag
self.assertEqual(inv.created, obspy.UTCDateTime(2013, 1, 1))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationxml\tests\test_stationxml.py", line 257, in test_reading_and_writing_full_root_tag
self.assertEqual(inv.created, obspy.UTCDateTime(2013, 1, 1))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\stationxml\tests\test_stationxml.py", line 290, in test_reading_and_writing_full_network_tag
self.assertEqual(net.start_date, obspy.UTCDateTime(2011, 1, 1))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\wav\tests\test_core.py", line 126, in test_write_stream_via_obspy
self.assertEqual(tr30.stats, tr.stats)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\wav\tests\test_core.py", line 81, in test_read_and_write_via_obspy
self.assertEqual(tr3.stats, tr.stats)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\win\tests\test_core.py", line 32, in test_read_via_obspy
st = read(filename)
File "<decorator-gen-31>", line 2, in read
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\stream.py", line 277, in _read
headonly=headonly, **kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\win\core.py", line 101, in _read_win
if start == 0:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\win\tests\test_core.py", line 52, in test_read_via_module
st = _read_win(filename)
File "obspy\io\win\core.py", line 101, in _read_win
if start == 0:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_parser.py", line 404, in test_get_paz
paz = sp.get_paz("BW.RJOB..EHZ", UTCDateTime("2007-01-01"))
File "obspy\io\xseed\parser.py", line 539, in get_paz
blockettes = self._select(seed_id, datetime)
File "obspy\io\xseed\parser.py", line 500, in _select
if blk.start_date > datetime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_parser.py", line 50, in test_issue165
paz = parser.get_paz("NZ.DCZ.20.HNZ", t)
File "obspy\io\xseed\parser.py", line 539, in get_paz
blockettes = self._select(seed_id, datetime)
File "obspy\io\xseed\parser.py", line 500, in _select
if blk.start_date > datetime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_parser.py", line 743, in test_issue_361
parser.get_paz('G.SPB.00.BHZ', dt)
File "obspy\io\xseed\parser.py", line 539, in get_paz
blockettes = self._select(seed_id, datetime)
File "obspy\io\xseed\parser.py", line 500, in _select
if blk.start_date > datetime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_parser.py", line 772, in test_rotation_to_zne
st_r = p.rotate_to_zne(st)
File "obspy\io\xseed\parser.py", line 2386, in rotate_to_zne
blockettes = self._select(tr.id, tr.stats.starttime)
File "obspy\io\xseed\parser.py", line 500, in _select
if blk.start_date > datetime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_fields.py", line 86, in test_read_compact_date_time
self.assertEqual(dt, UTCDateTime(1992, 1, 2))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_core.py", line 481, in test_response_calculation_from_seed_and_xseed
starttime=t - 1, endtime=t + 1)
File "obspy\core\inventory\inventory.py", line 548, in select
sampling_rate=sampling_rate, keep_empty=keep_empty)
File "obspy\core\inventory\network.py", line 407, in select
endtime=endtime):
File "obspy\core\inventory\util.py", line 184, in is_active
if endtime < self.start_date:
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_fields.py", line 27, in test_read_date_time
self.assertEqual(dt, UTCDateTime(1992, 1, 2))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_parser.py", line 627, in test_compare_blockettes
self.assertTrue(p._compare_blockettes(blockette1, blockette2))
File "obspy\io\xseed\parser.py", line 2134, in _compare_blockettes
if blkt1.__dict__[key] != blkt2.__dict__[key]:
File "obspy\core\utcdatetime.py", line 1064, in __ne__
return not self.__eq__(other)
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_parser.py", line 480, in test_get_coordinates
paz = sp.get_coordinates("BW.RJOB..EHZ", UTCDateTime("2007-01-01"))
File "obspy\io\xseed\parser.py", line 621, in get_coordinates
blockettes = self._select(seed_id, datetime)
File "obspy\io\xseed\parser.py", line 500, in _select
if blk.start_date > datetime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_parser.py", line 133, in test_get_inventory
'sampling_rate': 200.0}]})
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 829, in assertDictEqual
if d1 != d2:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_core.py", line 325, in test_read_seed_metainformation
obspy.UTCDateTime("2006-06-04T00:00:00.000000Z"))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_core.py", line 175, in test_read_resp_metadata
self.assertEqual(channel.start_date, obspy.UTCDateTime(2001, 1, 1))
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_parser.py", line 717, in test_issue_157
result = parser.get_coordinates("BW.FURT..EHZ", t)
File "obspy\io\xseed\parser.py", line 621, in get_coordinates
blockettes = self._select(seed_id, datetime)
File "obspy\io\xseed\parser.py", line 500, in _select
if blk.start_date > datetime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\xseed\tests\test_parser.py", line 728, in test_issue_358
parser.get_paz('CL.AIO.00.EHZ', dt)
File "obspy\io\xseed\parser.py", line 539, in get_paz
blockettes = self._select(seed_id, datetime)
File "obspy\io\xseed\parser.py", line 500, in _select
if blk.start_date > datetime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\zmap\tests\test_zmap.py", line 87, in test_dump_to_file
zmap._write_zmap(self.catalog, f)
File "obspy\io\zmap\core.py", line 309, in _write_zmap
Pickler(with_uncertainties).dump(catalog, filename)
File "obspy\io\zmap\core.py", line 57, in dump
cat_string = self._serialize(catalog)
File "obspy\io\zmap\core.py", line 140, in _serialize
if origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\zmap\tests\test_zmap.py", line 204, in test_deserialize
catalog = zmap.Unpickler().loads(zmap_str)
File "obspy\io\zmap\core.py", line 209, in loads
return self._deserialize(zmap_str)
File "obspy\io\zmap\core.py", line 242, in _deserialize
origin.time = self._decyear2utc(year)
File "obspy\io\zmap\core.py", line 283, in _decyear2utc
t = start_of_year + (decimal_year % 1) * (end_of_year - start_of_year)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\zmap\tests\test_zmap.py", line 110, in test_dump_with_uncertainty
dump = pickler.dumps(self.catalog)
File "obspy\io\zmap\core.py", line 72, in dumps
return self._serialize(catalog)
File "obspy\io\zmap\core.py", line 140, in _serialize
if origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\zmap\tests\test_zmap.py", line 97, in test_dump_to_filename
zmap._write_zmap(self.catalog, f.name)
File "obspy\io\zmap\core.py", line 309, in _write_zmap
Pickler(with_uncertainties).dump(catalog, filename)
File "obspy\io\zmap\core.py", line 57, in dump
cat_string = self._serialize(catalog)
File "obspy\io\zmap\core.py", line 140, in _serialize
if origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\zmap\tests\test_zmap.py", line 124, in test_ou_hz_error
dump = pickler.dumps(self.catalog)
File "obspy\io\zmap\core.py", line 72, in dumps
return self._serialize(catalog)
File "obspy\io\zmap\core.py", line 140, in _serialize
if origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\zmap\tests\test_zmap.py", line 144, in test_lat_lon_hz_error
dump = pickler.dumps(self.catalog)
File "obspy\io\zmap\core.py", line 72, in dumps
return self._serialize(catalog)
File "obspy\io\zmap\core.py", line 140, in _serialize
if origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\zmap\tests\test_zmap.py", line 231, in test_read
catalog = zmap._read_zmap(f.name)
File "obspy\io\zmap\core.py", line 334, in _read_zmap
return Unpickler().load(filename)
File "obspy\io\zmap\core.py", line 194, in load
catalog = self._deserialize(zmap_str)
File "obspy\io\zmap\core.py", line 242, in _deserialize
origin.time = self._decyear2utc(year)
File "obspy\io\zmap\core.py", line 283, in _decyear2utc
t = start_of_year + (decimal_year % 1) * (end_of_year - start_of_year)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\io\zmap\tests\test_zmap.py", line 77, in test_plugin_interface
self.catalog.write(f, format='ZMAP')
File "obspy\core\event\catalog.py", line 505, in write
return write_format(self, filename, **kwargs)
File "obspy\io\zmap\core.py", line 309, in _write_zmap
Pickler(with_uncertainties).dump(catalog, filename)
File "obspy\io\zmap\core.py", line 57, in dump
cat_string = self._serialize(catalog)
File "obspy\io\zmap\core.py", line 140, in _serialize
if origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.zmap.__init__
File "obspy\io\zmap\__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "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 "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in 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 "obspy\core\util\decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "obspy\core\util\decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "obspy\core\event\catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "obspy\core\util\decorator.py", line 211, in uncompress_file
result = func(filename, *args, **kwargs)
File "obspy\core\event\catalog.py", line 858, in _read
**kwargs)
File "obspy\core\util\base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "obspy\io\zmap\core.py", line 334, in _read_zmap
return Unpickler().load(filename)
File "obspy\io\zmap\core.py", line 194, in load
catalog = self._deserialize(zmap_str)
File "obspy\io\zmap\core.py", line 242, in _deserialize
origin.time = self._decyear2utc(year)
File "obspy\io\zmap\core.py", line 283, in _decyear2utc
t = start_of_year + (decimal_year % 1) * (end_of_year - start_of_year)
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\io\zmap\__init__.py", line 23, in obspy.io.zmap.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.zmap.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "obspy\io\zmap\tests\test_zmap.py", line 56, in test_serialize
dump = pickler.dumps(self.catalog)
File "obspy\io\zmap\core.py", line 72, in dumps
return self._serialize(catalog)
File "obspy\io\zmap\core.py", line 140, in _serialize
if origin:
File "obspy\core\event\base.py", line 322, in __nonzero__
return self.__bool__()
File "obspy\core\event\base.py", line 328, in __bool__
for _i in self._property_keys + self._containers]):
File "obspy\core\event\base.py", line 105, in _bool
if value == 0 or isinstance(value, (str, native_str)):
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1003, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.realtime.rttrace.RtTrace
File "obspy\realtime\rttrace.py", line 40, in RtTrace
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 78, in obspy.realtime.rttrace.RtTrace
Failed example:
print(epicentral_distance)
Expected:
30.0855
Got:
30.085527
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 83, in obspy.realtime.rttrace.RtTrace
Failed example:
traces = data_trace / 3
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[9]>", line 1, in <module>
traces = data_trace / 3
File "obspy\core\trace.py", line 512, in __div__
st.append(self.slice(tstart, tend).copy())
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 84, in obspy.realtime.rttrace.RtTrace
Failed example:
[len(tr) for tr in traces]
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[10]>", line 1, in <module>
[len(tr) for tr in traces]
NameError: name 'traces' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 99, in obspy.realtime.rttrace.RtTrace
Failed example:
for tr in traces:
processed_trace = rt_trace.append(tr, gap_overlap_check=True)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[14]>", line 1, in <module>
for tr in traces:
NameError: name 'traces' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 102, in obspy.realtime.rttrace.RtTrace
Failed example:
len(rt_trace)
Expected:
12684
Got:
0
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 107, in obspy.realtime.rttrace.RtTrace
Failed example:
peak = np.amax(np.abs(rt_trace.data))
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[16]>", line 1, in <module>
peak = np.amax(np.abs(rt_trace.data))
File "C:\Miniconda-x64\envs\test\lib\site-packages\numpy\core\fromnumeric.py", line 2320, in amax
out=out, **kwargs)
File "C:\Miniconda-x64\envs\test\lib\site-packages\numpy\core\_methods.py", line 26, in _amax
return umr_maximum(a, axis, None, out, keepdims)
ValueError: zero-size array to reduction operation maximum which has no identity
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 108, in obspy.realtime.rttrace.RtTrace
Failed example:
print(peak)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[17]>", line 1, in <module>
print(peak)
NameError: name 'peak' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 110, in obspy.realtime.rttrace.RtTrace
Failed example:
mwp = calculate_mwp_mag(peak, epicentral_distance)
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[18]>", line 1, in <module>
mwp = calculate_mwp_mag(peak, epicentral_distance)
NameError: name 'peak' is not defined
----------------------------------------------------------------------
File "obspy\realtime\rttrace.py", line 111, in obspy.realtime.rttrace.RtTrace
Failed example:
print(mwp) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "C:\Miniconda-x64\envs\test\lib\doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[19]>", line 1, in <module>
print(mwp) # doctest: +ELLIPSIS
NameError: name 'mwp' is not defined
Traceback (most recent call last):
File "obspy\realtime\tests\test_rttrace.py", line 47, in test_ne
self.assertFalse(tr2 != tr3)
File "obspy\core\trace.py", line 328, in __ne__
return not self.__eq__(other)
File "obspy\realtime\rttrace.py", line 159, in __eq__
return super(RtTrace, self).__eq__(other)
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\realtime\tests\test_signal.py", line 36, in setUpClass
cls.orig_trace_chunks = cls.orig_trace / NUM_PACKETS
File "obspy\core\trace.py", line 512, in __div__
st.append(self.slice(tstart, tend).copy())
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\realtime\tests\test_rttrace.py", line 129, in test_append_overlap
self.assertRaises(UserWarning, rtr.append, tr)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "obspy\realtime\rttrace.py", line 226, in append
diff = trace.stats.starttime - self.stats.endtime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\realtime\tests\test_rttrace.py", line 34, in test_eq
self.assertEqual(tr2, tr3)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 503, in _baseAssertEqual
if not first == second:
File "obspy\realtime\rttrace.py", line 159, in __eq__
return super(RtTrace, self).__eq__(other)
File "obspy\core\trace.py", line 314, in __eq__
if not self.stats == other.stats:
File "C:\Miniconda-x64\envs\test\lib\_abcoll.py", line 426, in __eq__
return dict(self.items()) == dict(other.items())
File "obspy\core\utcdatetime.py", line 1037, in __eq__
return self._operate(other, operator.eq)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\realtime\tests\test_rttrace.py", line 145, in test_append_gap
self.assertRaises(UserWarning, rtr.append, tr2)
File "C:\Miniconda-x64\envs\test\lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "obspy\realtime\rttrace.py", line 226, in append
diff = trace.stats.starttime - self.stats.endtime
File "obspy\core\utcdatetime.py", line 955, in __sub__
return self._operate(value, operator.sub)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\realtime\tests\test_rttrace.py", line 172, in test_append_not_float32
traces = tr / 3
File "obspy\core\trace.py", line 512, in __div__
st.append(self.slice(tstart, tend).copy())
File "obspy\core\trace.py", line 1190, in slice
nearest_sample=nearest_sample)
File "<decorator-gen-6>", line 2, in trim
File "obspy\core\trace.py", line 235, in _add_processing_info
result = func(*args, **kwargs)
File "obspy\core\trace.py", line 1134, in trim
if starttime and endtime and starttime > endtime:
File "obspy\core\utcdatetime.py", line 1145, in __gt__
return self._operate(other, operator.gt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\scripts\tests\test_print.py", line 23, in test_print
obspy_print(self.all_files)
File "obspy\scripts\print.py", line 37, in main
st.merge(-1)
File "obspy\core\stream.py", line 1909, in merge
self._cleanup(**kwargs)
File "obspy\core\stream.py", line 2870, in _cleanup
'starttime', 'endtime'])
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
Traceback (most recent call last):
File "obspy\scripts\tests\test_print.py", line 32, in test_print_nomerge
obspy_print(['--no-merge'] + self.all_files)
File "obspy\scripts\print.py", line 39, in main
st.sort()
File "obspy\core\stream.py", line 1375, in sort
self.traces.sort(key=lambda x: x.stats[_i], reverse=reverse)
File "obspy\core\utcdatetime.py", line 1091, in __lt__
return self._operate(other, operator.lt)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet
>>> Cannot import test suite for module obspy.signal due to:
------------------------------------------------------------
File "C:\Miniconda-x64\envs\test\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Miniconda-x64\envs\test\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\projects\obspy\obspy\scripts\runtests.py", line 748, in <module>
errors = run(interactive=False)
File "C:\projects\obspy\obspy\scripts\runtests.py", line 706, in run
pr_url=args.pr_url)
File "C:\projects\obspy\obspy\scripts\runtests.py", line 533, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "C:\projects\obspy\obspy\scripts\runtests.py", line 154, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "C:\Miniconda-x64\envs\test\lib\unittest\loader.py", line 115, in loadTestsFromName
test = obj()
File "obspy\signal\tests\__init__.py", line 17, in suite
add_unittests(suite, MODULE_NAME)
File "obspy\core\util\testing.py", line 72, in add_unittests
fromlist=[native_str("obspy")])
File "obspy\signal\tests\test_spectral_estimation.py", line 89, in <module>
_ppsd = _internal_get_ppsd()
File "obspy\signal\tests\test_spectral_estimation.py", line 84, in _internal_get_ppsd
ppsd.add(st)
File "obspy\signal\spectral_estimation.py", line 721, in add
while t1 + self.ppsd_length <= t2:
File "obspy\core\utcdatetime.py", line 1118, in __le__
return self._operate(other, operator.le)
File "obspy\core\utcdatetime.py", line 1000, in _operate
a = self.rounded_timestamp()
File "obspy\core\utcdatetime.py", line 428, in rounded_timestamp
return round(round(self._ns, _precision - 9) / 1e9, _precision)
File "C:\Miniconda-x64\envs\test\lib\site-packages\future\builtins\newround.py", line 33, in newround
raise NotImplementedError('negative ndigits not supported yet')
NotImplementedError: negative ndigits not supported yet

Skipped Tests (12)

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

Slowest Tests (20)

Runtime Test
15.962s test_is_format (obspy.core.tests.test_waveform_plugins.WaveformPluginsTestCase)
6.657s __init__ (obspy.taup)
5.958s test_infinite_loop (obspy.io.mseed.tests.test_mseed_special_issues.MSEEDSpecialIssueTestCase)
4.906s test_shoot_existing_ray_param (obspy.taup.tests.test_seismic_phase.TauPySeismicPhaseTestCase)
3.972s test_auto_read_arclink_xml (obspy.io.arclink.tests.test_inventory_xml.ArclinkInventoryTestCase)
3.578s test_location_plot_global (obspy.core.tests.test_network.NetworkBasemapTestCase)
3.547s test_location_plot_global (obspy.core.tests.test_inventory.InventoryBasemapTestCase)
3.375s test_combined_station_event_plot (obspy.core.tests.test_inventory.InventoryBasemapTestCase)
3.235s plot_travel_times (obspy.taup.tau)
2.803s test_read_thread_safe (obspy.core.tests.test_waveform_plugins.WaveformPluginsTestCase)
2.786s read (obspy.core.stream)
2.672s test_many_identically_named_phases (obspy.taup.tests.test_seismic_phase.TauPySeismicPhaseTestCase)
2.656s test_vs_java_iasp91 (obspy.taup.tests.test_tau.TauPyModelTestCase)
2.203s test_location_plot_ortho (obspy.core.tests.test_inventory.InventoryBasemapTestCase)
2.140s test_location_plot_ortho (obspy.core.tests.test_network.NetworkBasemapTestCase)
1.531s test_spherical_many_phases (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
1.437s test_small_regional_model (obspy.taup.tests.test_tau.TauPyModelTestCase)
1.391s test_plot_travel_times_convenience (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
1.375s test_compute_ray_paths (obspy.taup.tests.test_ray_paths.RayPathCalculationsTestCase)
1.375s test_read_many_events (obspy.io.nordic.tests.test_nordic.TestNordicMethods)

Chuck Norris Fact

Chuck Norris does not code in cycles, he codes in strikes.