Skip to content

Commit

Permalink
Add missing f-specifier for f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Feb 13, 2025
1 parent ff14186 commit b583b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion res2df/pvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def df2res_rock(dframe: pd.DataFrame, comment: Optional[str] = None) -> str:
return "-- No data!"
string = "ROCK\n"
string += comment_formatter(comment)
string += "-- {'PRESSURE':^21} {'COMPRESSIBILITY':^21}\n"
string += f"-- {'PRESSURE':^21} {'COMPRESSIBILITY':^21}\n"
# Use everything if KEYWORD not in dframe..
subset = dframe if "KEYWORD" not in dframe else dframe[dframe["KEYWORD"] == "ROCK"]
if "PVTNUM" not in subset:
Expand Down

0 comments on commit b583b8c

Please sign in to comment.