Skip to content

Commit

Permalink
Solve header comment text bug in satfunc (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
berland authored May 21, 2021
1 parent 5fbea9a commit f26f672
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecl2df/satfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,9 @@ def _df2ecl_satfuncs_satnum(keyword, dframe):
col_headers = RENAMERS[keyword]["DATA"]
string = (
"-- "
+ dframe[col_headers].to_string(
float_format=" %g", header=True, index=False
)[3:]
+ dframe[col_headers]
.to_string(float_format=" %g", header=True, index=False)
.strip()
)
return string + "\n/\n"

Expand Down

0 comments on commit f26f672

Please sign in to comment.