Implements codecarbon plots #330
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While profiling baler with codecarbon, the profiling logs can be stored as a
.CSVfile. This PR creates plots from the.CSVlog file for better visualization of the energy profiles.For a sample
.CSVas shown belowThe PR plots figures as
These plots are stored at the location
workspaces/CFD_workspace/CFD_project_animation/output/profilingI have created an empty folder
profilingunder theoutputdirectory and added a.gitkeepHowever it seems that the emptyprofilingfolder is still getting ignored and not being pushed into GitHub. For now, this PR can be reviewed by explicitly creating theprofilingfolder but this needs to be fixed in the.gitignorewhich I am unable to figure out and I need help.The
.gitignorepresent in the root of baler directory has some issues. It is not ignoring as intended, in particular, if we add new contents/folders/files inside theworkspacesdirectory. I fixed the above mentioned strikethrough issue by directly making an empty folder namedprofilingwith a.gitkeepinside and committed the changes on GitHub itself.However the same doesn't seem to work when I do it locally. Git cannot track the empty folder and cannot push the empty folder into GitHub. Making changes to the
.gitignorealso doesn't seem to work.