use numpy instead of math
This commit is contained in:
parent
cc2385cddf
commit
4881aac5c9
|
@ -3,7 +3,6 @@ import re
|
||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from fractions import Fraction
|
from fractions import Fraction
|
||||||
from math import hypot
|
|
||||||
from typing import Iterator, List, Optional, Type, TypeVar
|
from typing import Iterator, List, Optional, Type, TypeVar
|
||||||
|
|
||||||
import dateutil.parser
|
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_containing_value,
|
||||||
get_nested_dicts_with_key_value,
|
get_nested_dicts_with_key_value,
|
||||||
)
|
)
|
||||||
|
from numpy import hypot
|
||||||
|
|
||||||
from ereuse_devicehub.parser import base2, unit, utils
|
from ereuse_devicehub.parser import base2, unit, utils
|
||||||
from ereuse_devicehub.parser.utils import Dumpeable
|
from ereuse_devicehub.parser.utils import Dumpeable
|
||||||
|
|
|
@ -45,3 +45,4 @@ python-dotenv==0.14.0
|
||||||
pyjwt==2.0.0a1
|
pyjwt==2.0.0a1
|
||||||
pint==0.9
|
pint==0.9
|
||||||
py-dmidecode==0.1.0
|
py-dmidecode==0.1.0
|
||||||
|
numpy==1.16.3
|
||||||
|
|
Reference in New Issue