Skip to content

Commit

Permalink
fix f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jnnsbrr committed Nov 27, 2024
1 parent 528c58d commit 1734979
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'pycoupler: dynamic model coupling of LPJmL'
version: 1.0.7
version: 1.0.8
date-released: '2024-07-04'
abstract: An LPJmL-Python interface for operating LPJmL in a Python environment
and coupling it with Python models, programmes or simple programming scripts.
Expand Down
10 changes: 5 additions & 5 deletions pycoupler/coupler.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def read_int(channel):
# write_bytestring_to_file(inttup[0], os.path.join(os.path.dirname(__file__), '../tests/data/test_receive.txt')) # noqa
inttup = [
int(
read_lines_from_file(f"{os.environ["TEST_PATH"]}/data/test_receive.txt")
read_lines_from_file(f"{os.environ['TEST_PATH']}/data/test_receive.txt")
)
] # noqa
else:
Expand All @@ -104,7 +104,7 @@ def read_short(channel):
# write_bytestring_to_file(inttup[0], os.path.join(os.path.dirname(__file__), '../tests/data/test_receive.txt')) # noqa
inttup = [
int(
read_lines_from_file(f"{os.environ["TEST_PATH"]}/data/test_receive.txt")
read_lines_from_file(f"{os.environ['TEST_PATH']}/data/test_receive.txt")
)
] # noqa
else:
Expand All @@ -124,7 +124,7 @@ def read_float(channel):
# write_bytestring_to_file(floattup[0], os.path.join(os.path.dirname(__file__), '../tests/data/test_receive.txt')) # noqa
floattup = [
float(
read_lines_from_file(f"{os.environ["TEST_PATH"]}/data/test_receive.txt")
read_lines_from_file(f"{os.environ['TEST_PATH']}/data/test_receive.txt")
)
] # noqa
else:
Expand Down Expand Up @@ -270,9 +270,9 @@ def __init__(self, config_file, version=3, host="", port=2224):

if hasattr(sys, "_called_from_test"):
self.__config.set_outputpath(
f"{os.environ["TEST_PATH"]}/data/output/coupled_test"
f"{os.environ['TEST_PATH']}/data/output/coupled_test"
)
self.__config.sim_path = os.path.join(f"{os.environ["TEST_PATH"]}/data/")
self.__config.sim_path = os.path.join(f"{os.environ['TEST_PATH']}/data/")

# initiate coupling, get number of cells, inputs and outputs and verify
self.__init_coupling()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pycoupler"
version = "1.0.7"
version = "1.0.8"
description = "dynamic model coupling of LPJmL"
readme = "README.md"
license = {file = "LICENSE.md"}
Expand Down

0 comments on commit 1734979

Please sign in to comment.