Skip to content

Commit

Permalink
fix docstring of submit script arguments (#80)
Browse files Browse the repository at this point in the history
* fix docstring of submit script arguments

* fix s3 bug

Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
  • Loading branch information
wanghan-iapcm and Han Wang committed Oct 6, 2022
1 parent 1718168 commit 18340c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For all the dpgen2 commands, one need to provide `dflow2` global configurations.
"host" : "http://address.of.the.host:port"
},
"dflow_s3_config" : {
"s3_endpoint" : "address.of.the.s3.sever:port"
"endpoint" : "address.of.the.s3.sever:port"
},
```
The `dpgen` simply pass all keys of `"dflow_config"` to `dflow.config` and all keys of `"dflow_s3_config"` to `dflow.s3_config`.
Expand Down
2 changes: 1 addition & 1 deletion dpgen2/entrypoint/submit_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def input_args():
Argument("type_map", list, optional=False, doc=doc_type_map),
Argument("mass_map", list, optional=False, doc=doc_mass_map),
Argument("init_data_prefix", str, optional=True, default=None, doc=doc_init_data_prefix),
Argument("init_data_sys", list, optional=False, default=None, doc=doc_init_data_prefix),
Argument("init_data_sys", list, optional=False, default=None, doc=doc_init_sys),
]


Expand Down
2 changes: 1 addition & 1 deletion examples/almg/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"host" : "http://address.of.the.host:port"
},
"dflow_s3_config" : {
"s3_endpoint" : "address.of.the.s3.sever:port"
"endpoint" : "address.of.the.s3.sever:port"
},

"lebesgue_context_config": {
Expand Down

0 comments on commit 18340c9

Please sign in to comment.