test_files¶
wield.control.fitting.SISO.test.file_io.test_files
This is a pytest module needing documentation
Functions
|
This is a pytest needing documentation |
This is a pytest needing documentation |
|
This is a pytest needing documentation |
|
This is a pytest needing documentation |
Details
- test_mat()[source][github]¶
This is a pytest needing documentation
code
1@pytest.mark.skipif(module_import_skip, reason="cannot import IIRrational_test_data") 2def test_mat(): 3 fname = matlab_test_data.matfiles["iir_test_vars.mat"] 4 fdict = matlab_io.load_matlab(fname) 5 fdict["F_Hz"] 6 assert fdict["xfer"].dtype == complex 7 fdict["SNR"] 8 assert fdict["noneA"] is None 9 assert fdict["noneC"] is None
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.file_io.test_files.test_matThe 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
output
status: passed duration: 0.012s
- test_mat_struct()[source][github]¶
This is a pytest needing documentation
code
1@pytest.mark.skipif(module_import_skip, reason="cannot import IIRrational_test_data") 2def test_mat_struct(): 3 fname = matlab_test_data.matfiles["iir_test_struct.mat"] 4 fdict = matlab_io.load_matlab(fname) 5 # pprint(fdict['data']['xfer']) 6 assert file_io.subkey_search(fdict, "data.xfer").dtype == complex 7 # pprint(fdict['data']['confuse']) 8 assert fdict["data"]["noneA"] is None 9 assert fdict["data"]["noneC"] is None
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.file_io.test_files.test_mat_structThe 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_struct
output
status: passed duration: 0.001s
- test_mat_struct_RI()[source][github]¶
This is a pytest needing documentation
code
1@pytest.mark.skipif(module_import_skip, reason="cannot import IIRrational_test_data") 2def test_mat_struct_RI(): 3 fname = matlab_test_data.matfiles["iir_test_struct_RI.mat"] 4 fdict = matlab_io.load_matlab(fname) 5 # pprint(fdict)
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.file_io.test_files.test_mat_struct_RIThe 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_struct_RI
output
status: passed duration: 0.001s
- test_mat_struct_RT()[source][github]¶
This is a pytest needing documentation
code
1@pytest.mark.skipif(module_import_skip, reason="cannot import IIRrational_test_data") 2def test_mat_struct_RT(): 3 fname = matlab_test_data.matfiles["iir_test_struct.mat"] 4 fdict = matlab_io.load_matlab(fname) 5 test_path = path.split(__file__)[0] 6 fpath = path.join(test_path, "iir_test_struct_RT.mat") 7 matlab_io.write_matlab(fpath, fdict) 8 fdict2 = matlab_io.load_matlab(fpath) 9 10 assert np.all(fdict["data"]["F_Hz"] == fdict2["data"]["F_Hz"]) 11 assert np.all(fdict["data"]["xfer"] == fdict2["data"]["xfer"]) 12 assert np.all(fdict["data"]["SNR"] == fdict2["data"]["SNR"]) 13 assert np.all(fdict["data"]["noneA"] == fdict2["data"]["noneA"]) 14 assert np.all(fdict["data"]["noneC"] == fdict2["data"]["noneC"]) 15 print(str(fdict["data"]["confuse"])) 16 print(str(fdict2["data"]["confuse"])) 17 assert str(fdict["data"]["confuse"]) == str(fdict2["data"]["confuse"])
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.file_io.test_files.test_mat_struct_RTThe 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_struct_RT
output
[array([1, 2], dtype=uint8) array([1, 2], dtype=object) {'A': 1}] [array([1, 2], dtype=uint8) array([1, 2], dtype=object) {'A': 1}]