[MSNoise] I got a question when I'm using MSNoise 1.6

Matthew Agius matthew.agius at um.edu.mt
Fri May 19 11:21:26 UTC 2023


Hi,

Unfortunately, I am facing a similar problem. Any help is appreciated

When I run msnoise test, I get:


> test_999_S01installer (msnoise.test.tests.MSNoiseTests) ... Seems to be
> running on local machine, skipping MySQL test
> ok
> ======================================================================
> ERROR: test_025_dtt (msnoise.test.tests.MSNoiseTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/sigma/anaconda3/lib/python3.7/site-packages/pandas/core/series.py",
> line 1062, in __setitem__
>     self._set_with_engine(key, value)
>   File
> "/home/sigma/anaconda3/lib/python3.7/site-packages/pandas/core/series.py",
> line 1095, in _set_with_engine
>     loc = self.index._engine.get_loc(key)
>   File "pandas/_libs/index.pyx", line 76, in
> pandas._libs.index.IndexEngine.get_loc
>   File "pandas/_libs/index.pyx", line 82, in
> pandas._libs.index.IndexEngine.get_loc
> TypeError: '[ 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 23 31 32 33
> 34 35 36 37
>  38 39 40 41 42 43 44 45 46]' is an invalid key
>
>
> During handling of the above exception, another exception occurred:
> Traceback (most recent call last):
>   File
> "/home/sigma/Dropbox/Matthew/UOM/Projects/SIGMA/msnoise/msnoise/test/tests.py",
> line 312, in test_025_dtt
>     main()
>   File
> "/home/sigma/Dropbox/Matthew/UOM/Projects/SIGMA/msnoise/msnoise/s06compute_dtt.py",
> line 231, in main
>     df['err'][tmp] = 1.0
>   File
> "/home/sigma/anaconda3/lib/python3.7/site-packages/pandas/core/series.py",
> line 1088, in __setitem__
>     self._set_with(key, value)
>   File
> "/home/sigma/anaconda3/lib/python3.7/site-packages/pandas/core/series.py",
> line 1123, in _set_with
>     self._set_labels(key, value)
>   File
> "/home/sigma/anaconda3/lib/python3.7/site-packages/pandas/core/series.py",
> line 1134, in _set_labels
>     raise KeyError(f"{key[mask]} not in index")
> KeyError: '[ 1  2  3  4  6  7  8  9 11 12 13 14 23 31 32 33 34 36 37 38 39
> 41 42 43\n 44 46] not in index'
>
>
> ----------------------------------------------------------------------
> Ran 51 tests in 35.970s


> FAILED (errors=1)
> Tests executed in /tmp/tmpvew99h0w




On Fri, Jan 14, 2022 at 8:55 AM Thomas Lecocq <Thomas.Lecocq at seismology.be>
wrote:

