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
Anthony Larcher
sidekit
Commits
506e76fa
Commit
506e76fa
authored
Apr 13, 2021
by
Anthony Larcher
Browse files
debug
parent
ecccbb1b
Changes
1
Show whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
506e76fa
...
...
@@ -804,18 +804,13 @@ def fill_dict(target_dict, source_dict, prefix = ""):
if
isinstance
(
v1
,
dict
):
if
k1
in
source_dict
and
isinstance
(
source_dict
[
k1
],
dict
):
#print(f"\n{prefix}{k1}")
fill_dict
(
v1
,
source_dict
[
k1
],
prefix
+
"
\t
"
)
#print("\n")
else
:
#print(f"{prefix}{k1} set to default value: {target_dict[k1]}")
pass
else
:
if
k1
in
source_dict
and
source_dict
[
k1
]
is
not
None
:
target_dict
[
k1
]
=
source_dict
[
k1
]
#print(f"{prefix}{k1} set to: {source_dict[k1]}")
else
:
#print(f"{prefix}{k1} set to default value: {target_dict[k1]}")
pass
...
...
Write
Preview
Supports
Markdown
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