Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Log parser error due to zero power measurements #65

Open
raghavian opened this issue Feb 24, 2024 · 0 comments
Open

Log parser error due to zero power measurements #65

raghavian opened this issue Feb 24, 2024 · 0 comments

Comments

@raghavian
Copy link
Collaborator

raghavian commented Feb 24, 2024

Sometimes the power_usage entries and duration arrays do not match in size causing an error in parsing at this line . Asserting for size should be introduced. Currently throws the following error.

File "/home/image/miniconda3/lib/python3.8/site-packages/carbontracker/parser.py", line 25, in parse_all_logs
    "components": parse_logs(log_dir, std, out),
  File "/home/image/miniconda3/lib/python3.8/site-packages/carbontracker/parser.py", line 54, in parse_logs
    energy_usages = (power_usages.T * durations).T
ValueError: operands could not be broadcast together with shapes (1,11) (10,)
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant