sgnl.svd_bank
¶
This module contains methods for reading in SVD bank files.
group(inlist, parts)
¶
! group a list roughly according to the distribution in parts, e.g.
A = list(range(12)) B = [2,3] for g in group(A,B): ... print(g) ... [0, 1][2, 3] [4, 5][6, 7, 8] [9, 10, 11]
Source code in sgnl/svd_bank.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
|
horizon_distance_func(banks)
¶
Takes a dictionary of objects returned by read_banks keyed by instrument
Source code in sgnl/svd_bank.py
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 |
|
parse_bank_files(svd_banks, verbose, snr_threshold=None, fast=False)
¶
given a dictionary of lists of svd template bank file names parse them into a dictionary of bank classes
Source code in sgnl/svd_bank.py
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 |
|
parse_svdbank_string(bank_string)
¶
parses strings of form
H1:bank1.xml,H2:bank2.xml,L1:bank3.xml
into a dictionary of lists of bank files.
Source code in sgnl/svd_bank.py
726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 |
|