test_io

wield.control.fitting.SISO.test.v2.io.test_io

This is a pytest module needing documentation

pytest-html report

Functions

gen_outname(base)

This is a pytest needing documentation

test_csv_fit()

This is a pytest needing documentation

test_mat_datamissing()

This is a pytest needing documentation

test_mat_fit()

This is a pytest needing documentation

test_mat_full()

This is a pytest needing documentation

test_mat_help()

This is a pytest needing documentation

test_mat_printdata()

This is a pytest needing documentation

Details

gen_outname(base)[source][github]

This is a pytest needing documentation

code
1def gen_outname(base):
2    fname_out = path.join(localpath, base)
3    try:
4        os.unlink(fname_out)
5    except OSError:
6        pass
7    return fname_out
pytest information

This code is wrapped in a pytest function using conventions detailed in Pytest Conventions. The full name of this test, as known by the documentation, is:

wield.control.fitting.SISO.test.v2.io.test_io.gen_outname

The full name is useful when building documentation, to link a reference to this page using :func:`name`, or directly include it with an autofunction directive. The collapse nodes below show every instance of the test run. There may only be one, but if the test was run multiple times through pytest parametrizations, the list can be longer.

test_csv_fit()[source][github]

This is a pytest needing documentation

code
 1@skipdeco
 2def test_csv_fit():
 3    fname = matlab_test_data.matfiles["iir_test_struct.mat"]
 4    from wield.utilities.file_io import load_any
 5
 6    fdict = load_any(fname=fname, ftype="mat")
 7    data = fdict["data"]
 8    darr = np.vstack(
 9        [
10            data["F_Hz"],
11            data["xfer"].real,
12            data["xfer"].imag,
13            data["SNR"],
14        ]
15    )
16    fname_in = path.join(localpath, "in.csv")
17    np.savetxt(fname_in, darr, delimiter=",")
18    fname_out = gen_outname("out.mat")
19
20    v2_main(
21        [
22            "-D",
23            "data,D",
24            "--mode",
25            "fit",
26            fname_in,
27            fname_out,
28            "--choose",
29            "baseline",
30            "-p=-30",
31        ]
32    )
pytest information

This code is wrapped in a pytest function using conventions detailed in Pytest Conventions. The full name of this test, as known by the documentation, is:

wield.control.fitting.SISO.test.v2.io.test_io.test_csv_fit

The full name is useful when building documentation, to link a reference to this page using :func:`name`, or directly include it with an autofunction directive. The collapse nodes below show every instance of the test run. There may only be one, but if the test was run multiple times through pytest parametrizations, the list can be longer.

test_csv_fit
output
Arguments: 
  COH: None
  F_Hz: [(100,) float64 array]
  SNR: [(100,) float64 array]
  emphasis: None
  mode: fit
  poles: [(-30+0j)]
  xfer: [(100,) complex128 array]
{'mode': 'fit', 'poles': [(-30+0j)], 'xfer': array([0.        +0.j        , 0.1009999 -0.999899j  ,
       0.39211842-1.94098618j, 0.84104289-2.77544155j,
       1.40338567-3.47337953j, 2.03235509-4.02406308j,
       2.68636669-4.43250504j, 3.33310659-4.71396504j,
       3.95037343-4.88858712j, 4.52488688-4.97737557j,
       5.05024999-4.99974749j, 5.52486188-4.97237569j,
       5.95016735-4.90888806j, 6.32935096-4.82004419j,
       6.66643992-4.71412537j, 6.96572862-4.59738089j,
       7.23143414-4.47444987j, 7.4675073 -4.34872484j,
       7.67754319-4.22264875j, 7.8647524 -4.09794994j,
       8.03196723-3.97582378j, 8.18166639-3.8570713j ,
       8.31600832-3.74220374j, 8.43686704-3.63152103j,
       8.54586727-3.52517025j, 8.64441709-3.42318917j,
       8.73373729-3.32553843j, 8.81488737-3.23212537j,
       8.88878811-3.14282151j, 8.95624115-3.05747543j,
       9.01794571-2.97592208j, 9.07451299-2.89798963j,
       9.12647837-2.82350425j, 9.17431193-2.75229358j,
       9.21842729-2.68418912j, 9.25918927-2.61902782j,
       9.2969204 -2.55665311j, 9.33190639-2.49691549j,
       9.36440101-2.43967289j, 9.39463005-2.38479071j,
       9.42279492-2.33214174j, 9.44907561-2.28160606j,
       9.47363333-2.23307071j, 9.49661275-2.18642945j,
       9.51814396-2.14158239j, 9.53834414-2.09843571j,
       9.55731907-2.05690128j, 9.57516439-2.01689633j,
       9.59196673-1.97834314j, 9.60780469-1.9411687j ,
       9.62274972-1.90530444j, 9.63686685-1.87068592j,
       9.65021538-1.83725254j, 9.66284946-1.80494735j,
       9.6748186 -1.77371674j, 9.68616815-1.74351027j,
       9.69693971-1.71428041j, 9.70717148-1.68598241j,
       9.71689856-1.65857407j, 9.72615332-1.63201556j,
       9.73496556-1.60626932j, 9.74336281-1.58129987j,
       9.75137049-1.55707368j, 9.75901215-1.53355905j,
       9.76630957-1.51072601j, 9.77328297-1.48854618j,
       9.7799511 -1.46699267j, 9.7863314 -1.44604001j,
       9.79244008-1.42566407j, 9.79829224-1.40584193j,
       9.80390195-1.38655185j, 9.80928233-1.36777317j,
       9.81444564-1.34948628j, 9.81940332-1.3316725j ,
       9.82416609-1.31431411j, 9.82874397-1.2973942j ,
       9.83314635-1.2808967j , 9.83738205-1.26480626j,
       9.84145933-1.2491083j , 9.84538595-1.23378887j,
       9.84916921-1.21883469j, 9.85281596-1.20423306j,
       9.85633266-1.18997187j, 9.8597254 -1.17603954j,
       9.86299991-1.16242499j, 9.86616159-1.14911764j,
       9.86921555-1.13610737j, 9.87216659-1.12338447j,
       9.87501929-1.11093967j, 9.87777793-1.09876406j,
       9.8804466 -1.08684913j, 9.88302914-1.07518669j,
       9.88552922-1.0637689j , 9.88795028-1.05258826j,
       9.89029562-1.04163752j, 9.89256835-1.03090975j,
       9.89477142-1.0203983j , 9.89690765-1.01009676j,
       9.8989797 -0.99999897j, 9.9009901 -0.99009901j]), 'F_Hz': array([  0.        ,   1.01010101,   2.02020202,   3.03030303,
         4.04040404,   5.05050505,   6.06060606,   7.07070707,
         8.08080808,   9.09090909,  10.1010101 ,  11.11111111,
        12.12121212,  13.13131313,  14.14141414,  15.15151515,
        16.16161616,  17.17171717,  18.18181818,  19.19191919,
        20.2020202 ,  21.21212121,  22.22222222,  23.23232323,
        24.24242424,  25.25252525,  26.26262626,  27.27272727,
        28.28282828,  29.29292929,  30.3030303 ,  31.31313131,
        32.32323232,  33.33333333,  34.34343434,  35.35353535,
        36.36363636,  37.37373737,  38.38383838,  39.39393939,
        40.4040404 ,  41.41414141,  42.42424242,  43.43434343,
        44.44444444,  45.45454545,  46.46464646,  47.47474747,
        48.48484848,  49.49494949,  50.50505051,  51.51515152,
        52.52525253,  53.53535354,  54.54545455,  55.55555556,
        56.56565657,  57.57575758,  58.58585859,  59.5959596 ,
        60.60606061,  61.61616162,  62.62626263,  63.63636364,
        64.64646465,  65.65656566,  66.66666667,  67.67676768,
        68.68686869,  69.6969697 ,  70.70707071,  71.71717172,
        72.72727273,  73.73737374,  74.74747475,  75.75757576,
        76.76767677,  77.77777778,  78.78787879,  79.7979798 ,
        80.80808081,  81.81818182,  82.82828283,  83.83838384,
        84.84848485,  85.85858586,  86.86868687,  87.87878788,
        88.88888889,  89.8989899 ,  90.90909091,  91.91919192,
        92.92929293,  93.93939394,  94.94949495,  95.95959596,
        96.96969697,  97.97979798,  98.98989899, 100.        ]), 'emphasis': None, 'SNR': array([0.        , 0.33650965, 0.67187902, 1.00498706, 1.3347504 ,
       1.66014039, 1.98019802, 2.29404646, 2.60090064, 2.90007395,
       3.19098201, 3.47314356, 3.74617894, 4.00980636, 4.26383634,
       4.50816492, 4.74276579, 4.96768198, 5.18301716, 5.38892717,
       5.58561168, 5.77330632, 5.95227551, 6.12280572, 6.28519963,
       6.43977086, 6.58683945, 6.72672794, 6.85975812, 6.9862483 ,
       7.10651109, 7.22085165, 7.32956629, 7.43294146, 7.53125301,
       7.62476567, 7.71373279, 7.79839618, 7.87898619, 7.95572182,
       8.02881089, 8.09845044, 8.16482695, 8.22811683, 8.28848674,
       8.34609407, 8.40108732, 8.45360659, 8.50378395, 8.55174389,
       8.59760373, 8.64147401, 8.68345886, 8.72365641, 8.76215909,
       8.79905398, 8.83442314, 8.86834393, 8.90088922, 8.93212775,
       8.96212432, 8.99094005, 9.01863261, 9.04525643, 9.07086288,
       9.09550048, 9.11921505, 9.14204991, 9.16404598, 9.18524199,
       9.20567453, 9.22537827, 9.24438601, 9.26272881, 9.28043609,
       9.29753574, 9.31405422, 9.33001658, 9.34544664, 9.36036697,
       9.37479902, 9.38876316, 9.40227875, 9.41536418, 9.42803697,
       9.44031375, 9.45221038, 9.46374194, 9.47492279, 9.48576663,
       9.49628649, 9.50649483, 9.5164035 , 9.52602382, 9.53536661,
       9.54444218, 9.55326037, 9.56183062, 9.57016191, 9.57826285]), 'COH': None}
TEE_LOGFILE None
A [-30.+0.j]
B [-30.]
2A   0.17  Baseline fit residuals: 2.05e+01, at order 1
BASELINE:  1
------------:investigations:
2I   0.22    max(z, p)       ChiSq.
                   order    avg. res.    med. res.    max. res.
             -----------  -----------  -----------  -----------
                       1      20.4012      33.8327      100.196
CHOOSING: None
-L, --LIGO_foton=Sf output:
%%%
ZPK([],[
  -232.56442471569602;
], 24569.212344868716, "f")
%%%
%%% add or adjust the following poles and zeros to bootstrap the fit and refine. Disable this message with --no-refine
--zeros=: --poles=-232.56442:
%%%
Captured stderr call
3W   0.00  1 SNR=0 element(s) dropped (of 100)
test_mat_datamissing()[source][github]

This is a pytest needing documentation

code
1@skipdeco
2def test_mat_datamissing():
3    fname = matlab_test_data.matfiles["iir_test_struct.mat"]
4    fname_out = path.join(localpath, "out.mat")
5    with pytest.raises(SystemExit):
6        v2_main(["-D", "test,D", "--mode", "fit", fname, fname_out])
pytest information

