Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KWH40
fml40-reference-implementation
Commits
40a5b9fe
Commit
40a5b9fe
authored
Nov 07, 2020
by
Jiahang Chen
Browse files
fix dir json print out problem
parent
76e64385
Pipeline
#354779
passed with stage
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ml/thing.py
View file @
40a5b9fe
...
...
@@ -515,9 +515,7 @@ def to_dir_json(self):
for
key
in
self
.
features
.
keys
():
feature_entry
=
{
"association"
:
"features"
,
"target"
:
{
"class"
:
self
.
features
[
key
].
class_name
,
}
"target"
:
self
.
features
[
key
].
to_json
()
}
# if the feature has targets, like ml40::Composite
if
hasattr
(
self
.
features
[
key
],
'targets'
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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