Closed tdejong00 closed 5 months ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
@tdejong00 Thanks a lot for this pull request! I currently can't push new commits to this pull because the pull request is created from the master branch of your fork which is protected. Could you either unprotect your master branch or create a new branch and create the pull request from that branch?
@tdejong00 Thanks a lot for this pull request! I currently can't push new commits to this pull because the pull request is created from the master branch of your fork which is protected. Could you either unprotect your master branch or create a new branch and create the pull request from that branch?
@benvanwerkhoven I have unprotected our master
branch. Let me know if this solved the problem!
Hmm, that wasn't intentional..
This pull request adds an interface for modifying cache files, which is located in the
kernel_tuner/cache
directory. This directory contains the following modules:cache
(main module): contains aCache
class through which cache files can be created, read and written. This should be the only python module that needs to be used for modifying cache files.cli_tools
: contains functions used in thektcache
command.convert
: contains functions for converting (older) cache files to newer cache files.file
: contains functions for reading JSON from and writing JSON to cache files.json
: contains TypeDict type hints for typing code.json_encoder
: contains a custom instance of JSONEncoder that automatically serializes data into JSON in a readable format.paths
: contains useful paths within the project.versions
: exports useful Semver version constants.Furthermore the following test modules have been added:
test_cachefile_class.py
: tests whether the class integrates the functionalities of the other cache modules in the correct way and the additional logic in theCache
class.test_cachefile_encoder.py
: tests whether the JSON is encoded in the right way.test_cachefile_read_write.py
: tests whether cache is read and written in the correct format.test_cachefile_schema.py
: tests the correctness of the schema.test_script_ktcache.py
: tests thektcache
CLI command.We have not yet added an entry to the
CHANGELOG.md
, because we are not sure in what version these changes will be introduced.