Skip to content

Commit

Permalink
python 3.12 f-string style
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 28, 2024
1 parent c55112f commit a29d937
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/georinex/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def check_ram(memneed: int, fn: T.TextIO | Path):

if memneed > 0.5 * mem.available: # because of array copy Numpy => Xarray
errmsg = (
f"needs {memneed/1e9} GBytes RAM, but only {mem.available/1e9} Gbytes available \n"
f"needs {memneed / 1e9} GBytes RAM, but only {mem.available / 1e9} Gbytes available \n"
"try fast=False to reduce RAM usage, raise a GitHub Issue to let us help"
)
if isinstance(fn, Path):
Expand Down
2 changes: 1 addition & 1 deletion src/georinex/rio.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def opener(fn: T.TextIO | Path, header: bool = False) -> T.Iterator[T.TextIO]:

finf = fn.stat()
if finf.st_size > 100e6:
logging.info(f"opening {finf.st_size/1e6} MByte {fn.name}")
logging.info(f"opening {finf.st_size / 1e6} MByte {fn.name}")

# %% get magic number
"""https://en.wikipedia.org/wiki/List_of_file_signatures"""
Expand Down

0 comments on commit a29d937

Please sign in to comment.