From 4881aac5c917c51896dc1d8a3f50229b228af8d2 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 30 Mar 2022 10:52:09 +0200 Subject: [PATCH] use numpy instead of math --- ereuse_devicehub/parser/computer.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/parser/computer.py b/ereuse_devicehub/parser/computer.py index ceb41141..75f0c74c 100644 --- a/ereuse_devicehub/parser/computer.py +++ b/ereuse_devicehub/parser/computer.py @@ -3,7 +3,6 @@ import re from contextlib import suppress from datetime import datetime from fractions import Fraction -from math import hypot from typing import Iterator, List, Optional, Type, TypeVar import dateutil.parser @@ -13,6 +12,7 @@ from ereuse_utils.nested_lookup import ( get_nested_dicts_with_key_containing_value, get_nested_dicts_with_key_value, ) +from numpy import hypot from ereuse_devicehub.parser import base2, unit, utils from ereuse_devicehub.parser.utils import Dumpeable diff --git a/requirements.txt b/requirements.txt index 341820b3..7bf94f9b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -45,3 +45,4 @@ python-dotenv==0.14.0 pyjwt==2.0.0a1 pint==0.9 py-dmidecode==0.1.0 +numpy==1.16.3