Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Carsten Eie Frigaard
GITMAL
Commits
856e8805
Commit
856e8805
authored
Oct 08, 2021
by
Carsten Eie Frigaard
Browse files
fixed_utils_py_line_160_typo-errors
parent
88306873
Changes
1
Hide whitespace changes
Inline
Side-by-side
libitmal/utils.py
View file @
856e8805
...
...
@@ -157,7 +157,7 @@ def AssertInRange(x, expected, eps=1E-9, autoconverttofloat=True, verbose=0):
norm
=
np
.
linalg
.
norm
(
x
)
if
verbose
>
2
:
print
(
"norm="
,
norm
)
AssertInRange
(
norm
,
exected
,
eps
,
autoconvert
,
verbose
)
AssertInRange
(
norm
,
ex
p
ected
,
eps
,
autoconvert
tofloat
,
verbose
)
else
:
assert
eps
>=
0
,
"eps is less than zero"
if
autoconverttofloat
and
(
not
isFloat
(
x
)
or
not
isFloat
(
expected
)
or
not
isFloat
(
eps
)):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment