etiennedub / pyk4a

Python 3 wrapper for Azure-Kinect-Sensor-SDK
MIT License
288 stars 81 forks source link

Version 1.2.0 #115

Closed lpasselin closed 3 years ago

lpasselin commented 3 years ago
codecov[bot] commented 3 years ago

Codecov Report

Merging #115 (0c15564) into master (8186ae9) will decrease coverage by 2.53%. The diff coverage is 74.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
- Coverage   89.96%   87.42%   -2.54%     
==========================================
  Files           9       10       +1     
  Lines         578      692     +114     
==========================================
+ Hits          520      605      +85     
- Misses         58       87      +29     
Impacted Files Coverage Δ
pyk4a/calibration.py 74.69% <18.75%> (-13.37%) :arrow_down:
pyk4a/capture.py 66.66% <36.84%> (-6.83%) :arrow_down:
pyk4a/pyk4a.py 89.35% <85.71%> (-0.13%) :arrow_down:
pyk4a/record.py 95.58% <95.58%> (ø)
pyk4a/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8186ae9...0c15564. Read the comment docs.

lpasselin commented 3 years ago

Will need to be tested with hardware before merging. make test

shagren commented 3 years ago

@lpasselin master with merged develop tested:

make test
pytest tests
================================================== test session starts ==================================================
platform linux -- Python 3.8.7, pytest-6.0.1, py-1.10.0, pluggy-0.13.1 -- /home/shagren/PycharmProjects/pyk4a/venv/bin/python3
cachedir: .pytest_cache
rootdir: /home/shagren/PycharmProjects/pyk4a, configfile: pyproject.toml
plugins: cov-2.10.1
collected 86 items                                                                                                      

