Skip to content

Commit

Permalink
fixed error based on reformated output format
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Feb 22, 2024
1 parent 0e3af13 commit 4b95c3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ For more details, we refer to the paper. TODO: add paper link here
- ``docker cp <container_id>:<location_png/results> <location_to_be_stored>`` (copy whole folder or individual files), e.g., ``docker cp e7ba94d69e94:/app/res ./docker``
- to get container_id call ``docker ps``

> Note that the Dockerfile uses multiple stages. The first stage builds the executable using rust/cargo and the second stage uses a debian environment to execute it. Therefore, there are no cargo-commands available in the container while running. Line 7 in run.sh will fail, but since it is prebuilded during the build stage, the consecutive command will work.
> Note that the Dockerfile uses multiple stages. The first stage builds the executable using rust/cargo and the second stage uses a debian environment to execute it. Therefore, there are no cargo-commands available in the container while running. Line 7 in run.sh will fail, but since it is prebuilded during the build stage, the consecutive commands will work.

## How to Interpret the Output Format
Expand Down
6 changes: 3 additions & 3 deletions scripts/infer_parameters_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def build_call(filename):
all_segments.append(segments)
segments = []
else:
if line.strip().startswith('Is greedy:'):
pattern = r"(.*)\((\d+)\)(.*)"
if line.strip().startswith('Approximations:'):
pattern = r'Approximations:.*?delta: (\d+)'
match = re.search(pattern, line)
if match:
skipped_entries = int(match.group(2))
skipped_entries = int(match.group(1))
if line.startswith('Get segmentation after'):
read_result = True
skip = True
Expand Down

0 comments on commit 4b95c3c

Please sign in to comment.