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

Verify accounting #7959

Closed
fstagni opened this issue Dec 19, 2024 · 1 comment
Closed

Verify accounting #7959

fstagni opened this issue Dec 19, 2024 · 1 comment
Assignees
Milestone

Comments

@fstagni
Copy link
Contributor

fstagni commented Dec 19, 2024

Plotting for v9.0.0a39 does not work, in the sense that:

  • it is independent from Accounting vs Monitoring
  • the issue seems to be in using UTC vs non-UTC (in v8 the time was still set to local)
  • the issue is not visible for pie-charts
  • weirdly, comparing the image below, using PIL

Image

to the "equivalent" and correct one produced using v8 code does not show the error

Reproducible with:

data = {'DIRAC.ARM.ch': {1733913000: 5.0, 1733922000: 8.0, 1733931000: 7.0, 1733940000: 8.0, 1733949000: 1.0, 1733958000: 6.0, 1733967000: 8.0, 1733976000: 8.0, 1733985000: 3.0, 1733994000: 4.0, 1734003000: 8.0, 1734012000: 7.0, 1734021000: 5.0, 1734030000: 1.0, 1734039000: 7.0, 1734048000: 8.0, 1734057000: 7.0, 1734066000: 1.0, 1734075000: 3.0, 1734084000: 8.0, 1734093000: 7.0, 1734102000: 6.0, 1734120000: 7.0, 1734129000: 8.0, 1734138000: 7.0, 1734147000: 1.0, 1734156000: 4.0, 1734165000: 8.0, 1734174000: 7.0, 1734183000: 5.0, 1734192000: 2.0, 1734201000: 8.0, 1734210000: 7.0, 1734219000: 7.0, 1734228000: 5.0, 1734237000: 8.0, 1734246000: 7.0, 1734111000: 0, 1734255000: 0, 1734264000: 0, 1734273000: 0, 1734282000: 0, 1734291000: 0, 1734300000: 0, 1734309000: 0, 1734318000: 0, 1734327000: 0, 1734336000: 0, 1734345000: 0, 1734354000: 0, 1734363000: 0, 1734372000: 0, 1734381000: 0, 1734390000: 0, 1734399000: 0, 1734408000: 0, 1734417000: 0, 1734426000: 0, 1734435000: 0, 1734444000: 0, 1734453000: 0, 1734462000: 0, 1734471000: 0, 1734480000: 0, 1734489000: 0, 1734498000: 0, 1734507000: 0, 1734516000: 0}, 'LCG.CERN.cern': {1733913000: 36.0, 1733922000: 42.0, 1733931000: 48.0, 1733940000: 42.0, 1733949000: 6.0, 1733958000: 36.0, 1733967000: 48.0, 1733976000: 48.0, 1733985000: 18.0, 1733994000: 24.0, 1734003000: 48.0, 1734012000: 42.0, 1734021000: 30.0, 1734030000: 6.0, 1734039000: 42.0, 1734048000: 48.0, 1734057000: 42.0, 1734066000: 6.0, 1734075000: 18.0, 1734084000: 48.0, 1734093000: 48.0, 1734102000: 30.0, 1734120000: 42.0, 1734129000: 48.0, 1734138000: 42.0, 1734147000: 6.0, 1734156000: 24.0, 1734165000: 42.0, 1734174000: 48.0, 1734183000: 30.0, 1734192000: 12.0, 1734201000: 54.0, 1734210000: 42.0, 1734219000: 42.0, 1734228000: 30.0, 1734237000: 48.0, 1734246000: 42.0, 1734111000: 0, 1734255000: 0, 1734264000: 0, 1734273000: 0, 1734282000: 0, 1734291000: 0, 1734300000: 0, 1734309000: 0, 1734318000: 0, 1734327000: 0, 1734336000: 0, 1734345000: 0, 1734354000: 0, 1734363000: 0, 1734372000: 0, 1734381000: 0, 1734390000: 0, 1734399000: 0, 1734408000: 0, 1734417000: 0, 1734426000: 0, 1734435000: 0, 1734444000: 0, 1734453000: 0, 1734462000: 0, 1734471000: 0, 1734480000: 0, 1734489000: 0, 1734498000: 0, 1734507000: 0, 1734516000: 0}}

metadata= {'title': 'Number of Submission by Site', 'starttime': 1733917067, 'endtime': 1734521867, 'span': 9000, 'ylabel': 'Submissions'}

from DIRAC.Core.Utilities.Plotting.Plots import generateTimedStackedBarPlot
generateTimedStackedBarPlot("integration.png", data, metadata)
@fstagni fstagni self-assigned this Dec 19, 2024
@fstagni fstagni modified the milestones: v8.0, v9.0 Dec 19, 2024
@fstagni
Copy link
Contributor Author

fstagni commented Dec 19, 2024

It seems to work for everything that is "today", so maybe #7956 was enough. Closing for now, we'll see by the next hackathon.

@fstagni fstagni closed this as completed Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant