Skip to content

Commit

Permalink
Image processor compatibility with Telegram images
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed Feb 15, 2022
1 parent a017724 commit 8b536de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion processors/metrics/google_vision_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def is_compatible_with(cls, module=None):
:param module: Dataset or processor to determine compatibility with
"""
return module.type == "image-downloader"
return module.type.startswith("image-downloader")

options = {
"amount": {
Expand Down
2 changes: 1 addition & 1 deletion processors/visualisation/image_wall.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def is_compatible_with(cls, module=None):
:param module: Dataset or processor to determine compatibility with
"""
return module.type == "image-downloader"
return module.type.startswith("image-downloader")

def process(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion processors/visualisation/pix-plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def is_compatible_with(cls, module=None):
:param module: Dataset or processor to determine compatibility with
"""
return module.type == "image-downloader" and hasattr(config, 'PIXPLOT_SERVER') and config.PIXPLOT_SERVER
return module.type.startswith("image-downloader") and hasattr(config, 'PIXPLOT_SERVER') and config.PIXPLOT_SERVER

def process(self):
"""
Expand Down

0 comments on commit 8b536de

Please sign in to comment.