Skip to content

Conversation

@BradleyBooth
Copy link

Update all copyright notice dates to 2022-2025.

Change time calculations to use time.perf_counter (cpu time used) instead of time.time (wall time), and output in seconds rather than minutes.

Exclude csv files in .gitignore (exclude tracking results from sync)

Add green_code.py module with GreenCodeTracking Class definition. Can be extended with additional hooks / more advanced tracking as needed. Saves results to csv file in project root, formatted correctly for the tracking spreadsheet (https://docs.google.com/spreadsheets/d/15NXZs0HvHZhGMvgVDyDMyeR0i8ExWEDgkaK-fVB2m38). If verbose passed, output tracking info to terminal.

Poetry add libraries psutil, py-cpuinfo (for green_code system info) and pytest-mock (for unit testing green_code module).

Add 'GPU' optional dependency group to poetry toml (for optional install of nvidia GPU info library).

Add test_green_code.py for unit testing new module.

Add green_code helper.py function and unit test in test_helper.py

Add wrapper to execute main baler.py inside GreenCodeTracker (called from helper.py)

tests.sh passes successfully - warning on test_lr_scheduler re. verbose being deprecated.

Syntax.sh passes successfully.

All baler modes run successfully.

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

Successfully merging this pull request may close these issues.

1 participant