Skip to content

Commit

Permalink
more informative note in parameter table:
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Aug 8, 2024
1 parent 8eccd44 commit 02f1246
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ogcore/parameter_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def param_table(p, table_format="tex", path=None):
value = getattr(p, k)
if hasattr(value, "__len__") & ~isinstance(value, str):
if value.ndim > 1:
report = "See elsewhere"
report = "Too large to report here, see default parameters JSON"
else:
report = (
"["
Expand Down
4 changes: 2 additions & 2 deletions ogcore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ def save_return_table(table_df, output_type, path, precision=2):
table_df.to_csv(path_or_buf=path, index=False, na_rep="")
elif output_type == "json":
table_df.to_json(path_or_buf=path, double_precision=precision)
elif output_type == "md":
table_df.to_markdown(path_or_buf=path, double_precision=precision)
# elif output_type == "md": # TODO: figure out how to save md to disk
# table_df.to_markdown(path_or_buf=path, double_precision=precision)
elif output_type == "excel":
table_df.to_excel(excel_writer=path, index=False, na_rep="")
else:
Expand Down

0 comments on commit 02f1246

Please sign in to comment.