> hi,
>
> You need to install the lastest release version 1.6.2, which corrects
> this bug (it is due to changes in the pandas library)
>
> simply:
>
> pip uninstall msnoise
>
> pip install msnoise
>
> and you should be good to go !
>
> thomas
>
> Le 14/01/2022 à 04:55, Zhang Rui a écrit :
> > Hi, dear monitor。 My names Zaire and I am a postgraduate from China
> using MSNoise to do some research on the data we recorded. I've got a
> problem when I used MSNoise 1.6, "compute_dtt".
> > G:\cal>msnoise compute_dtt
> > 2022-01-13 11:04:07.813875 msnoise [pid 17668][INFO]: *** Starting:
> Compute DT/T ***
> > 2022-01-13 11:04:08.187253 msnoise [pid 17668][INFO]: Loading mov=1 days
> for filter=01
> > Traceback (most recent call last):
> >    File "F:\Anaconda\lib\site-packages\pandas\core\series.py", line
> 1062, in __setitem__
> >      self._set_with_engine(key, value)
> >    File "F:\Anaconda\lib\site-packages\pandas\core\series.py", line
> 1095, in _set_with_engine
> >      loc = self.index._engine.get_loc(key)
> >    File "pandas\_libs\index.pyx", line 76, in
> pandas._libs.index.IndexEngine.get_loc
> >    File "pandas\_libs\index.pyx", line 82, in
> pandas._libs.index.IndexEngine.get_loc
> > TypeError: '[  0   1   2   3   4   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 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 358 359 360 361 362 363 364 365 366 367 368 369 370
> >   371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388
> >   389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406
> >   407 408 409 410 411 412 413 414 415 416 417 418 419 420 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 551 552 553 554 555 556 557 558 559 560 561
> >   562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579
> >   580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597
> >   598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615
> >   616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633
> >   634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651
> >   652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
> >   670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687
> >   688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705
> >   706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723
> >   724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741
> >   742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759
> >   760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777
> >   778 779 780]' is an invalid key
> >
> > During handling of the above exception, another exception occurred:
> >
> > Traceback (most recent call last):
> >    File "F:\Anaconda\lib\runpy.py", line 197, in _run_module_as_main
> >      return _run_code(code, main_globals, None,
> >    File "F:\Anaconda\lib\runpy.py", line 87, in _run_code
> >      exec(code, run_globals)
> >    File "F:\Anaconda\Scripts\msnoise.exe\__main__.py", line 7, in
> <module>
> >    File "F:\Anaconda\lib\site-packages\msnoise\scripts\msnoise.py", line
> 1202, in run
> >      cli(obj={})
> >    File "F:\Anaconda\lib\site-packages\click\core.py", line 1128, in
> __call__
> >      return self.main(*args, **kwargs)
> >    File "F:\Anaconda\lib\site-packages\click\core.py", line 1053, in main
> >      rv = self.invoke(ctx)
> >    File "F:\Anaconda\lib\site-packages\click\core.py", line 1659, in
> invoke
> >      return _process_result(sub_ctx.command.invoke(sub_ctx))
> >    File "F:\Anaconda\lib\site-packages\click\core.py", line 1395, in
> invoke
> >      return ctx.invoke(self.callback, **ctx.params)
> >    File "F:\Anaconda\lib\site-packages\click\core.py", line 754, in
> invoke
> >      return __callback(*args, **kwargs)
> >    File "F:\Anaconda\lib\site-packages\click\decorators.py", line 26, in
> new_func
> >      return f(get_current_context(), *args, **kwargs)
> >    File "F:\Anaconda\lib\site-packages\msnoise\scripts\msnoise.py", line
> 824, in compute_dtt
> >      main(loglevel=loglevel)
> >    File "F:\Anaconda\lib\site-packages\msnoise\s06compute_dtt.py", line
> 231, in main
> >      df['err'][tmp] = 1.0
> >    File "F:\Anaconda\lib\site-packages\pandas\core\series.py", line
> 1088, in __setitem__
> >      self._set_with(key, value)
> >    File "F:\Anaconda\lib\site-packages\pandas\core\series.py", line
> 1123, in _set_with
> >      self._set_labels(key, value)
> >    File "F:\Anaconda\lib\site-packages\pandas\core\series.py", line
> 1134, in _set_labels
> >      raise KeyError(f"{key[mask]} not in index")
> > KeyError: '[ 98  99 100 101 102 103 104 105 106 107 108 109 110 111 112
> 113 114 115\n 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
> 131 132 133\n 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
> 149 150 151\n 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
> 167 168 169\n 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
> 185 186 187\n 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
> 203 204 205\n 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
> 221 222 223\n 224 225 226 227 228 229 331 332 333 334 335 336 337 338 339
> 340 341 342\n 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
> 358 359 360\n 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
> 376 377 378\n 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
> 394 395 396\n 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
> 412 413 414\n 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
> 430 431 432\n 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
> 448 449 551\n 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
> 567 568 569\n 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584
> 585 586 587\n 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602
> 603 604 605\n 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620
> 621 622 623\n 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638
> 639 640 641\n 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656
> 657 658 659\n 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674
> 675 676 677\n 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692
> 693 694 695\n 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710
> 711 712 713\n 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728
> 729 730 731\n 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746
> 747 748 749\n 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764
> 765 766 767\n 768 769 770 771 772 773 774 775 776 777 778 779 780] not in
> index'
> > I wonder how to solve this problem and I don't know if there's something
> wrong I set or what else. I'm sure I can do it if I got your help.
> > Thanks for your time!
> > _______________________________________________
> > MSNoise mailing list
> > MSNoise at mailman-as.oma.be
> > http://mailman-as.oma.be/mailman/listinfo/msnoise
> >
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise
>


More information about the MSNoise mailing list