This code is wrapped in a pytest function using conventions detailed in Pytest Conventions. The full name of this test, as known by the documentation, is:

wield.control.fitting.SISO.test.v2.io.test_io.test_mat_datamissing

The full name is useful when building documentation, to link a reference to this page using :func:`name`, or directly include it with an autofunction directive. The collapse nodes below show every instance of the test run. There may only be one, but if the test was run multiple times through pytest parametrizations, the list can be longer.

test_mat_datamissing
output
data:
  F_Hz: [(100,) float64 array]
  SNR: [(100,) float64 array]
  confuse: [[1, 2], [1, 2], {'A': 1}]
    0: [1, 2]
    1: [1, 2]
      0: 1
      1: 2
    2:
      A: 1
  none: None
  noneA: None
  noneC: None
  xfer: [(100,) complex128 array]
Captured stderr call
No data groups found in data file /builds/wield-control/src/wield/control/fitting/SISO/testing/test_data/matlab/iir_test_struct.mat
The data file layout is:
test_mat_fit()[source][github]

This is a pytest needing documentation

code
 1@skipdeco
 2def test_mat_fit():
 3    fname = matlab_test_data.matfiles["iir_test_struct.mat"]
 4    fname_out = gen_outname("out.json")
 5    v2_main(
 6        [
 7            "-D",
 8            "data,D",
 9            "--mode",
10            "fit",
11            fname,
12            fname_out,
13            "--choose",
14            "baseline",
15            "-p=-2",
16        ]
17    )
18
19    fname_out2 = gen_outname("out2.yaml")
20    v2_main(
21        ["-D", "data,D", "--mode", "fit", fname_out, fname_out2, "--choose", "baseline"]
22    )
23
24    fname_out3 = gen_outname("out3.mat")
25    v2_main(
26        [
27            "-D",
28            "data,D",
29            "--mode",
30            "fit",
31            fname_out2,
32            fname_out3,
33            "--choose",
34            "baseline",
35        ]
36    )
37
38    fname_out4 = gen_outname("out4.h5")
39    v2_main(
40        [
41            "-D",
42            "data,D",
43            "--mode",
44            "fit",
45            fname_out3,
46            fname_out4,
47            "--choose",
48            "baseline",
49        ]
50    )
51
52    fname_out5 = gen_outname("out5.pkl")
53    v2_main(
54        [
55            "-D",
56            "data,D",
57            "--mode", "fit",
58            fname_out4,
59            fname_out5,
60            "--choose",
61            "baseline",
62        ]
63    )
pytest information

This code is wrapped in a pytest function using conventions detailed in Pytest Conventions. The full name of this test, as known by the documentation, is:

wield.control.fitting.SISO.test.v2.io.test_io.test_mat_fit

The full name is useful when building documentation, to link a reference to this page using :func:`name`, or directly include it with an autofunction directive. The collapse nodes below show every instance of the test run. There may only be one, but if the test was run multiple times through pytest parametrizations, the list can be longer.

test_mat_fit
output
Arguments: 
  COH: None
  F_Hz: [(100,) float64 array]
  SNR: [(100,) float64 array]
  emphasis: None
  mode: fit
  poles: [(-2+0j)]
  xfer: [(100,) complex128 array]
{'mode': 'fit', 'poles': [(-2+0j)], 'xfer': array([0.        -0.j        , 0.1009999 -0.999899j  ,
       0.39211842-1.94098618j, 0.84104289-2.77544155j,
       1.40338567-3.47337953j, 2.03235509-4.02406308j,
       2.68636669-4.43250504j, 3.33310659-4.71396504j,
       3.95037343-4.88858712j, 4.52488688-4.97737557j,
       5.05024999-4.99974749j, 5.52486188-4.97237569j,
       5.95016735-4.90888806j, 6.32935096-4.82004419j,
       6.66643992-4.71412537j, 6.96572862-4.59738089j,
       7.23143414-4.47444987j, 7.4675073 -4.34872484j,
       7.67754319-4.22264875j, 7.8647524 -4.09794994j,
       8.03196723-3.97582378j, 8.18166639-3.8570713j ,
       8.31600832-3.74220374j, 8.43686704-3.63152103j,
       8.54586727-3.52517025j, 8.64441709-3.42318917j,
       8.73373729-3.32553843j, 8.81488737-3.23212537j,
       8.88878811-3.14282151j, 8.95624115-3.05747543j,
       9.01794571-2.97592208j, 9.07451299-2.89798963j,
       9.12647837-2.82350425j, 9.17431193-2.75229358j,
       9.21842729-2.68418912j, 9.25918927-2.61902782j,
       9.2969204 -2.55665311j, 9.33190639-2.49691549j,
       9.36440101-2.43967289j, 9.39463005-2.38479071j,
       9.42279492-2.33214174j, 9.44907561-2.28160606j,
       9.47363333-2.23307071j, 9.49661275-2.18642945j,
       9.51814396-2.14158239j, 9.53834414-2.09843571j,
       9.55731907-2.05690128j, 9.57516439-2.01689633j,
       9.59196673-1.97834314j, 9.60780469-1.9411687j ,
       9.62274972-1.90530444j, 9.63686685-1.87068592j,
       9.65021538-1.83725254j, 9.66284946-1.80494735j,
       9.6748186 -1.77371674j, 9.68616815-1.74351027j,
       9.69693971-1.71428041j, 9.70717148-1.68598241j,
       9.71689856-1.65857407j, 9.72615332-1.63201556j,
       9.73496556-1.60626932j, 9.74336281-1.58129987j,
       9.75137049-1.55707368j, 9.75901215-1.53355905j,
       9.76630957-1.51072601j, 9.77328297-1.48854618j,
       9.7799511 -1.46699267j, 9.7863314 -1.44604001j,
       9.79244008-1.42566407j, 9.79829224-1.40584193j,
       9.80390195-1.38655185j, 9.80928233-1.36777317j,
       9.81444564-1.34948628j, 9.81940332-1.3316725j ,
       9.82416609-1.31431411j, 9.82874397-1.2973942j ,
       9.83314635-1.2808967j , 9.83738205-1.26480626j,
       9.84145933-1.2491083j , 9.84538595-1.23378887j,
       9.84916921-1.21883469j, 9.85281596-1.20423306j,
       9.85633266-1.18997187j, 9.8597254 -1.17603954j,
       9.86299991-1.16242499j, 9.86616159-1.14911764j,
       9.86921555-1.13610737j, 9.87216659-1.12338447j,
       9.87501929-1.11093967j, 9.87777793-1.09876406j,
       9.8804466 -1.08684913j, 9.88302914-1.07518669j,
       9.88552922-1.0637689j , 9.88795028-1.05258826j,
       9.89029562-1.04163752j, 9.89256835-1.03090975j,
       9.89477142-1.0203983j , 9.89690765-1.01009676j,
       9.8989797 -0.99999897j, 9.9009901 -0.99009901j]), 'F_Hz': array([  0.        ,   1.01010101,   2.02020202,   3.03030303,
         4.04040404,   5.05050505,   6.06060606,   7.07070707,
         8.08080808,   9.09090909,  10.1010101 ,  11.11111111,
        12.12121212,  13.13131313,  14.14141414,  15.15151515,
        16.16161616,  17.17171717,  18.18181818,  19.19191919,
        20.2020202 ,  21.21212121,  22.22222222,  23.23232323,
        24.24242424,  25.25252525,  26.26262626,  27.27272727,
        28.28282828,  29.29292929,  30.3030303 ,  31.31313131,
        32.32323232,  33.33333333,  34.34343434,  35.35353535,
        36.36363636,  37.37373737,  38.38383838,  39.39393939,
        40.4040404 ,  41.41414141,  42.42424242,  43.43434343,
        44.44444444,  45.45454545,  46.46464646,  47.47474747,
        48.48484848,  49.49494949,  50.50505051,  51.51515152,
        52.52525253,  53.53535354,  54.54545455,  55.55555556,
        56.56565657,  57.57575758,  58.58585859,  59.5959596 ,
        60.60606061,  61.61616162,  62.62626263,  63.63636364,
        64.64646465,  65.65656566,  66.66666667,  67.67676768,
        68.68686869,  69.6969697 ,  70.70707071,  71.71717172,
        72.72727273,  73.73737374,  74.74747475,  75.75757576,
        76.76767677,  77.77777778,  78.78787879,  79.7979798 ,
        80.80808081,  81.81818182,  82.82828283,  83.83838384,
        84.84848485,  85.85858586,  86.86868687,  87.87878788,
        88.88888889,  89.8989899 ,  90.90909091,  91.91919192,
        92.92929293,  93.93939394,  94.94949495,  95.95959596,
        96.96969697,  97.97979798,  98.98989899, 100.        ]), 'emphasis': None, 'SNR': array([0.        , 0.33650965, 0.67187902, 1.00498706, 1.3347504 ,
       1.66014039, 1.98019802, 2.29404646, 2.60090064, 2.90007395,
       3.19098201, 3.47314356, 3.74617894, 4.00980636, 4.26383634,
       4.50816492, 4.74276579, 4.96768198, 5.18301716, 5.38892717,
       5.58561168, 5.77330632, 5.95227551, 6.12280572, 6.28519963,
       6.43977086, 6.58683945, 6.72672794, 6.85975812, 6.9862483 ,
       7.10651109, 7.22085165, 7.32956629, 7.43294146, 7.53125301,
       7.62476567, 7.71373279, 7.79839618, 7.87898619, 7.95572182,
       8.02881089, 8.09845044, 8.16482695, 8.22811683, 8.28848674,
       8.34609407, 8.40108732, 8.45360659, 8.50378395, 8.55174389,
       8.59760373, 8.64147401, 8.68345886, 8.72365641, 8.76215909,
       8.79905398, 8.83442314, 8.86834393, 8.90088922, 8.93212775,
       8.96212432, 8.99094005, 9.01863261, 9.04525643, 9.07086288,
       9.09550048, 9.11921505, 9.14204991, 9.16404598, 9.18524199,
       9.20567453, 9.22537827, 9.24438601, 9.26272881, 9.28043609,
       9.29753574, 9.31405422, 9.33001658, 9.34544664, 9.36036697,
       9.37479902, 9.38876316, 9.40227875, 9.41536418, 9.42803697,
       9.44031375, 9.45221038, 9.46374194, 9.47492279, 9.48576663,
       9.49628649, 9.50649483, 9.5164035 , 9.52602382, 9.53536661,
       9.54444218, 9.55326037, 9.56183062, 9.57016191, 9.57826285]), 'COH': None}
TEE_LOGFILE None
A [-2.+0.j]
B [-2.]
2A   0.25  Baseline fit residuals: 1.76e+01, at order 1
BASELINE:  1
------------:investigations:
2I   0.26    max(z, p)       ChiSq.
                   order    avg. res.    med. res.    max. res.
             -----------  -----------  -----------  -----------
                       1       17.583      31.7101      73.6236
