Parse report from prob plan in ext planner
Project description
A small library that parses through the report.txt file and converts to a user-dict made up of Hypothesis objects. This will use report.txt files from the external-project.
Use pip install probplanparse to install package.
Here is a short example of how to use this package:
import probplanparse
probplanparse.parse_report('/mnt/c/Users/14022/Documents/SIFT/external-planner/pr_result/report.txt')
If you have a folder full of .tar.bz2 result folders, you can use the following script:
import probplanparse
import os
import sys
for (dirpath, dirnames, filenames) in os.walk('./prob-plan-results/'):
for filename in filenames:
if filename.endswith('.tar.bz2'):
try:
probplanparse.parse_report(os.path.join('prob-plan-results', filename), True)
except:
print("Unexpected error:", sys.exc_info())
pass
Change Log
0.1.2 (8/4/2021)
- Fix to
no attribute parse-report.
0.1.1 (8/4/2021)
- Added in ability to save the dictionaries into both
.jsonand.csv - Updated README for instructions on running with a folder full of problems
0.1.0 (8/4/2021)
- Added in ability to save the dictionaries to a file in a folder called "parsed-reports"
- Takes the problem name from the report, rather than file name
- Only will search for "report.txt"
0.0.8 (8/4/2021)
- Added in a CHANGELOG
- Removed unused functions
main()andget_report_from_args() - Updated print statements to include problem names
0.0.7 (8/4/2021)
- Updated function
parse-report()to enable it to take paths to.tar.bz2folders. - Created new function
get_report_func()to extract report from.tar.bz2folders.
0.0.6 (8/3/2021)
- First working release
- Versions 0.0.1 ~ 0.0.5 were broken and not working.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file probplanparse-0.1.2-py3-none-any.whl.
File metadata
- Download URL: probplanparse-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/2.7.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5bc57acf87545d85e0cb236023cae3563a15f95c8f4dfac39b822c690ce5c82
|
|
| MD5 |
d293a6749f793c6afe0089def9850fe0
|
|
| BLAKE2b-256 |
2e37024bb02180a204f397d9cadcbe9f8d9a0b755eb771967b5b5497873dba82
|