Skip to content

Commit

Permalink
In subtree_parse, strip whitespace before checking if the generated s…
Browse files Browse the repository at this point in the history
…nippet is correct.
  • Loading branch information
jmmcd committed Oct 28, 2021
1 parent 749f064 commit cef8fe7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/operators/subtree_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,11 @@ def check_snippets_for_solution():
# Get the phenotype of the largest snippet
largest_snippet = get_output(trackers.snippets[biggest_snippet[1]])

if largest_snippet != params['REVERSE_MAPPING_TARGET']:
# FIXME I am stripping whitespace from end of
# params['REVERSE_MAPPING_TARGET'] using rstrip(), as this extra
# whitespace is preventing the match. See GitHub #137.

if largest_snippet != params['REVERSE_MAPPING_TARGET'].rstrip():
# The solution doesn't match the target string.

# Get the location of the phenotype of the largest snippet on the
Expand Down

0 comments on commit cef8fe7

Please sign in to comment.