CHOOSING: None
-L, --LIGO_foton=Sf output:
%%%
ZPK([],[
  -284.98736477754227;
], 34180.27202618257, "f")
%%%
%%% add or adjust the following poles and zeros to bootstrap the fit and refine. Disable this message with --no-refine
--zeros=: --poles=-284.98736:
%%%
Arguments: 
  COH: None
  F_Hz: [(100,) float64 array]
  SNR: [(100,) float64 array]
  emphasis: None
  mode: fit
  poles: [(-2+0j)]
  xfer: [(100,) complex128 array]
{'mode': 'fit', 'poles': [(-2+0j)], 'xfer': array([0.        -0.j        , 0.1009999 -0.999899j  ,
       0.39211842-1.94098618j, 0.84104289-2.77544155j,
       1.40338567-3.47337953j, 2.03235509-4.02406308j,
       2.68636669-4.43250504j, 3.33310659-4.71396504j,
       3.95037343-4.88858712j, 4.52488688-4.97737557j,
       5.05024999-4.99974749j, 5.52486188-4.97237569j,
       5.95016735-4.90888806j, 6.32935096-4.82004419j,
       6.66643992-4.71412537j, 6.96572862-4.59738089j,
       7.23143414-4.47444987j, 7.4675073 -4.34872484j,
       7.67754319-4.22264875j, 7.8647524 -4.09794994j,
       8.03196723-3.97582378j, 8.18166639-3.8570713j ,
       8.31600832-3.74220374j, 8.43686704-3.63152103j,
       8.54586727-3.52517025j, 8.64441709-3.42318917j,
       8.73373729-3.32553843j, 8.81488737-3.23212537j,
       8.88878811-3.14282151j, 8.95624115-3.05747543j,
       9.01794571-2.97592208j, 9.07451299-2.89798963j,
       9.12647837-2.82350425j, 9.17431193-2.75229358j,
       9.21842729-2.68418912j, 9.25918927-2.61902782j,
       9.2969204 -2.55665311j, 9.33190639-2.49691549j,
       9.36440101-2.43967289j, 9.39463005-2.38479071j,
       9.42279492-2.33214174j, 9.44907561-2.28160606j,
       9.47363333-2.23307071j, 9.49661275-2.18642945j,
       9.51814396-2.14158239j, 9.53834414-2.09843571j,
       9.55731907-2.05690128j, 9.57516439-2.01689633j,
       9.59196673-1.97834314j, 9.60780469-1.9411687j ,
       9.62274972-1.90530444j, 9.63686685-1.87068592j,
       9.65021538-1.83725254j, 9.66284946-1.80494735j,
       9.6748186 -1.77371674j, 9.68616815-1.74351027j,
       9.69693971-1.71428041j, 9.70717148-1.68598241j,
       9.71689856-1.65857407j, 9.72615332-1.63201556j,
       9.73496556-1.60626932j, 9.74336281-1.58129987j,
       9.75137049-1.55707368j, 9.75901215-1.53355905j,
       9.76630957-1.51072601j, 9.77328297-1.48854618j,
       9.7799511 -1.46699267j, 9.7863314 -1.44604001j,
       9.79244008-1.42566407j, 9.79829224-1.40584193j,
       9.80390195-1.38655185j, 9.80928233-1.36777317j,
       9.81444564-1.34948628j, 9.81940332-1.3316725j ,
       9.82416609-1.31431411j, 9.82874397-1.2973942j ,
       9.83314635-1.2808967j , 9.83738205-1.26480626j,
       9.84145933-1.2491083j , 9.84538595-1.23378887j,
       9.84916921-1.21883469j, 9.85281596-1.20423306j,
       9.85633266-1.18997187j, 9.8597254 -1.17603954j,
       9.86299991-1.16242499j, 9.86616159-1.14911764j,
       9.86921555-1.13610737j, 9.87216659-1.12338447j,
       9.87501929-1.11093967j, 9.87777793-1.09876406j,
       9.8804466 -1.08684913j, 9.88302914-1.07518669j,
       9.88552922-1.0637689j , 9.88795028-1.05258826j,
       9.89029562-1.04163752j, 9.89256835-1.03090975j,
       9.89477142-1.0203983j , 9.89690765-1.01009676j,
       9.8989797 -0.99999897j, 9.9009901 -0.99009901j]), 'F_Hz': [0.0, 1.0101010101010102, 2.0202020202020203, 3.0303030303030303, 4.040404040404041, 5.05050505050505, 6.0606060606060606, 7.070707070707071, 8.080808080808081, 9.090909090909092, 10.1010101010101, 11.11111111111111, 12.121212121212121, 13.131313131313131, 14.141414141414142, 15.151515151515152, 16.161616161616163, 17.171717171717173, 18.181818181818183, 19.19191919191919, 20.2020202020202, 21.21212121212121, 22.22222222222222, 23.232323232323232, 24.242424242424242, 25.252525252525253, 26.262626262626263, 27.272727272727273, 28.282828282828284, 29.292929292929294, 30.303030303030305, 31.31313131313131, 32.323232323232325, 33.333333333333336, 34.343434343434346, 35.35353535353536, 36.36363636363637, 37.37373737373738, 38.38383838383838, 39.39393939393939, 40.4040404040404, 41.41414141414141, 42.42424242424242, 43.43434343434343, 44.44444444444444, 45.45454545454545, 46.464646464646464, 47.474747474747474, 48.484848484848484, 49.494949494949495, 50.505050505050505, 51.515151515151516, 52.525252525252526, 53.535353535353536, 54.54545454545455, 55.55555555555556, 56.56565656565657, 57.57575757575758, 58.58585858585859, 59.5959595959596, 60.60606060606061, 61.61616161616162, 62.62626262626262, 63.63636363636363, 64.64646464646465, 65.65656565656566, 66.66666666666667, 67.67676767676768, 68.68686868686869, 69.6969696969697, 70.70707070707071, 71.71717171717172, 72.72727272727273, 73.73737373737374, 74.74747474747475, 75.75757575757575, 76.76767676767676, 77.77777777777777, 78.78787878787878, 79.79797979797979, 80.8080808080808, 81.81818181818181, 82.82828282828282, 83.83838383838383, 84.84848484848484, 85.85858585858585, 86.86868686868686, 87.87878787878788, 88.88888888888889, 89.8989898989899, 90.9090909090909, 91.91919191919192, 92.92929292929293, 93.93939393939394, 94.94949494949495, 95.95959595959596, 96.96969696969697, 97.97979797979798, 98.98989898989899, 100.0], 'emphasis': None, 'SNR': [0.0, 0.3365096450893382, 0.6718790167691904, 1.004987059618685, 1.3347504040516887, 1.6601403860786523, 1.98019801980198, 2.294046458366328, 2.600900636502865, 2.900073952828708, 3.190982008450142, 3.473143558235939, 3.746178943835794, 4.009806358432855, 4.263836341369383, 4.508164918325264, 4.742765794075034, 4.967681975728063, 5.183017160933443, 5.388927173702518, 5.585611675408056, 5.773306324272376, 5.952275506257375, 6.122805715657683, 6.285199625897858, 6.439770860337522, 6.586839449050292, 6.726727939963126, 6.859758120618379, 6.986248299263971, 7.106511090102073, 7.220851646508679, 7.329566287142784, 7.432941462471663, 7.531253012835188, 7.624765673350041, 7.713732785400772, 7.798396178946582, 7.878986194225227, 7.9557218155477125, 8.028810893680426, 8.098450436768962, 8.164826952856764, 8.228116829796365, 8.288486740756483, 8.346094065617253, 8.401087320345173, 8.453606587977276, 8.503783946149222, 8.55174388720224, 8.597603727824831, 8.641474005951174, 8.683458863270777, 8.72365641222233, 8.76215908676647, 8.799053976571923, 8.834423144520493, 8.868343927649883, 8.900889221819051, 8.93212775050684, 8.962124318248271, 8.990940049279844, 9.018632612010514, 9.045256429962995, 9.070862879844054, 9.095500477405368, 9.119215051751064, 9.142049908735645, 9.16404598407889, 9.185241986803323, 9.205674533576456, 9.225378274514632, 9.244386010979275, 9.26272880586941, 9.280436086887814, 9.297535743231542, 9.314054216131831, 9.330016583643193, 9.345446640057332, 9.36036697029427, 9.374799019600903, 9.388763158866084, 9.402278745841405, 9.4153641825378, 9.428036969050535, 9.440313754048043, 9.452210382144658, 9.463741938362231, 9.474922789871991, 9.485766625194985, 9.496286491027329, 9.50649482684524, 9.516403497434275, 9.526023823477406, 9.535366610327303, 9.544442175079858, 9.55326037205782, 9.561830616806207, 9.570161908694148, 9.578262852211514], 'COH': None}
TEE_LOGFILE None
A [-2.+0.j]
B [-2.]
2A   0.26  Baseline fit residuals: 1.76e+01, at order 1
BASELINE:  1
------------:investigations:
2I   0.27    max(z, p)       ChiSq.
                   order    avg. res.    med. res.    max. res.
             -----------  -----------  -----------  -----------
                       1       17.583      31.7101      73.6236
