You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The column width could either be set to the max variable name length (in which case the code would need to loop over the variables to find the maximum length followed by adjustment to ln687 in that same file) or the variable names would need to be truncated. I would suggest that truncation may be the most straightforward of solutions. It has the potential to be confusing if the variable names differ only after character 18, but having a fixed width table printed is preferable in my opinion.
If a FMU has a variable with a long name, the columns output in the variables block of the
dump
command are not correctly justified.To reproduce:
the variables block in the returned output (variable names changed for privacy reasons):
The issue appears to be on ln698 of util.py:
The column width could either be set to the max variable name length (in which case the code would need to loop over the variables to find the maximum length followed by adjustment to ln687 in that same file) or the variable names would need to be truncated. I would suggest that truncation may be the most straightforward of solutions. It has the potential to be confusing if the variable names differ only after character 18, but having a fixed width table printed is preferable in my opinion.
The line could be changed to this:
The output with that change:
The text was updated successfully, but these errors were encountered: