diff --git a/flepimop/gempyor_pkg/src/gempyor/seeding.py b/flepimop/gempyor_pkg/src/gempyor/seeding.py index e86f598c9..c341ed93c 100644 --- a/flepimop/gempyor_pkg/src/gempyor/seeding.py +++ b/flepimop/gempyor_pkg/src/gempyor/seeding.py @@ -134,7 +134,7 @@ def get_from_config(self, sim_id: int, modinf) -> nb.typed.Dict: seeding = pd.DataFrame(columns=["date", "subpop"]) return _DataFrame2NumbaDict(df=seeding, amounts=[], modinf=modinf) else: - raise ValueError(f"Unknown seeding method [received: '{method}'].") + raise ValueError(f"Unknown seeding method given, '{method}'.") # Sorting by date is very important here for the seeding format necessary !!!! # print(seeding.shape) @@ -159,7 +159,7 @@ def get_from_config(self, sim_id: int, modinf) -> nb.typed.Dict: elif method == "FolderDraw" or method == "FromFile": amounts = seeding["amount"] else: - raise ValueError(f"Unknown seeding method [received: '{method}'].") + raise ValueError(f"Unknown seeding method given, '{method}'.") return _DataFrame2NumbaDict(df=seeding, amounts=amounts, modinf=modinf) diff --git a/flepimop/gempyor_pkg/src/gempyor/seir.py b/flepimop/gempyor_pkg/src/gempyor/seir.py index da62c9101..7bbf6995c 100644 --- a/flepimop/gempyor_pkg/src/gempyor/seir.py +++ b/flepimop/gempyor_pkg/src/gempyor/seir.py @@ -32,7 +32,7 @@ def build_step_source_arg( integration_method = "rk4.jit" if integration_method not in ["rk4.jit", "legacy"]: raise ValueError( - f"Unknown integration method [received: '{integration_method}']." + f"Unknown integration method given, '{integration_method}'." ) if "dt" in modinf.seir_config["integration"].keys(): dt = float( @@ -188,7 +188,7 @@ def steps_SEIR( seir_sim = steps_experimental.rk4_aot(**fnct_args) else: raise ValueError( - f"Unknown integration method [received '{integration_method}']." + f"Unknown integration method given, '{integration_method}'." ) # We return an xarray instead of a ndarray now