Skip to content

Commit

Permalink
Removed unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Galoshi committed Jun 25, 2024
1 parent 8f3871a commit 5a85f7f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions source/rpc/imageQualityCheck.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from urllib.parse import urlparse
from urllib.request import urlopen
import json
import time
Expand All @@ -14,12 +13,6 @@ def __init__(self, imagerProxy, device):
self._imagerProxy = imagerProxy
self._device = device

# def __enter__(self):
# return self
#
# def __exit__(self, exc_type, exc_val, exc_tb):
# pass

@property
def enabled(self) -> bool:
"""
Expand Down Expand Up @@ -78,11 +71,6 @@ def _QualityCheckConfigSchema(self) -> dict:
:return: (dict) schema of Image Quality Check
"""
# ip = urlparse(self._imagerProxy.proxy.baseURL).netloc
# with urlopen("http://{}/schema/ParamImageFeatures.json".format(ip)) as url:
# data = json.load(url)
# return data

with urlopen("http://{}/schema/ParamImageFeatures.json".format(self._device.address)) as url:
data = json.load(url)
return data
Expand Down

0 comments on commit 5a85f7f

Please sign in to comment.