Skip to content

Commit 40ab3ba

Browse files
committed
remove additional whitespace
1 parent 3cd9afc commit 40ab3ba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/workflows/transitions/preprocess/preprocess/make_predictions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ def make_predictions(las_client, event):
161161
if predictions:
162162
field_config = form_config['config']['fields']
163163
predictions, top1_preds = patch_and_filter_predictions(
164-
predictions=predictions,
165-
field_config=field_config,
166-
labels=labels,
167-
merge_continued_lines=model_metadata.get('mergeContinuedLines'),
164+
predictions=predictions,
165+
field_config=field_config,
166+
labels=labels,
167+
merge_continued_lines=model_metadata.get('mergeContinuedLines'),
168168
no_empty_prediction_fields=no_empty_prediction_fields,
169169
)
170170
logging.info(f'patched and filtered predictions {predictions}')

docs/workflows/transitions/preprocess/tests/test_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,11 +1008,11 @@ def test_patch_and_filter(form_config_simple, predictions, no_empty_prediction_f
10081008
_, top_1 = patch_and_filter_predictions(predictions, field_config, labels, False, no_empty_prediction_fields)
10091009
best_total_amount = [p for p in top_1 if p['label'] == 'total_amount']
10101010
assert len(best_total_amount) == 1
1011-
# If a field is part of no_empty_prediction_fields,
1011+
# If a field is part of no_empty_prediction_fields,
10121012
# it means that there exists at least one page with a prediction
1013-
# If a field is not part of no_empty_prediction_fields,
1013+
# If a field is not part of no_empty_prediction_fields,
10141014
# it means that there is no prediction for that field on any page
1015-
# This would not be the case for the predictions above,
1015+
# This would not be the case for the predictions above,
10161016
# but faking it will make the best_total_amount None since it has the highest confidence.
10171017
assert best_total_amount[0]['value'] == ('100.00' if no_empty_prediction_fields else None)
10181018
line_items = [p for p in top_1 if p['label'] == 'line_items']

0 commit comments

Comments
 (0)