From 5a85f7f1c03004a8c36f1c03f00023ffbea5a3c9 Mon Sep 17 00:00:00 2001 From: Galoshi Date: Tue, 25 Jun 2024 10:52:31 +0200 Subject: [PATCH] Removed unnecessary comments --- source/rpc/imageQualityCheck.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/source/rpc/imageQualityCheck.py b/source/rpc/imageQualityCheck.py index f5751a9..70f891d 100644 --- a/source/rpc/imageQualityCheck.py +++ b/source/rpc/imageQualityCheck.py @@ -1,4 +1,3 @@ -from urllib.parse import urlparse from urllib.request import urlopen import json import time @@ -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: """ @@ -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