CHOOSING: None
-L, --LIGO_foton=Sf output:
%%%
ZPK([],[
  -284.98736477754227;
], 34180.27202618257, "f")
%%%
%%% add or adjust the following poles and zeros to bootstrap the fit and refine. Disable this message with --no-refine
--zeros=: --poles=-284.98736:
%%%
Arguments: 
  COH: None
  F_Hz: [(100,) float64 array]
  SNR: [(100,) float64 array]
  emphasis: None
  mode: fit
  poles: [(-2+0j)]
  xfer: [(100,) complex128 array]
{'mode': 'fit', 'poles': [(-2+0j)], 'xfer': array([0.        -0.j        , 0.1009999 -0.999899j  ,
       0.39211842-1.94098618j, 0.84104289-2.77544155j,
       1.40338567-3.47337953j, 2.03235509-4.02406308j,
       2.68636669-4.43250504j, 3.33310659-4.71396504j,
       3.95037343-4.88858712j, 4.52488688-4.97737557j,
       5.05024999-4.99974749j, 5.52486188-4.97237569j,
       5.95016735-4.90888806j, 6.32935096-4.82004419j,
       6.66643992-4.71412537j, 6.96572862-4.59738089j,
       7.23143414-4.47444987j, 7.4675073 -4.34872484j,
       7.67754319-4.22264875j, 7.8647524 -4.09794994j,
       8.03196723-3.97582378j, 8.18166639-3.8570713j ,
       8.31600832-3.74220374j, 8.43686704-3.63152103j,
       8.54586727-3.52517025j, 8.64441709-3.42318917j,
       8.73373729-3.32553843j, 8.81488737-3.23212537j,
       8.88878811-3.14282151j, 8.95624115-3.05747543j,
       9.01794571-2.97592208j, 9.07451299-2.89798963j,
       9.12647837-2.82350425j, 9.17431193-2.75229358j,
       9.21842729-2.68418912j, 9.25918927-2.61902782j,
       9.2969204 -2.55665311j, 9.33190639-2.49691549j,
       9.36440101-2.43967289j, 9.39463005-2.38479071j,
       9.42279492-2.33214174j, 9.44907561-2.28160606j,
       9.47363333-2.23307071j, 9.49661275-2.18642945j,
       9.51814396-2.14158239j, 9.53834414-2.09843571j,
       9.55731907-2.05690128j, 9.57516439-2.01689633j,
       9.59196673-1.97834314j, 9.60780469-1.9411687j ,
       9.62274972-1.90530444j, 9.63686685-1.87068592j,
       9.65021538-1.83725254j, 9.66284946-1.80494735j,
       9.6748186 -1.77371674j, 9.68616815-1.74351027j,
       9.69693971-1.71428041j, 9.70717148-1.68598241j,
       9.71689856-1.65857407j, 9.72615332-1.63201556j,
       9.73496556-1.60626932j, 9.74336281-1.58129987j,
       9.75137049-1.55707368j, 9.75901215-1.53355905j,
       9.76630957-1.51072601j, 9.77328297-1.48854618j,
       9.7799511 -1.46699267j, 9.7863314 -1.44604001j,
       9.79244008-1.42566407j, 9.79829224-1.40584193j,
       9.80390195-1.38655185j, 9.80928233-1.36777317j,
       9.81444564-1.34948628j, 9.81940332-1.3316725j ,
       9.82416609-1.31431411j, 9.82874397-1.2973942j ,
       9.83314635-1.2808967j , 9.83738205-1.26480626j,
       9.84145933-1.2491083j , 9.84538595-1.23378887j,
       9.84916921-1.21883469j, 9.85281596-1.20423306j,
       9.85633266-1.18997187j, 9.8597254 -1.17603954j,
       9.86299991-1.16242499j, 9.86616159-1.14911764j,
       9.86921555-1.13610737j, 9.87216659-1.12338447j,
       9.87501929-1.11093967j, 9.87777793-1.09876406j,
       9.8804466 -1.08684913j, 9.88302914-1.07518669j,
       9.88552922-1.0637689j , 9.88795028-1.05258826j,
       9.89029562-1.04163752j, 9.89256835-1.03090975j,
       9.89477142-1.0203983j , 9.89690765-1.01009676j,
       9.8989797 -0.99999897j, 9.9009901 -0.99009901j]), 'F_Hz': [0.0, 1.0101010101010102, 2.0202020202020203, 3.0303030303030303, 4.040404040404041, 5.05050505050505, 6.0606060606060606, 7.070707070707071, 8.080808080808081, 9.090909090909092, 10.1010101010101, 11.11111111111111, 12.121212121212121, 13.131313131313131, 14.141414141414142, 15.151515151515152, 16.161616161616163, 17.171717171717173, 18.181818181818183, 19.19191919191919, 20.2020202020202, 21.21212121212121, 22.22222222222222, 23.232323232323232, 24.242424242424242, 25.252525252525253, 26.262626262626263, 27.272727272727273, 28.282828282828284, 29.292929292929294, 30.303030303030305, 31.31313131313131, 32.323232323232325, 33.333333333333336, 34.343434343434346, 35.35353535353536, 36.36363636363637, 37.37373737373738, 38.38383838383838, 39.39393939393939, 40.4040404040404, 41.41414141414141, 42.42424242424242, 43.43434343434343, 44.44444444444444, 45.45454545454545, 46.464646464646464, 47.474747474747474, 48.484848484848484, 49.494949494949495, 50.505050505050505, 51.515151515151516, 52.525252525252526, 53.535353535353536, 54.54545454545455, 55.55555555555556, 56.56565656565657, 57.57575757575758, 58.58585858585859, 59.5959595959596, 60.60606060606061, 61.61616161616162, 62.62626262626262, 63.63636363636363, 64.64646464646465, 65.65656565656566, 66.66666666666667, 67.67676767676768, 68.68686868686869, 69.6969696969697, 70.70707070707071, 71.71717171717172, 72.72727272727273, 73.73737373737374, 74.74747474747475, 75.75757575757575, 76.76767676767676, 77.77777777777777, 78.78787878787878, 79.79797979797979, 80.8080808080808, 81.81818181818181, 82.82828282828282, 83.83838383838383, 84.84848484848484, 85.85858585858585, 86.86868686868686, 87.87878787878788, 88.88888888888889, 89.8989898989899, 90.9090909090909, 91.91919191919192, 92.92929292929293, 93.93939393939394, 94.94949494949495, 95.95959595959596, 96.96969696969697, 97.97979797979798, 98.98989898989899, 100.0], 'emphasis': None, 'SNR': [0.0, 0.3365096450893382, 0.6718790167691904, 1.004987059618685, 1.3347504040516887, 1.6601403860786523, 1.98019801980198, 2.294046458366328, 2.600900636502865, 2.900073952828708, 3.190982008450142, 3.473143558235939, 3.746178943835794, 4.009806358432855, 4.263836341369383, 4.508164918325264, 4.742765794075034, 4.967681975728063, 5.183017160933443, 5.388927173702518, 5.585611675408056, 5.773306324272376, 5.952275506257375, 6.122805715657683, 6.285199625897858, 6.439770860337522, 6.586839449050292, 6.726727939963126, 6.859758120618379, 6.986248299263971, 7.106511090102073, 7.220851646508679, 7.329566287142784, 7.432941462471663, 7.531253012835188, 7.624765673350041, 7.713732785400772, 7.798396178946582, 7.878986194225227, 7.9557218155477125, 8.028810893680426, 8.098450436768962, 8.164826952856764, 8.228116829796365, 8.288486740756483, 8.346094065617253, 8.401087320345173, 8.453606587977276, 8.503783946149222, 8.55174388720224, 8.597603727824831, 8.641474005951174, 8.683458863270777, 8.72365641222233, 8.76215908676647, 8.799053976571923, 8.834423144520493, 8.868343927649883, 8.900889221819051, 8.93212775050684, 8.962124318248271, 8.990940049279844, 9.018632612010514, 9.045256429962995, 9.070862879844054, 9.095500477405368, 9.119215051751064, 9.142049908735645, 9.16404598407889, 9.185241986803323, 9.205674533576456, 9.225378274514632, 9.244386010979275, 9.26272880586941, 9.280436086887814, 9.297535743231542, 9.314054216131831, 9.330016583643193, 9.345446640057332, 9.36036697029427, 9.374799019600903, 9.388763158866084, 9.402278745841405, 9.4153641825378, 9.428036969050535, 9.440313754048043, 9.452210382144658, 9.463741938362231, 9.474922789871991, 9.485766625194985, 9.496286491027329, 9.50649482684524, 9.516403497434275, 9.526023823477406, 9.535366610327303, 9.544442175079858, 9.55326037205782, 9.561830616806207, 9.570161908694148, 9.578262852211514], 'COH': None}
TEE_LOGFILE None
A [-2.+0.j]
B [-2.]
2A   0.26  Baseline fit residuals: 1.76e+01, at order 1
BASELINE:  1
------------:investigations:
2I   0.26    max(z, p)       ChiSq.
                   order    avg. res.    med. res.    max. res.
             -----------  -----------  -----------  -----------
                       1       17.583      31.7101      73.6236
CHOOSING: None
-L, --LIGO_foton=Sf output:
%%%
ZPK([],[
  -284.98736477754227;
], 34180.27202618257, "f")
%%%
%%% add or adjust the following poles and zeros to bootstrap the fit and refine. Disable this message with --no-refine
--zeros=: --poles=-284.98736:
%%%
Arguments: 
  COH: None
  F_Hz: [(100,) float64 array]
  SNR: [(100,) float64 array]
  emphasis: None
  mode: fit
  poles: [(-2+0j)]
  xfer: [(100,) complex128 array]
{'mode': 'fit', 'poles': [(-2+0j)], 'xfer': array([0.        -0.j        , 0.1009999 -0.999899j  ,
       0.39211842-1.94098618j, 0.84104289-2.77544155j,
       1.40338567-3.47337953j, 2.03235509-4.02406308j,
       2.68636669-4.43250504j, 3.33310659-4.71396504j,
       3.95037343-4.88858712j, 4.52488688-4.97737557j,
       5.05024999-4.99974749j, 5.52486188-4.97237569j,
       5.95016735-4.90888806j, 6.32935096-4.82004419j,
       6.66643992-4.71412537j, 6.96572862-4.59738089j,
       7.23143414-4.47444987j, 7.4675073 -4.34872484j,
       7.67754319-4.22264875j, 7.8647524 -4.09794994j,
       8.03196723-3.97582378j, 8.18166639-3.8570713j ,
       8.31600832-3.74220374j, 8.43686704-3.63152103j,
       8.54586727-3.52517025j, 8.64441709-3.42318917j,
       8.73373729-3.32553843j, 8.81488737-3.23212537j,
       8.88878811-3.14282151j, 8.95624115-3.05747543j,
       9.01794571-2.97592208j, 9.07451299-2.89798963j,
       9.12647837-2.82350425j, 9.17431193-2.75229358j,
       9.21842729-2.68418912j, 9.25918927-2.61902782j,
       9.2969204 -2.55665311j, 9.33190639-2.49691549j,
       9.36440101-2.43967289j, 9.39463005-2.38479071j,
       9.42279492-2.33214174j, 9.44907561-2.28160606j,
       9.47363333-2.23307071j, 9.49661275-2.18642945j,
       9.51814396-2.14158239j, 9.53834414-2.09843571j,
       9.55731907-2.05690128j, 9.57516439-2.01689633j,
       9.59196673-1.97834314j, 9.60780469-1.9411687j ,
       9.62274972-1.90530444j, 9.63686685-1.87068592j,
       9.65021538-1.83725254j, 9.66284946-1.80494735j,
       9.6748186 -1.77371674j, 9.68616815-1.74351027j,
       9.69693971-1.71428041j, 9.70717148-1.68598241j,
       9.71689856-1.65857407j, 9.72615332-1.63201556j,
       9.73496556-1.60626932j, 9.74336281-1.58129987j,
       9.75137049-1.55707368j, 9.75901215-1.53355905j,
       9.76630957-1.51072601j, 9.77328297-1.48854618j,
       9.7799511 -1.46699267j, 9.7863314 -1.44604001j,
       9.79244008-1.42566407j, 9.79829224-1.40584193j,
       9.80390195-1.38655185j, 9.80928233-1.36777317j,
       9.81444564-1.34948628j, 9.81940332-1.3316725j ,
       9.82416609-1.31431411j, 9.82874397-1.2973942j ,
       9.83314635-1.2808967j , 9.83738205-1.26480626j,
       9.84145933-1.2491083j , 9.84538595-1.23378887j,
       9.84916921-1.21883469j, 9.85281596-1.20423306j,
       9.85633266-1.18997187j, 9.8597254 -1.17603954j,
       9.86299991-1.16242499j, 9.86616159-1.14911764j,
       9.86921555-1.13610737j, 9.87216659-1.12338447j,
       9.87501929-1.11093967j, 9.87777793-1.09876406j,
       9.8804466 -1.08684913j, 9.88302914-1.07518669j,
       9.88552922-1.0637689j , 9.88795028-1.05258826j,
       9.89029562-1.04163752j, 9.89256835-1.03090975j,
       9.89477142-1.0203983j , 9.89690765-1.01009676j,
       9.8989797 -0.99999897j, 9.9009901 -0.99009901j]), 'F_Hz': array([  0.        ,   1.01010101,   2.02020202,   3.03030303,
         4.04040404,   5.05050505,   6.06060606,   7.07070707,
         8.08080808,   9.09090909,  10.1010101 ,  11.11111111,
        12.12121212,  13.13131313,  14.14141414,  15.15151515,
        16.16161616,  17.17171717,  18.18181818,  19.19191919,
        20.2020202 ,  21.21212121,  22.22222222,  23.23232323,
        24.24242424,  25.25252525,  26.26262626,  27.27272727,
        28.28282828,  29.29292929,  30.3030303 ,  31.31313131,
        32.32323232,  33.33333333,  34.34343434,  35.35353535,
        36.36363636,  37.37373737,  38.38383838,  39.39393939,
        40.4040404 ,  41.41414141,  42.42424242,  43.43434343,
        44.44444444,  45.45454545,  46.46464646,  47.47474747,
        48.48484848,  49.49494949,  50.50505051,  51.51515152,
        52.52525253,  53.53535354,  54.54545455,  55.55555556,
        56.56565657,  57.57575758,  58.58585859,  59.5959596 ,
        60.60606061,  61.61616162,  62.62626263,  63.63636364,
        64.64646465,  65.65656566,  66.66666667,  67.67676768,
        68.68686869,  69.6969697 ,  70.70707071,  71.71717172,
        72.72727273,  73.73737374,  74.74747475,  75.75757576,
        76.76767677,  77.77777778,  78.78787879,  79.7979798 ,
        80.80808081,  81.81818182,  82.82828283,  83.83838384,
        84.84848485,  85.85858586,  86.86868687,  87.87878788,
        88.88888889,  89.8989899 ,  90.90909091,  91.91919192,
        92.92929293,  93.93939394,  94.94949495,  95.95959596,
        96.96969697,  97.97979798,  98.98989899, 100.        ]), 'emphasis': None, 'SNR': array([0.        , 0.33650965, 0.67187902, 1.00498706, 1.3347504 ,
       1.66014039, 1.98019802, 2.29404646, 2.60090064, 2.90007395,
       3.19098201, 3.47314356, 3.74617894, 4.00980636, 4.26383634,
       4.50816492, 4.74276579, 4.96768198, 5.18301716, 5.38892717,
       5.58561168, 5.77330632, 5.95227551, 6.12280572, 6.28519963,
       6.43977086, 6.58683945, 6.72672794, 6.85975812, 6.9862483 ,
       7.10651109, 7.22085165, 7.32956629, 7.43294146, 7.53125301,
       7.62476567, 7.71373279, 7.79839618, 7.87898619, 7.95572182,
       8.02881089, 8.09845044, 8.16482695, 8.22811683, 8.28848674,
       8.34609407, 8.40108732, 8.45360659, 8.50378395, 8.55174389,
       8.59760373, 8.64147401, 8.68345886, 8.72365641, 8.76215909,
       8.79905398, 8.83442314, 8.86834393, 8.90088922, 8.93212775,
       8.96212432, 8.99094005, 9.01863261, 9.04525643, 9.07086288,
       9.09550048, 9.11921505, 9.14204991, 9.16404598, 9.18524199,
       9.20567453, 9.22537827, 9.24438601, 9.26272881, 9.28043609,
       9.29753574, 9.31405422, 9.33001658, 9.34544664, 9.36036697,
       9.37479902, 9.38876316, 9.40227875, 9.41536418, 9.42803697,
       9.44031375, 9.45221038, 9.46374194, 9.47492279, 9.48576663,
       9.49628649, 9.50649483, 9.5164035 , 9.52602382, 9.53536661,
       9.54444218, 9.55326037, 9.56183062, 9.57016191, 9.57826285]), 'COH': None}
