Skip to content

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented Jul 26, 2021

Fix #3.

Here is the DeePMD-kit JSON file:
deepmd.txt

@y1xiaoc Please check if any information is missing.

Comment on lines 659 to 678
if isinstance(obj, Argument):
return {
"name": obj.name,
"type": obj.dtype,
"alias": obj.alias,
"doc": obj.doc,
"sub_filed": obj.sub_fields,
"fold_subdoc": obj.fold_subdoc,
"repeat": obj.repeat,
"sub_fields": obj.sub_fields,
"sub_variants": obj.sub_variants,
}
elif isinstance(obj, Variant):
return {
"flag_name": obj.flag_name,
"optional": obj.optional,
"default_tag": obj.default_tag,
"choice_dict": obj.choice_dict,
"doc": obj.doc,
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@y1xiaoc Here please check if any information is missing.

@njzjz
Copy link
Member Author

njzjz commented Jul 26, 2021

@y1xiaoc, ready to review.

@y1xiaoc y1xiaoc merged commit 468756d into deepmodeling:master Jul 27, 2021
@njzjz njzjz deleted the json branch July 27, 2021 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

export to json

2 participants