Skip to content

Commit

Permalink
Improve live help
Browse files Browse the repository at this point in the history
  • Loading branch information
chazeon committed Apr 14, 2021
1 parent abad41c commit 7454eef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions cij/cli/cij.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def main():
from cij.cli.plot import main as _plot
main.add_command(_plot, "plot")

main.context_settings["max_content_width"] = 9999

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion cij/cli/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def load_data(var):
df.index = [float(idx) for idx in df.index]
return df

@click.command("extract", help="Extract data from cij calculation results to a table at specific P or T (e.g. table with c11s, c12s, K, G vs. P at 300 K).")
@click.command("extract", help="Extract data from cij calculation results to a table at specific P or T (e.g., table with c11s, c12s, K, G vs. P at 300 K).")
@click.option("-v", "--variables", required=True, help="Variables to output, (e.g., 'c11s,c12s,bm,G'), values should be seperated with comma.")
@click.option("-T", "--temperature", type=click.FLOAT, help="Specify temperature to extract data at, value in unit K, result will be tabulated vs. P.")
@click.option("-P", "--pressure", type=click.FLOAT, help="Specify pressure to extract data at, value in unit GPa, result will be tabulated vs. T.")
Expand Down
4 changes: 2 additions & 2 deletions cij/data/schema/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@
},
"NTV": {
"type": "integer",
"title": "Number of volumes (or equivivalently, pressures) on the grid",
"title": "Number of volumes (or equivivalently, pressures) on the grid.",
"minimum": 1
},

"P_MIN": {
"type": "number",
"title": "Desired minimum pressure to calculate, in GPa"
"title": "Desired minimum pressure to calculate, in GPa."
},
"DELTA_P": {
"type": "number",
Expand Down

0 comments on commit 7454eef

Please sign in to comment.