• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IntelPython / dpnp / 12036779784
81%

Build:
DEFAULT BRANCH: master
Ran 26 Nov 2024 06:50PM UTC
Jobs 1
Files 199
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Nov 2024 06:26PM UTC coverage: 67.822% (+0.06%) from 67.764%
12036779784

push

github

web-flow
Implement `dpnp.compress` and `dpnp_array.compress` method (#2177)

* Implement dpnp.compress

* Add `dpnp_array.compress` method

* Break up `compress` to satisfy pylint

Also disable checks for protected access, as `compress` uses dpctl.tensor private functions

* Unmute third-party tests for `compress`

* Use `get_usm_allocations` in `compress`

* Fix bug where `out` in `compress` is dpnp_array

Also removes an unnecessary check per PR review

* Apply comments per PR review by @antonwolfy

Also fix a typo when `condition` is not an array

* Remove branching when `condition` is an array

Also tweaks to docstring

* Add tests for `compress`

* Re-use `_take_index` for `dpnp.take`

Should slightly improve efficiency by escaping an additional copy where `out` is not `None` and flattening of indices

* Change error for incorrect out array dtype to `TypeError`

* Move compress tests into a TestCompress class

* Use NumPy in compress tests

* Add `no_none=True` to `test_compress_condition_all_dtypes`

* Add USM type and SYCL queue tests for `compress`

* More tests for compress added

* Docstring change per PR review

* Integrate test for compute follows data in compress into test_2in_1out

* Add test for `dpnp_array.compress` and add a test for strided inputs to `compress`

* Refactor `test_compress` in test_usm_type.py into `test_2in_1out`

4383 of 10012 branches covered (43.78%)

Branch coverage included in aggregate %.

50 of 50 new or added lines in 2 files covered. (100.0%)

16443 of 20695 relevant lines covered (79.45%)

20615.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12036779784.1 26 Nov 2024 06:51PM UTC 199
67.82
GitHub Action Run
Source Files on build 12036779784
  • Tree
  • List 199
  • Changed 20
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 367e74e0 on github
  • Prev Build on master (#12032481467)
  • Next Build on master (#12051191783)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc