GreenAlgorithms / green-algorithms-tool

http://green-algorithms.org/
Creative Commons Attribution 4.0 International
92 stars 23 forks source link

command line tool to generate report based on job statistics #18

Open foreveremain opened 2 years ago

foreveremain commented 2 years ago

It would be great to be able to plug data into a command line tool that provides the same report as the web tool.

Is that possible ?

sashavor commented 2 years ago

I have a similar question! I am trying to extract the relevant parts of app.py to calculate the statistics I need, but it's not working (and taking a lot of manual work)

Llannelongue commented 2 years ago

Hey, just confirming what you are trying to do: you would like to send requests to the website from the command line to do the calculations? Or are you looking at something local, where the data is loaded on your disk and everything happens locally?

sashavor commented 2 years ago

Either way works for me! I think locally is simpler right?

On Mon., Feb. 7, 2022, 5:16 a.m. Loïc Lannelongue, @.***> wrote:

Hey, just confirming what you are trying to do: you would like to send requests to the website from the command line to do the calculations? Or are you looking at something local, where the data is loaded on your disk and everything happens locally?

— Reply to this email directly, view it on GitHub https://github.com/GreenAlgorithms/green-algorithms-tool/issues/18#issuecomment-1031298032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMMIIUJSE7YRZ55VCD66NLUZ6LWTANCNFSM5M2TZIIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

Llannelongue commented 2 years ago

Indeed, local is simpler. This is a good idea, and I'll try to add the code for that here.

But if you want it now, you can give a look to this project I've been working on. In particular this file. The code is doing more than what you need, but if you replace the part about SLURM query by a simple input, it should do the job nicely?

foreveremain commented 2 years ago

looks like it should.. I assumed you'd have probably have created a tool like this first :)

On Mon, 7 Feb 2022 at 21:47, Loïc Lannelongue @.***> wrote:

Indeed, local is simpler. This is a good idea, and I'll try to add the code for that here.

But if you want it now, you can give a look to this project https://github.com/Llannelongue/GreenAlgorithms4HPC I've been working on. In particular this file https://github.com/Llannelongue/GreenAlgorithms4HPC/blob/main/GreenAlgorithms_global.py. The code is doing more than what you need, but if you replace the part about SLURM query by a simple input, it should do the job nicely?

— Reply to this email directly, view it on GitHub https://github.com/GreenAlgorithms/green-algorithms-tool/issues/18#issuecomment-1031963427, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7SW65VAGONR3SP646RP3U2A4WJANCNFSM5M2TZIIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Nanoseb commented 2 years ago

Hi @Llannelongue, That's great, I did not realise such project existed so I implemented my own a couple of months ago: https://github.com/Nanoseb/gqueue Once I have some time I will try to contribute to GreenAlgorithms4HPC. Cheers and thanks for your work on this topic, it has been a real eye opener for me.

EDIT: btw, shouldn't this repo be moved under the "GreenAlgorithms" team? as it will get more attraction and be a lot easier to find.