Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix pint/(X instances) cache error #8

Merged
merged 1 commit into from
Oct 6, 2021
Merged

Conversation

vatai
Copy link
Contributor

@vatai vatai commented Aug 5, 2021

On my AMD Ryzen 5 5600X 6-Core cpu, py-cpuinfo was returning 192 KiB (6 instances) which got pint confused since it is expecting only 192 KiB. My solution is to keep only the first two "words" (i.e. number and unit) and throw away the rest.

On my AMD Ryzen 5 5600X 6-Core cpu, `py-cpuinfo` was returning `192
KiB (6 instances)` which got `pint` confused since it is expecting
only `192 KiB`.  My solution is to keep only the first two "words"
(i.e. number and unit) and throw away the rest.
@codecov
Copy link

codecov bot commented Aug 5, 2021

Codecov Report

Merging #8 (d343a19) into master (12d22ff) will decrease coverage by 8.64%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
- Coverage   96.04%   87.40%   -8.65%     
==========================================
  Files          27       27              
  Lines         936      937       +1     
  Branches      110      110              
==========================================
- Hits          899      819      -80     
- Misses         27      103      +76     
- Partials       10       15       +5     
Impacted Files Coverage Δ
system_query/cpu_info.py 82.22% <100.00%> (-4.15%) ⬇️
system_query/hdd_info.py 28.57% <0.00%> (-66.67%) ⬇️
test/test_with_sudo.py 40.00% <0.00%> (-60.00%) ⬇️
system_query/ram_info.py 41.07% <0.00%> (-46.43%) ⬇️
system_query/gpu_info.py 20.00% <0.00%> (-42.86%) ⬇️
system_query/available_features.py 72.72% <0.00%> (-9.10%) ⬇️
system_query/software_info.py 87.50% <0.00%> (-8.34%) ⬇️
setup_boilerplate.py 97.64% <0.00%> (-2.36%) ⬇️

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 12d22ff...d343a19. Read the comment docs.

@undertherain undertherain merged commit 8934c23 into mbdevpl:master Oct 6, 2021
mbdevpl added a commit that referenced this pull request Aug 27, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants