Skip to content

Commit

Permalink
Revert "Fix for Visualization"
Browse files Browse the repository at this point in the history
This reverts commit 6d717f5.
  • Loading branch information
0dm committed Jun 15, 2023
1 parent 330d999 commit 7fc3439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions openadapt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
"SCRUB_CHAR": "*",
"SCRUB_LANGUAGE": "en",
# TODO support lists in getenv_fallback
"TEST_SCRUB_FILL_COLOR": (255, 0, 0),
"SCRUB_FILL_COLOR": (255,),
"SCRUB_FILL_COLOR": (255, 0, 0),
"SCRUB_CONFIG_TRF": {
"nlp_engine_name": "spacy",
"models": [{"lang_code": "en", "model_name": "en_core_web_trf"}],
Expand Down
2 changes: 1 addition & 1 deletion tests/openadapt/test_scrub.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_scrub_image() -> None:

# Count the number of pixels having the color of the mask
mask_pixels = sum(
1 for pixel in scrubbed_image.getdata() if pixel == config.TEST_SCRUB_FILL_COLOR
1 for pixel in scrubbed_image.getdata() if pixel == config.SCRUB_FILL_COLOR
)
total_pixels = scrubbed_image.width * scrubbed_image.height

Expand Down

0 comments on commit 7fc3439

Please sign in to comment.