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')
To parse through a set of reports inside a folder, do the following:
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.1(8/4/2021)
- Added in ability to save the dicts into both
.jsonand.csv - Updated README
0.1.0 (8/4/2021)
- Added in ability to save the dicts 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.1-py3-none-any.whl.
File metadata
- Download URL: probplanparse-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 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 |
e49283a83f55a1cd844f19a0953b1a7e6856feba5ba912cc3dc3a31155785878
|
|
| MD5 |
ed50784b28365c0162e738f340bfd667
|
|
| BLAKE2b-256 |
a62d60a5ea112a7e60ad58884f38ecaf6eb442a10866d772852f0e555abe04a9
|