TEE_LOGFILE None
A [-2.+0.j]
B [-2.]
2A   0.25  Baseline fit residuals: 1.76e+01, at order 1
BASELINE:  1
------------:investigations:
2I   0.26    max(z, p)       ChiSq.
                   order    avg. res.    med. res.    max. res.
             -----------  -----------  -----------  -----------
                       1       17.583      31.7101      73.6236
CHOOSING: None
-L, --LIGO_foton=Sf output:
%%%
ZPK([],[
  -284.98736477754227;
], 34180.27202618257, "f")
%%%
%%% add or adjust the following poles and zeros to bootstrap the fit and refine. Disable this message with --no-refine
--zeros=: --poles=-284.98736:
%%%
Arguments: 
  COH: None
  F_Hz: [(100,) float64 array]
  SNR: [(100,) float64 array]
  emphasis: None
  mode: fit
  poles: [(-2+0j)]
  xfer: [(100,) complex128 array]
{'mode': 'fit', 'poles': [(-2+0j)], 'xfer': array([0.        -0.j        , 0.1009999 -0.999899j  ,
       0.39211842-1.94098618j, 0.84104289-2.77544155j,
       1.40338567-3.47337953j, 2.03235509-4.02406308j,
       2.68636669-4.43250504j, 3.33310659-4.71396504j,
       3.95037343-4.88858712j, 4.52488688-4.97737557j,
       5.05024999-4.99974749j, 5.52486188-4.97237569j,
       5.95016735-4.90888806j, 6.32935096-4.82004419j,
       6.66643992-4.71412537j, 6.96572862-4.59738089j,
       7.23143414-4.47444987j, 7.4675073 -4.34872484j,
       7.67754319-4.22264875j, 7.8647524 -4.09794994j,
       8.03196723-3.97582378j, 8.18166639-3.8570713j ,
       8.31600832-3.74220374j, 8.43686704-3.63152103j,
       8.54586727-3.52517025j, 8.64441709-3.42318917j,
       8.73373729-3.32553843j, 8.81488737-3.23212537j,
       8.88878811-3.14282151j, 8.95624115-3.05747543j,
       9.01794571-2.97592208j, 9.07451299-2.89798963j,
       9.12647837-2.82350425j, 9.17431193-2.75229358j,
       9.21842729-2.68418912j, 9.25918927-2.61902782j,
       9.2969204 -2.55665311j, 9.33190639-2.49691549j,
       9.36440101-2.43967289j, 9.39463005-2.38479071j,
       9.42279492-2.33214174j, 9.44907561-2.28160606j,
       9.47363333-2.23307071j, 9.49661275-2.18642945j,
       9.51814396-2.14158239j, 9.53834414-2.09843571j,
       9.55731907-2.05690128j, 9.57516439-2.01689633j,
       9.59196673-1.97834314j, 9.60780469-1.9411687j ,
       9.62274972-1.90530444j, 9.63686685-1.87068592j,
       9.65021538-1.83725254j, 9.66284946-1.80494735j,
       9.6748186 -1.77371674j, 9.68616815-1.74351027j,
       9.69693971-1.71428041j, 9.70717148-1.68598241j,
       9.71689856-1.65857407j, 9.72615332-1.63201556j,
       9.73496556-1.60626932j, 9.74336281-1.58129987j,
       9.75137049-1.55707368j, 9.75901215-1.53355905j,
       9.76630957-1.51072601j, 9.77328297-1.48854618j,
       9.7799511 -1.46699267j, 9.7863314 -1.44604001j,
       9.79244008-1.42566407j, 9.79829224-1.40584193j,
       9.80390195-1.38655185j, 9.80928233-1.36777317j,
       9.81444564-1.34948628j, 9.81940332-1.3316725j ,
       9.82416609-1.31431411j, 9.82874397-1.2973942j ,
       9.83314635-1.2808967j , 9.83738205-1.26480626j,
       9.84145933-1.2491083j , 9.84538595-1.23378887j,
       9.84916921-1.21883469j, 9.85281596-1.20423306j,
       9.85633266-1.18997187j, 9.8597254 -1.17603954j,
       9.86299991-1.16242499j, 9.86616159-1.14911764j,
       9.86921555-1.13610737j, 9.87216659-1.12338447j,
       9.87501929-1.11093967j, 9.87777793-1.09876406j,
       9.8804466 -1.08684913j, 9.88302914-1.07518669j,
       9.88552922-1.0637689j , 9.88795028-1.05258826j,
       9.89029562-1.04163752j, 9.89256835-1.03090975j,
       9.89477142-1.0203983j , 9.89690765-1.01009676j,
       9.8989797 -0.99999897j, 9.9009901 -0.99009901j]), 'F_Hz': array([  0.        ,   1.01010101,   2.02020202,   3.03030303,
         4.04040404,   5.05050505,   6.06060606,   7.07070707,
         8.08080808,   9.09090909,  10.1010101 ,  11.11111111,
        12.12121212,  13.13131313,  14.14141414,  15.15151515,
        16.16161616,  17.17171717,  18.18181818,  19.19191919,
        20.2020202 ,  21.21212121,  22.22222222,  23.23232323,
        24.24242424,  25.25252525,  26.26262626,  27.27272727,
        28.28282828,  29.29292929,  30.3030303 ,  31.31313131,
        32.32323232,  33.33333333,  34.34343434,  35.35353535,
        36.36363636,  37.37373737,  38.38383838,  39.39393939,
        40.4040404 ,  41.41414141,  42.42424242,  43.43434343,
        44.44444444,  45.45454545,  46.46464646,  47.47474747,
        48.48484848,  49.49494949,  50.50505051,  51.51515152,
        52.52525253,  53.53535354,  54.54545455,  55.55555556,
        56.56565657,  57.57575758,  58.58585859,  59.5959596 ,
        60.60606061,  61.61616162,  62.62626263,  63.63636364,
        64.64646465,  65.65656566,  66.66666667,  67.67676768,
        68.68686869,  69.6969697 ,  70.70707071,  71.71717172,
        72.72727273,  73.73737374,  74.74747475,  75.75757576,
        76.76767677,  77.77777778,  78.78787879,  79.7979798 ,
        80.80808081,  81.81818182,  82.82828283,  83.83838384,
        84.84848485,  85.85858586,  86.86868687,  87.87878788,
        88.88888889,  89.8989899 ,  90.90909091,  91.91919192,
        92.92929293,  93.93939394,  94.94949495,  95.95959596,
        96.96969697,  97.97979798,  98.98989899, 100.        ]), 'emphasis': None, 'SNR': array([0.        , 0.33650965, 0.67187902, 1.00498706, 1.3347504 ,
       1.66014039, 1.98019802, 2.29404646, 2.60090064, 2.90007395,
       3.19098201, 3.47314356, 3.74617894, 4.00980636, 4.26383634,
       4.50816492, 4.74276579, 4.96768198, 5.18301716, 5.38892717,
       5.58561168, 5.77330632, 5.95227551, 6.12280572, 6.28519963,
       6.43977086, 6.58683945, 6.72672794, 6.85975812, 6.9862483 ,
       7.10651109, 7.22085165, 7.32956629, 7.43294146, 7.53125301,
       7.62476567, 7.71373279, 7.79839618, 7.87898619, 7.95572182,
       8.02881089, 8.09845044, 8.16482695, 8.22811683, 8.28848674,
       8.34609407, 8.40108732, 8.45360659, 8.50378395, 8.55174389,
       8.59760373, 8.64147401, 8.68345886, 8.72365641, 8.76215909,
       8.79905398, 8.83442314, 8.86834393, 8.90088922, 8.93212775,
       8.96212432, 8.99094005, 9.01863261, 9.04525643, 9.07086288,
       9.09550048, 9.11921505, 9.14204991, 9.16404598, 9.18524199,
       9.20567453, 9.22537827, 9.24438601, 9.26272881, 9.28043609,
       9.29753574, 9.31405422, 9.33001658, 9.34544664, 9.36036697,
       9.37479902, 9.38876316, 9.40227875, 9.41536418, 9.42803697,
       9.44031375, 9.45221038, 9.46374194, 9.47492279, 9.48576663,
       9.49628649, 9.50649483, 9.5164035 , 9.52602382, 9.53536661,
       9.54444218, 9.55326037, 9.56183062, 9.57016191, 9.57826285]), 'COH': None}
