From 7454eefdf1dc3b9c1c1be459ad6d781a66b60f59 Mon Sep 17 00:00:00 2001 From: Chazeon Date: Wed, 14 Apr 2021 14:50:49 -0400 Subject: [PATCH] Improve live help --- cij/cli/cij.py | 1 + cij/cli/extract.py | 2 +- cij/data/schema/config.schema.json | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cij/cli/cij.py b/cij/cli/cij.py index a5ccf8c..8da208c 100644 --- a/cij/cli/cij.py +++ b/cij/cli/cij.py @@ -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() \ No newline at end of file diff --git a/cij/cli/extract.py b/cij/cli/extract.py index 5e4959d..cf6d36c 100644 --- a/cij/cli/extract.py +++ b/cij/cli/extract.py @@ -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.") diff --git a/cij/data/schema/config.schema.json b/cij/data/schema/config.schema.json index acafb61..02c453c 100644 --- a/cij/data/schema/config.schema.json +++ b/cij/data/schema/config.schema.json @@ -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",