tests/functional/test_calibration.py::TestCalibration::test_from_raw_incorrect_data PASSED                        [  1%]
tests/functional/test_calibration.py::TestCalibration::test_from_raw PASSED                                       [  2%]
tests/functional/test_calibration.py::TestCalibration::test_creating_transfromation_handle PASSED                 [  3%]
tests/functional/test_capture.py::TestCapture::test_device_capture_images PASSED                                  [  4%]
tests/functional/test_device.py::TestOpenClose::test_open_none_existing_device PASSED                             [  5%]
tests/functional/test_device.py::TestOpenClose::test_open_close_existing_device PASSED                            [  6%]
tests/functional/test_device.py::TestProperties::test_sync_jack_status PASSED                                     [  8%]
tests/functional/test_device.py::TestProperties::test_get_color_control PASSED                                    [  9%]
tests/functional/test_device.py::TestProperties::test_set_color_control PASSED                                    [ 10%]
tests/functional/test_device.py::TestProperties::test_reset_color_control_to_default PASSED                       [ 11%]
tests/functional/test_device.py::TestProperties::test_get_calibration PASSED                                      [ 12%]
tests/functional/test_device.py::TestProperties::test_serial PASSED                                               [ 13%]
tests/functional/test_device.py::TestCameras::test_start_stop_cameras PASSED                                      [ 15%]
tests/functional/test_device.py::TestCameras::test_capture PASSED                                                 [ 16%]
tests/functional/test_device.py::TestIMU::test_start_stop_imu PASSED                                              [ 17%]
tests/functional/test_device.py::TestIMU::test_get_imu_sample PASSED                                              [ 18%]
tests/functional/test_device.py::TestCalibrationRaw::test_calibration_raw PASSED                                  [ 19%]
tests/functional/test_device.py::TestInstalledCount::test_count PASSED                                            [ 20%]
tests/functional/test_playback.py::TestInit::test_not_existing_path PASSED                                        [ 22%]
tests/functional/test_playback.py::TestPropertyLength::test_correct_value PASSED                                  [ 23%]
tests/functional/test_playback.py::TestPropertyCalibrationRaw::test_correct_value PASSED                          [ 24%]
tests/functional/test_playback.py::TestPropertyConfiguration::test_readness PASSED                                [ 25%]
tests/functional/test_playback.py::TestCalibration::test_readness PASSED                                          [ 26%]
tests/functional/test_playback.py::TestSeek::test_seek_from_start PASSED                                          [ 27%]
tests/functional/test_playback.py::TestSeek::test_seek_from_end PASSED                                            [ 29%]
tests/functional/test_playback.py::TestSeek::test_seek_by_device_time PASSED                                      [ 30%]
tests/functional/test_playback.py::TestGetCapture::test_get_next_capture PASSED                                   [ 31%]
tests/functional/test_playback.py::TestGetCapture::test_get_previouse_capture PASSED                              [ 32%]
tests/functional/test_record.py::TestCreate::test_create PASSED                                                   [ 33%]
tests/functional/test_record.py::TestClose::test_closing PASSED                                                   [ 34%]
tests/functional/test_record.py::TestFlush::test_file_size_increased PASSED                                       [ 36%]
tests/unit/test_calibration.py::TestCalibration::test_properties PASSED                                           [ 37%]
tests/unit/test_calibration.py::TestCalibration::test_color_to_depth_3d PASSED                                    [ 38%]
tests/unit/test_calibration.py::TestCalibration::test_depth_to_color_3d PASSED                                    [ 39%]
tests/unit/test_calibration.py::TestCalibration::test_2d_to_3d_without_target_camera PASSED                       [ 40%]
tests/unit/test_calibration.py::TestCalibration::test_2d_to_3d_with_target_camera PASSED                          [ 41%]
tests/unit/test_calibration.py::TestCalibration::test_3d_to_2d_without_target_camera PASSED                       [ 43%]
tests/unit/test_calibration.py::TestCalibration::test_3d_to_2d_with_target_camera PASSED                          [ 44%]
tests/unit/test_device.py::TestOpenClose::test_open_none_existing_device PASSED                                   [ 45%]
tests/unit/test_device.py::TestOpenClose::test_open_existing_device PASSED                                        [ 46%]
tests/unit/test_device.py::TestOpenClose::test_open_twice PASSED                                                  [ 47%]
tests/unit/test_device.py::TestProperties::test_sync_jack_status_on_closed_device PASSED                          [ 48%]
tests/unit/test_device.py::TestProperties::test_sync_jack_status PASSED                                           [ 50%]
tests/unit/test_device.py::TestProperties::test_color_property_on_closed_device PASSED                            [ 51%]
tests/unit/test_device.py::TestProperties::test_color_property PASSED                                             [ 52%]
tests/unit/test_device.py::TestProperties::test_color_property_setter_on_closed_device PASSED                     [ 53%]
tests/unit/test_device.py::TestProperties::test_color_property_setter_incorrect_value PASSED                      [ 54%]
tests/unit/test_device.py::TestProperties::test_color_property_setter PASSED                                      [ 55%]
tests/unit/test_device.py::TestProperties::test_reset_color_control_to_default_on_closed_device PASSED            [ 56%]
tests/unit/test_device.py::TestProperties::test_reset_color_control_to_default PASSED                             [ 58%]
tests/unit/test_device.py::TestProperties::test_calibration PASSED                                                [ 59%]
tests/unit/test_device.py::TestProperties::test_serial PASSED                                                     [ 60%]
tests/unit/test_device.py::TestCameras::test_capture_on_closed_device PASSED                                      [ 61%]
tests/unit/test_device.py::TestCameras::test_get_capture PASSED                                                   [ 62%]
tests/unit/test_device.py::TestIMU::test_get_imu_sample_on_closed_device PASSED                                   [ 63%]
tests/unit/test_device.py::TestIMU::test_get_imu_sample PASSED                                                    [ 65%]
tests/unit/test_device.py::TestCalibrationRaw::test_calibration_raw_on_closed_device PASSED                       [ 66%]
tests/unit/test_device.py::TestCalibrationRaw::test_calibration_raw PASSED                                        [ 67%]
tests/unit/test_device.py::TestInstalledCount::test_count PASSED                                                  [ 68%]
tests/unit/test_playback.py::TestInit::test_path_argument PASSED                                                  [ 69%]
tests/unit/test_playback.py::TestInit::test_not_existing_path PASSED                                              [ 70%]
tests/unit/test_playback.py::TestOpen::test_double_open PASSED                                                    [ 72%]
tests/unit/test_playback.py::TestPropertyLength::test_validate_if_record_opened PASSED                            [ 73%]
tests/unit/test_playback.py::TestPropertyLength::test_good_file PASSED                                            [ 74%]
tests/unit/test_playback.py::TestPropertyConfiguration::test_validate_if_record_opened PASSED                     [ 75%]
tests/unit/test_playback.py::TestPropertyCalibrationRaw::test_validate_if_record_opened PASSED                    [ 76%]
tests/unit/test_playback.py::TestPropertyCalibrationRaw::test_good_file PASSED                                    [ 77%]
tests/unit/test_playback.py::TestPropertyCalibrationRaw::test_bad_file PASSED                                     [ 79%]
tests/unit/test_playback.py::TestPropertyCalibration::test_validate_if_record_opened PASSED                       [ 80%]
tests/unit/test_playback.py::TestPropertyCalibration::test_good_file PASSED                                       [ 81%]
tests/unit/test_playback.py::TestPropertyCalibration::test_bad_file PASSED                                        [ 82%]
tests/unit/test_playback.py::TestSeek::test_validate_if_record_opened PASSED                                      [ 83%]
tests/unit/test_playback.py::TestSeek::test_bad_file PASSED                                                       [ 84%]
tests/unit/test_playback.py::TestSeek::test_good_file PASSED                                                      [ 86%]
tests/unit/test_playback.py::TestSeek::test_seek_eof PASSED                                                       [ 87%]
tests/unit/test_record.py::TestCreate::test_bad_path PASSED                                                       [ 88%]
tests/unit/test_record.py::TestCreate::test_create PASSED                                                         [ 89%]
tests/unit/test_record.py::TestCreate::test_recreate PASSED                                                       [ 90%]
tests/unit/test_record.py::TestClose::test_not_created_record PASSED                                              [ 91%]
tests/unit/test_record.py::TestClose::test_closing PASSED                                                         [ 93%]
tests/unit/test_record.py::TestWriteHeader::test_not_created_record PASSED                                        [ 94%]
tests/unit/test_record.py::TestWriteHeader::test_double_writing PASSED                                            [ 95%]
tests/unit/test_record.py::TestWriteCapture::test_not_created_record PASSED                                       [ 96%]
tests/unit/test_record.py::TestWriteCapture::test_header_created PASSED                                           [ 97%]
tests/unit/test_record.py::TestWriteCapture::test_captures_count_increased PASSED                                 [ 98%]
tests/unit/test_record.py::TestFlush::test_not_created_record PASSED                                              [100%]

----------- coverage: platform linux, python 3.8.7-final-0 -----------
Coverage XML written to file coverage.xml

================================================== 86 passed in 8.48s ===================================================