TEE_LOGFILE None
A [-2.+0.j]
B [-2.]
2A   0.25  Baseline fit residuals: 1.76e+01, at order 1
BASELINE:  1
------------:investigations:
2I   0.26    max(z, p)       ChiSq.
                   order    avg. res.    med. res.    max. res.
             -----------  -----------  -----------  -----------
                       1       17.583      31.7101      73.6236
CHOOSING: None
-L, --LIGO_foton=Sf output:
%%%
ZPK([],[
  -284.98736477754227;
], 34180.27202618257, "f")
%%%
%%% add or adjust the following poles and zeros to bootstrap the fit and refine. Disable this message with --no-refine
--zeros=: --poles=-284.98736:
%%%
Captured stderr call
3W   0.00  1 SNR=0 element(s) dropped (of 100)
3W   0.16  Fitter_checkpoint improvement succeed, None
3W   0.25  Fitter_checkpoint improvement succeed, None
3W   0.00  1 SNR=0 element(s) dropped (of 100)
3W   0.17  Fitter_checkpoint improvement succeed, None
3W   0.26  Fitter_checkpoint improvement succeed, None
3W   0.00  1 SNR=0 element(s) dropped (of 100)
3W   0.16  Fitter_checkpoint improvement succeed, None
3W   0.25  Fitter_checkpoint improvement succeed, None
3W   0.00  1 SNR=0 element(s) dropped (of 100)
3W   0.16  Fitter_checkpoint improvement succeed, None
3W   0.25  Fitter_checkpoint improvement succeed, None
3W   0.00  1 SNR=0 element(s) dropped (of 100)
3W   0.16  Fitter_checkpoint improvement succeed, None
3W   0.25  Fitter_checkpoint improvement succeed, None
test_mat_full()[source][github]

This is a pytest needing documentation

code
 1@skipdeco
 2def test_mat_full():
 3    fname = matlab_test_data.matfiles["iir_test_struct.mat"]
 4    fname_out = gen_outname("out.mat")
 5    v2_main(
 6        [
 7            fname,
 8            fname_out,
 9            "--choose",
10            "baseline",
11            "--relative_degree_min",
12            "-2",
13        ]
14    )
pytest information

This code is wrapped in a pytest function using conventions detailed in Pytest Conventions. The full name of this test, as known by the documentation, is:

wield.control.fitting.SISO.test.v2.io.test_io.test_mat_full

The full name is useful when building documentation, to link a reference to this page using :func:`name`, or directly include it with an autofunction directive. The collapse nodes below show every instance of the test run. There may only be one, but if the test was run multiple times through pytest parametrizations, the list can be longer.

test_mat_full
output
Arguments: 
  COH: None
  F_Hz: [(100,) float64 array]
  SNR: [(100,) float64 array]
  emphasis: None
  mode: full
  relative_degree_min: -2
  xfer: [(100,) complex128 array]
{'mode': 'full', 'relative_degree_min': '-2', 'xfer': array([0.        -0.j        , 0.1009999 -0.999899j  ,
       0.39211842-1.94098618j, 0.84104289-2.77544155j,
       1.40338567-3.47337953j, 2.03235509-4.02406308j,
       2.68636669-4.43250504j, 3.33310659-4.71396504j,
       3.95037343-4.88858712j, 4.52488688-4.97737557j,
       5.05024999-4.99974749j, 5.52486188-4.97237569j,
       5.95016735-4.90888806j, 6.32935096-4.82004419j,
       6.66643992-4.71412537j, 6.96572862-4.59738089j,
       7.23143414-4.47444987j, 7.4675073 -4.34872484j,
       7.67754319-4.22264875j, 7.8647524 -4.09794994j,
       8.03196723-3.97582378j, 8.18166639-3.8570713j ,
       8.31600832-3.74220374j, 8.43686704-3.63152103j,
       8.54586727-3.52517025j, 8.64441709-3.42318917j,
       8.73373729-3.32553843j, 8.81488737-3.23212537j,
       8.88878811-3.14282151j, 8.95624115-3.05747543j,
       9.01794571-2.97592208j, 9.07451299-2.89798963j,
       9.12647837-2.82350425j, 9.17431193-2.75229358j,
       9.21842729-2.68418912j, 9.25918927-2.61902782j,
       9.2969204 -2.55665311j, 9.33190639-2.49691549j,
       9.36440101-2.43967289j, 9.39463005-2.38479071j,
       9.42279492-2.33214174j, 9.44907561-2.28160606j,
       9.47363333-2.23307071j, 9.49661275-2.18642945j,
       9.51814396-2.14158239j, 9.53834414-2.09843571j,
       9.55731907-2.05690128j, 9.57516439-2.01689633j,
       9.59196673-1.97834314j, 9.60780469-1.9411687j ,
       9.62274972-1.90530444j, 9.63686685-1.87068592j,
       9.65021538-1.83725254j, 9.66284946-1.80494735j,
       9.6748186 -1.77371674j, 9.68616815-1.74351027j,
       9.69693971-1.71428041j, 9.70717148-1.68598241j,
       9.71689856-1.65857407j, 9.72615332-1.63201556j,
       9.73496556-1.60626932j, 9.74336281-1.58129987j,
       9.75137049-1.55707368j, 9.75901215-1.53355905j,
       9.76630957-1.51072601j, 9.77328297-1.48854618j,
       9.7799511 -1.46699267j, 9.7863314 -1.44604001j,
       9.79244008-1.42566407j, 9.79829224-1.40584193j,
       9.80390195-1.38655185j, 9.80928233-1.36777317j,
       9.81444564-1.34948628j, 9.81940332-1.3316725j ,
       9.82416609-1.31431411j, 9.82874397-1.2973942j ,
       9.83314635-1.2808967j , 9.83738205-1.26480626j,
       9.84145933-1.2491083j , 9.84538595-1.23378887j,
       9.84916921-1.21883469j, 9.85281596-1.20423306j,
       9.85633266-1.18997187j, 9.8597254 -1.17603954j,
       9.86299991-1.16242499j, 9.86616159-1.14911764j,
       9.86921555-1.13610737j, 9.87216659-1.12338447j,
       9.87501929-1.11093967j, 9.87777793-1.09876406j,
       9.8804466 -1.08684913j, 9.88302914-1.07518669j,
       9.88552922-1.0637689j , 9.88795028-1.05258826j,
       9.89029562-1.04163752j, 9.89256835-1.03090975j,
       9.89477142-1.0203983j , 9.89690765-1.01009676j,
       9.8989797 -0.99999897j, 9.9009901 -0.99009901j]), 'F_Hz': array([  0.        ,   1.01010101,   2.02020202,   3.03030303,
         4.04040404,   5.05050505,   6.06060606,   7.07070707,
         8.08080808,   9.09090909,  10.1010101 ,  11.11111111,
        12.12121212,  13.13131313,  14.14141414,  15.15151515,
        16.16161616,  17.17171717,  18.18181818,  19.19191919,
        20.2020202 ,  21.21212121,  22.22222222,  23.23232323,
        24.24242424,  25.25252525,  26.26262626,  27.27272727,
        28.28282828,  29.29292929,  30.3030303 ,  31.31313131,
        32.32323232,  33.33333333,  34.34343434,  35.35353535,
        36.36363636,  37.37373737,  38.38383838,  39.39393939,
        40.4040404 ,  41.41414141,  42.42424242,  43.43434343,
        44.44444444,  45.45454545,  46.46464646,  47.47474747,
        48.48484848,  49.49494949,  50.50505051,  51.51515152,
        52.52525253,  53.53535354,  54.54545455,  55.55555556,
        56.56565657,  57.57575758,  58.58585859,  59.5959596 ,
        60.60606061,  61.61616162,  62.62626263,  63.63636364,
        64.64646465,  65.65656566,  66.66666667,  67.67676768,
        68.68686869,  69.6969697 ,  70.70707071,  71.71717172,
        72.72727273,  73.73737374,  74.74747475,  75.75757576,
        76.76767677,  77.77777778,  78.78787879,  79.7979798 ,
        80.80808081,  81.81818182,  82.82828283,  83.83838384,
        84.84848485,  85.85858586,  86.86868687,  87.87878788,
        88.88888889,  89.8989899 ,  90.90909091,  91.91919192,
        92.92929293,  93.93939394,  94.94949495,  95.95959596,
        96.96969697,  97.97979798,  98.98989899, 100.        ]), 'emphasis': None, 'SNR': array([0.        , 0.33650965, 0.67187902, 1.00498706, 1.3347504 ,
       1.66014039, 1.98019802, 2.29404646, 2.60090064, 2.90007395,
       3.19098201, 3.47314356, 3.74617894, 4.00980636, 4.26383634,
       4.50816492, 4.74276579, 4.96768198, 5.18301716, 5.38892717,
       5.58561168, 5.77330632, 5.95227551, 6.12280572, 6.28519963,
       6.43977086, 6.58683945, 6.72672794, 6.85975812, 6.9862483 ,
       7.10651109, 7.22085165, 7.32956629, 7.43294146, 7.53125301,
       7.62476567, 7.71373279, 7.79839618, 7.87898619, 7.95572182,
       8.02881089, 8.09845044, 8.16482695, 8.22811683, 8.28848674,
       8.34609407, 8.40108732, 8.45360659, 8.50378395, 8.55174389,
       8.59760373, 8.64147401, 8.68345886, 8.72365641, 8.76215909,
       8.79905398, 8.83442314, 8.86834393, 8.90088922, 8.93212775,
       8.96212432, 8.99094005, 9.01863261, 9.04525643, 9.07086288,
       9.09550048, 9.11921505, 9.14204991, 9.16404598, 9.18524199,
       9.20567453, 9.22537827, 9.24438601, 9.26272881, 9.28043609,
       9.29753574, 9.31405422, 9.33001658, 9.34544664, 9.36036697,
       9.37479902, 9.38876316, 9.40227875, 9.41536418, 9.42803697,
       9.44031375, 9.45221038, 9.46374194, 9.47492279, 9.48576663,
       9.49628649, 9.50649483, 9.5164035 , 9.52602382, 9.53536661,
       9.54444218, 9.55326037, 9.56183062, 9.57016191, 9.57826285]), 'COH': None}
TEE_LOGFILE None
A []
B []
------------:rational fitting:
4P   0.01    chebychev rational fit
RELDEG:  0 0 0
3P   0.24    Initial Order: (Z=20, P=20, Z-P=0)
3P   0.26    Fastdrop Order: (Z=8, P=8, Z-P=0)
4P   0.27    mag fitting and phase patching
--------------:rational fitting:sample variance (from magnitude):
3A   0.65      Weight Scaling determined:  2.8358055566650617
3A   0.65      Weight Scaling Used  1.6839850226961823
------------:Q-ranked order reduction:
4P   1.13    order reduced annealing
5P   1.31  zero flipping, maxzp 2, residuals=1.01e+00, 1.01e+00, reldeg=0
2A   1.91  Baseline fit residuals: 1.73e+00, at order 2
BASELINE:  2
------------:investigations:
2I   1.92    max(z, p)       ChiSq.
                   order    avg. res.    med. res.    max. res.
             -----------  -----------  -----------  -----------
                       0      1.59121     2.57299       6.64818
                       2      1.01243     0.862749      6.86964
