@@ -48,9 +48,7 @@ def check_for_pint():
4848
4949 # if no pint found, load local
5050 import pint
51- current_path = os .path .dirname (os .path .realpath (__file__ ))
52- u_ = pint .UnitRegistry (autoconvert_offset_to_baseunit = True ,
53- filename = os .path .join (current_path , "support_files" , "default_en.txt" ))
51+ u_ = pint .UnitRegistry (autoconvert_offset_to_baseunit = True )
5452 u_ .default_format = "~"
5553 return u_
5654
@@ -99,8 +97,8 @@ def __init__(self):
9997 ["°C" , "degC" ], # eliminates issue with capitalization step
10098 ["(?<=[0-9]{1})[ ]{0,1}X[ ]{0,1}(?=[0-9]{1})" , "*" ], # unify multiplication symbols
10199 ["(?<=[0-9]{1})[ ]{0,1}x[ ]{0,1}(?=[0-9]{1})" , "*" ], # unify multiplication symbols
102- ["\[" , "(" ], # noqa: W605 # make all brackets parenthesis
103- ["\]" , ")" ], # noqa: W605 # make all brackets parenthesis
100+ [r "\[" , "(" ], # make all brackets parenthesis
101+ [r "\]" , ")" ], # make all brackets parenthesis
104102 ["^.*={1}" , "" ], # delete everything in front of equal
105103 ["^.*:{1}" , "" ], # delete everything in front of collen
106104 ["( to )" , "-" ], # unify how range are represented
0 commit comments