CHOOSING: None
-L, --LIGO_foton=Sf output:
%%%
ZPK([
  -312.83792336706506 + 259.80762222619785*i; -312.83792336706506 - 259.80762222619785*i;
],[
  -280.18750117323816 + 227.1571984989046*i; -280.18750117323816 - 227.1571984989046*i;
], 8.647032220560362, "f")
%%%
%%% add or adjust the following poles and zeros to bootstrap the fit and refine. Disable this message with --no-refine
--zeros=:-312.83792+259.80762j --poles=:-280.18750+227.15720j
%%%
Captured stderr call
3W   0.00  1 SNR=0 element(s) dropped (of 100)
3W   0.26    Fitter_checkpoint improvement succeed, None
3W   1.13    Fitter_checkpoint improvement succeed, None
3W   1.15    Fitter_checkpoint improvement succeed, None
3W   1.31  Fitter_checkpoint improvement succeed, None
test_mat_help()[source][github]

This is a pytest needing documentation

code
1@skipdeco
2def test_mat_help():
3    fname = matlab_test_data.matfiles["iir_test_struct.mat"]
4    with pytest.raises(SystemExit):
5        v2_main(["-h"])
pytest information

This code is wrapped in a pytest function using conventions detailed in Pytest Conventions. The full name of this test, as known by the documentation, is:

wield.control.fitting.SISO.test.v2.io.test_io.test_mat_help

The full name is useful when building documentation, to link a reference to this page using :func:`name`, or directly include it with an autofunction directive. The collapse nodes below show every instance of the test run. There may only be one, but if the test was run multiple times through pytest parametrizations, the list can be longer.

test_mat_help
output
usage: __main__.py [-h] [-c CONFIG] [-L {-,none,Sf}] [-j CHOOSE] [--no-refine]
                   [-m {full,full2x,fullAAA,onlyAAA,onlyAAAreduce,AAA,fit,reduce,rational,rational2x,dumpargs,dumpargs_full,printdata,printconfig,printsettings}]
                   [--refine_file REFINE_FILE] [-N F_NYQUIST_HZ]
                   [-I INFORMATION] [--overwrite]
                   [--config_group CONFIG_GROUP] [-D DATA_GROUP]
                   [--tee_logfile TEE_LOGFILE] [-l LOG_LEVEL]
                   [--log_level_alert LOG_LEVEL_ALERT]
                   [--log_level_debug LOG_LEVEL_DEBUG]
                   [--log_level_info LOG_LEVEL_INFO]
                   [--log_level_rationale LOG_LEVEL_RATIONALE]
                   [--log_level_warn LOG_LEVEL_WARN]
                   [--relative_degree RELATIVE_DEGREE]
                   [--relative_degree_max RELATIVE_DEGREE_MAX]
                   [--relative_degree_min RELATIVE_DEGREE_MIN]
                   [--total_degree_min TOTAL_DEGREE_MIN]
                   [--order_first ORDER_FIRST] [--order_initial ORDER_INITIAL]
                   [--order_max ORDER_MAX] [--order_min ORDER_MIN]
                   [-r PLOT_FIT] [-R PLOT_ORDER] [--delay_s_max DELAY_S_MAX]
                   [--delay_s DELAY_S] [--delay_s_min DELAY_S_MIN]
                   [--SNR_estimate_width SNR_ESTIMATE_WIDTH]
                   [--SNR_max SNR_MAX] [--SNR_min SNR_MIN]
                   [--SNR_regularize_ratio SNR_REGULARIZE_RATIO]
                   [--SNR_regularize_scale SNR_REGULARIZE_SCALE] [--trust_SNR]
                   [--F_boost_Hz F_BOOST_HZ] [--F_max_Hz F_MAX_HZ]
                   [--F_min_Hz F_MIN_HZ] [--downsample DOWNSAMPLE]
                   [--downsample_type DOWNSAMPLE_TYPE]
                   [--resavg_RthreshOrdC RESAVG_RTHRESHORDC]
                   [--resavg_RthreshOrdDn RESAVG_RTHRESHORDDN]
                   [--resavg_RthreshOrdUp RESAVG_RTHRESHORDUP]
                   [--multithreading MULTITHREADING] [--inverse]
                   [--never_unstable_poles] [--never_unstable_zeros] [-k GAIN]
                   [-p [POLES ...]] [-P [POLES_OVERLAY ...]] [-z [ZEROS ...]]
                   [-Z [ZEROS_OVERLAY ...]] [--suggest]
                   [--alternate_residuals ALTERNATE_RESIDUALS]
                   [--h_infinity H_INFINITY]
                   [--h_infinity_deweight H_INFINITY_DEWEIGHT]
                   [--residuals_type {log,dualA,dualB,poles,zeros}]
                   [--residuals_type_alt {log,dualA,dualB,poles,zeros}]
                   [--baseline_only] [--greedy_order GREEDY_ORDER]
                   [--prune_Qrank PRUNE_QRANK]
                   [--distance_limit_scale DISTANCE_LIMIT_SCALE]
                   [--root_F_Hz_max ROOT_F_HZ_MAX]
                   [--root_bandwidth_Hz_max ROOT_BANDWIDTH_HZ_MAX]
                   data.file output.file

options:
  -h, --help            show this help message and exit

  data.file             Specify data file. This file may be .h5, .hdf, .mat, .yaml.
                        these filetypes have internal directory structure and the data are by
                        default assumed to be in the parameters:
                         'F_Hz', 'xfer', 'SNR', 'emphasis', inside of the 'data' group.
                        Arguments such is -Xc and -F and -D in the "data" options group can override
                        these keys. It is possible also to use csv files, but the syntax is complicated.
  output.file           Specify the output file to store fit results including zpk of the
                        chosen and alternative fits, the configurations, and versioning information.
                        Possible output extensions are .h5, .hdf, .mat, .pkl, .json, .yaml. Binary
                        formats .mat, .h5, .pkl will include the original data, for full reconstruction
                        of the fit. wield.control.fitting.SISO may be called on the output file to rerun the fit.
  -c CONFIG, --config CONFIG
                        Specify configuration file. This file may be .json, .yaml, .ini, .h5, .mat.
                        These will be interpreted as a dictionary or structure full of keyword
                        arguments. This may be specified multiple times to overlay settings.
                        Additional command line setting always override these configuration files.
  -L {-,none,Sf}, --LIGO_foton {-,none,Sf}
                        What type of foton output would you prefer?
                          - '-' or 'None' to suppress foton output
                          - Sf for frequency domain (default)
                          - n for normalized (not yet supported)
                          - Sw for radial (not yet supported)
  -j CHOOSE, --choose CHOOSE
                        How to decide the optimal order. Special parameters are:
                         - "prompt", "shell", "interactive" (the default) To enter a command prompt that plots and requests
                           a choice
                         - "auto10" the default choice to use the shell if the baseline order is
                           above 10 unless there is no choice. (10 may be changed)
                         - "baseline" to use the baseline fit before the ChiSq starts rising.
                         - "baseline10" to use the baseline "best fit" unless it is over order 10
                                        (10 can be configured to other integers)
                         - integer. To force a choice of order. It will always use the best fit
                           under this order.
  --no-refine           disable the output hints of --zeros and --poles to run a second time and refine.
  -m {full,full2x,fullAAA,onlyAAA,onlyAAAreduce,AAA,fit,reduce,rational,rational2x,dumpargs,dumpargs_full,printdata,printconfig,printsettings}, --mode {full,full2x,fullAAA,onlyAAA,onlyAAAreduce,AAA,fit,reduce,rational,rational2x,dumpargs,dumpargs_full,printdata,printconfig,printsettings}
                        Fitting mode to use, to change the automation level. Must be one of
                         - "full": to use rational fitting to get initial parameters, then alternate
                                   optimization and order reduction
                         - "full2x": runs the full optimization twice to refine it. Can often use a lower initial order.
                         - "rational": to use rational fitting to get initial parameters and then
                                       stop after the simplest order reduction. Useful to use with
                                       other fitters. Does not perform delay fitting.
                         - "fit": To take an initial ZPK guess, and only fit/optimize it. Good
                                  for refining previous fits.
                         - "reduce": To take an initial ZPK guess, and then alternate fitting and
                                     order reduction.
                         - "dumpargs": Dump arguments to determine current settings
                         - "dumpargs_full": Dump arguments and all generated settings to see the full run setup
                         - "printdata": Dump the layout of the data file specified
                         - "printconfig": dump the layout of the config files specified
                         - "printsettings": dump the fully loaded settings specified
  --refine_file REFINE_FILE
                        indicate a file to write the hints of --zeros and --poles into.
  -N F_NYQUIST_HZ, --F_nyquist_Hz F_NYQUIST_HZ
                        This selects the Nyquist frequency for Z-domain fitting. If None or not
                        specified, the fits are done in the "Sf" domain - the s domain scaled for
                        units of frequency.
  -I INFORMATION, --information INFORMATION
                        A string to detail what this fit is of. For documentation purposes.
  --overwrite           Allow the output file to overwrite the previous output file (be careful).

groups:
  The data and config file formats (except csv) all load internally to a
  dictionary or structure representation. These arguments specify the
  keys or groups storing the relevant data or configuration subkeys. These
  also control the output groups when saving files.

  --config_group CONFIG_GROUP
                        Group(s) within the loaded config or data file to search for
                        configuration elements. May be a comma separated list to aggregate groups.
                        defaults to "config,conf,IIRconfig,IIRconf". The first element will be
                        the group where configurations are stored to the output file.
  -D DATA_GROUP, --data_group DATA_GROUP
                        Group(s) within the loaded data file to search for data elements
                        (see "data" section). May be a comma separated list to aggregate groups.
                        defaults to "data,IIRdata,xfer". The first specified element will be
                        the group that data is stored to the output file.

data:
  Specify keys to search within the data group for specific arrays.
  -F,   --frequency,
  -Xc,  --dataXcomplex
  -Xr,  --dataXreal,      -Xi,  --dataXimaginary
  -Xa,  --dataXamplitude, -Xm,  --dataXmagnitude
  -XdB, --dataXdB,        -Xdb, --dataXdb
  -Xd,  --dataXphaseDeg,  -Xp,  --dataXphaseRad
  -S,   --dataSNR,        -W,   --dataW
  -E,   --dataEmphasis

logging:
  --tee_logfile TEE_LOGFILE
                        Filename to tee log output into, along with stdout/stderr. Will be overwritten.
  -l LOG_LEVEL, --log_level LOG_LEVEL
                        Log level default for all logging types
  --log_level_alert LOG_LEVEL_ALERT
                        Data on useful statistical tests, particularly those which cause input
                        data/SNR/emphasis to be reinterpreted. Typically logs at level 2-4.
  --log_level_debug LOG_LEVEL_DEBUG
                        Debugging reports used for development.
  --log_level_info LOG_LEVEL_INFO
                        Logging on miscellaneous details.
  --log_level_rationale LOG_LEVEL_RATIONALE
                        Detailed explanations of tests and algorithms. Extremely verbose and
                        intended for first users and digest reports.
  --log_level_warn LOG_LEVEL_WARN
                        Warnings about failed tests, or data operating in a regime unexpected to
                        work or that validation should be made.

order:
  --relative_degree RELATIVE_DEGREE
                        Sets the initial relative degree (number zeros minus polse).
                        Defaults to None, which will be the midpoint of the min and max if they
                        are specified, otherwise this will default to 0, which typically will
                        still fit filters to the correct degree. If constrained to be different
                        than the data, the filter will enter the asymptotic regime set by the
                        relative degree within 2x of the 'root_bandwidth_Hz_max' setting.
  --relative_degree_max RELATIVE_DEGREE_MAX
                        Maximum value for the filter relative degree (number zeros minus polse).
                        Defaults to the relative degree (which may be None). If this value is
                        None, the degree is unconstrained and the fit will land at some degree that fits well.
  --relative_degree_min RELATIVE_DEGREE_MIN
                        Minimum value for the filter relative degree (number zeros minus polse).
                        Defaults to the relative degree (which may be None). If this value is
                        None, the degree is unconstrained and the fit will land at some degree that fits well.
  --total_degree_min TOTAL_DEGREE_MIN
                        Minimum degree to search through during the successive order reduction phase.
                        Defaults to 2. If None, then successive reduction will not be performed.
  --order_first ORDER_FIRST
                        Order to use in rational fitting for the first round of full2x. Can be lower to be fast.
  --order_initial ORDER_INITIAL
                        Order to use in rational fitting. If not specified, the order is
                        increased until the residuals plateau.
  --order_max ORDER_MAX
                        Maximium order that the rational fitter order estimation may use.
                        Increasing this value from the default may impact numerical stability.
  --order_min ORDER_MIN
                        Minimum order to use during order estimation. Smaller values will speed
                        up fits, but may fail to fix complex data.

plots:
  -r PLOT_FIT, --plot_fit PLOT_FIT
                        filename to plot (review) the chosen fit to. May be any extension supported by matplotlib.
                        [.pdf, .svg, .png, .jpg, ...]
  -R PLOT_ORDER, --plot_order PLOT_ORDER
                        filename to plot (Review) potential orders and residuals to. May be any extension supported by matplotlib.
                        [.pdf, .svg, .png, .jpg, ...]

delay:
  --delay_s_max DELAY_S_MAX
                        The maximum delay in seconds. Defaults to None, in which case delay is
                        never fit as a free parameter.
  --delay_s DELAY_S     Use this delay (in seconds) for the initial fitting up until the
                        "baseline" fit determination is complete. By default this is the same
                        as delay_s_min, unless delay_s_min is negative, in which case it defaults
                        to the smaller of 0 seconds or delay_s_max.
  --delay_s_min DELAY_S_MIN
                        The minimum delay in seconds. Defaults to 0. Also sets the typical
                        default value of the delay used for the initial part of the fits.
                        Must always be specified (cannot be None).

SNR Adjustments:
  --SNR_estimate_width SNR_ESTIMATE_WIDTH
                        The window width of nearby points to use for averaging and median filtering
                        when estimating the SNR via windowed sample variance. Default is 10.
                        None or 0 indicates to not try.
  --SNR_max SNR_MAX     Maximum SNR. Hard cutoff for SNR above this level.
  --SNR_min SNR_MIN     Minimum SNR. Hard cutoff for SNR below this level.
  --SNR_regularize_ratio SNR_REGULARIZE_RATIO
                        Ratio of effective data points, determined by the dynamic range of the
                        SNR weighting, to the actual number of data points. This parameter
                        adjusts how the SNR is adjusted to ensure sufficient data points for a
                        good fit.
  --SNR_regularize_scale SNR_REGULARIZE_SCALE
                        Similar to SNR_regularize_ratio, but instead of a direct ratio, the ratio
                        is determined as 'SNR_regularize_scale' / max(SNR). For very high SNR
                        fits, the SNR should be whitened significantly using the ratio adjustment,
                        since the error is dominated by systematics rather than statistical noise.
                        The default is 10, causing a %90 coverage ratio when the highest SNR is
                        100 (1% statistical error).
  --trust_SNR           Overall parameter determining if SNR/W statistical weighting input should
                        be trusted. If False (the default) then additional statistical tests are
                        run to adjust the SNR for better fits. If the user can fully trust their
                        SNR estimators and fits to be unbiased, then the user likely does not
                        need this tool.

SNR adjustments:
  --F_boost_Hz F_BOOST_HZ
                        start-end frequency pairs (e.g. 1.2-1.6) to double the SNR end to add emphasis during fitting. Multiple can be specified, comma separated.
  --F_max_Hz F_MAX_HZ   Maximum frequency to use, cuts off data above this frequency.
  --F_min_Hz F_MIN_HZ   Minimum frequency to use, cuts off data below this frequency.
  --downsample DOWNSAMPLE
                        Downsample the data to this number of points. Uses SNR weighing to average during downsampling.
  --downsample_type DOWNSAMPLE_TYPE
                        Use this type of spacing for the downsampled points: linear, log, or loglinear.

advanced:
  --resavg_RthreshOrdC RESAVG_RTHRESHORDC
                        The threshold relative change in the average residuals to accept a fit
                        of equal order. Only used for the "baseline" fit determination before
                        delay is activated and not used during the total order reduction.
  --resavg_RthreshOrdDn RESAVG_RTHRESHORDDN
                        The threshold relative change in the average residuals to accept a fit
                        of lower order. Only used for the "baseline" fit determination before
                        delay is activated and not used during the total order reduction.
  --resavg_RthreshOrdUp RESAVG_RTHRESHORDUP
                        The threshold relative change in the average residuals to accept a fit
                        of higher order. Only used for the "baseline" fit determination before
                        delay is activated and not used during the total order reduction.

computing:
  --multithreading MULTITHREADING
                        Perform the order reduction trials using a thread pool of this size.
                        If None (the default) or 1, do not activate the pool. Note that many python/numpy
                        implementations use a BLAS library that already multithread linear algebra operations.

fit:
  --inverse             take the reciprocal/inverse of the data (1/xfer) and fit that. Good for fitting compensation filters.
  --never_unstable_poles
                        During the phase patching tests, unstable roots will be added if detected
                        with statistical significance. This prevents the addition of unstable poles.
  --never_unstable_zeros
                        During the phase patching tests, unstable roots will be added if detected
                        with statistical significance. This prevents the addition of unstable zeros.

fitting:
  -k GAIN, --gain GAIN  Initial gain for the fit
  -p [POLES ...], --poles [POLES ...]
                        Initial poles used in the fit.
  -P [POLES_OVERLAY ...], --poles_overlay [POLES_OVERLAY ...]
                        poles guaranteed to be part of the fit.
  -z [ZEROS ...], --zeros [ZEROS ...]
                        Initial zeros used in the fit.
  -Z [ZEROS_OVERLAY ...], --zeros_overlay [ZEROS_OVERLAY ...]
                        zeros guaranteed to be part of the fit.

operating mode:
  --suggest             How to use the rational fitter when provided an initial ZPK argument.
                        the default of False causes the rational to overlay the ZPK suggestion,
                        forcing the roots in the suggestion to be used during the optimization
                        stage. If set to True, the ZPK will suggest initial poles to use during
                        the fit, which can accellerate convergence or cause it to start at a
                        lower initial order, speeding up future fitting operations.

residuals:
  --alternate_residuals ALTERNATE_RESIDUALS
                        Flag to switch from using log/phase residuals to using dual
                        ratio residuals as the principle fit residuals. Log/phase is typically
                        better behaved.
  --h_infinity H_INFINITY
                        Use an partial h_infinity norm during the nonlinear fitting
                        (does not apply to the linear fits). This argument takes a [0, 1] float
                        for the fraction of the residuals to include. If 1, this is true h_infinity,
                        if < 1, then the residuals are ranked, and the smallest fraction of them
                        have h_infinity_deweight applied to them, to lower their affect of the fit.
                        This argument may also be an array, in which case it reweights the
                        ranked residuals (ranking array should be largest to smallest). It may
                        alternatively take a function, which is given the length, and returns
                        the reweighting array.
  --h_infinity_deweight H_INFINITY_DEWEIGHT
                        Factor to de-weight the residuals below the h_infinity threshold. If 0,
                        they are clipped. Defaults to 0.1, to reduce the significance 10x.
                        Factors >1 imply an h_0 type fit, where outliers are more strongly ignored.
  --residuals_type {log,dualA,dualB,poles,zeros}
                        Standard residuals type to use for the optimizations. Must be one of the
                        definitions below, where R=fit/data, the ratio of fit to data and W is
                        the SNR:
                            log:   W*(ln(|R|) + 1j*R.imag/|R|)
                            dualA: W*(R + 1/R - 2)/2
                            dualB: W*(R - 1/R)/2
                            poles: W*(1/R - 1)
                            zeros: W*(R - 1)
  --residuals_type_alt {log,dualA,dualB,poles,zeros}
                        Standard alternate residuals type to use during optimization annealing.
                        See residuals_type for options.

speed:
  --baseline_only       Only fit down to baseline, do not do successive order reduction.
  --greedy_order GREEDY_ORDER
                        Does only partial optimization during the reduce step. Greatly speeds
                        up order reduction, but may not be as effective. Defaults to 30, where
                        it uses greedy optimization until reaching order 30, then uses combinatoric
                        optimization.

tuning:
  --prune_Qrank PRUNE_QRANK
                        Pre-prune the filter. Useful for order reduction of StateSpace models.
                        The Q-ranking is like a weighted fminreal order reduction. It ranks
                        pole-zero by their distance divided by bandwidth. Values smaller than
                        .1-.5 remove only pairs that have small adjustments to a transfer function
                        and can generally be removed without modifying it.

tunings:
  --distance_limit_scale DISTANCE_LIMIT_SCALE
                        Scaling for how to limit root bandwidth for roots in-between data points.
                        Increase to force roots to lower Q, decrease to allow higher Qs.
  --root_F_Hz_max ROOT_F_HZ_MAX
                        Maximum frequency of root complex part.
  --root_bandwidth_Hz_max ROOT_BANDWIDTH_HZ_MAX
                        Maximum bandwidth of any pole or zero in the fit. This affects the
                        asymptotic rolloff when relative_degree is constrained.
test_mat_printdata()[source][github]

This is a pytest needing documentation

code
1@skipdeco
2def test_mat_printdata():
3    fname = matlab_test_data.matfiles["iir_test_struct.mat"]
4    fname_out = path.join(localpath, "out.mat")
5    with pytest.raises(SystemExit):
6        v2_main(["-D", "data,D", "--mode", "printdata", fname, fname_out])
pytest information

This code is wrapped in a pytest function using conventions detailed in Pytest Conventions. The full name of this test, as known by the documentation, is:

wield.control.fitting.SISO.test.v2.io.test_io.test_mat_printdata

The full name is useful when building documentation, to link a reference to this page using :func:`name`, or directly include it with an autofunction directive. The collapse nodes below show every instance of the test run. There may only be one, but if the test was run multiple times through pytest parametrizations, the list can be longer.

test_mat_printdata
output
data file layout for mode=printdata
data:
  F_Hz: [(100,) float64 array]
  SNR: [(100,) float64 array]
  confuse: [[1, 2], [1, 2], {'A': 1}]
    0: [1, 2]
    1: [1, 2]
      0: 1
      1: 2
    2:
      A: 1
  none: None
  noneA: None
  noneC: None
  xfer: [(100,) complex128 array]