From 0f7b93de735c4eb6abba1c709403dc89ba9c67df Mon Sep 17 00:00:00 2001 From: gianluv00 <gianluv00@mi.fu-berlin.de> Date: Tue, 9 Aug 2022 17:24:31 +0200 Subject: [PATCH] Changed type of world_size_cm from List[int] to List[float] --- src/robofish/io/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/robofish/io/file.py b/src/robofish/io/file.py index 5115ed8..86a580e 100644 --- a/src/robofish/io/file.py +++ b/src/robofish/io/file.py @@ -65,7 +65,7 @@ class File(h5py.File): path: Union[str, Path] = None, mode: str = "r", *, # PEP 3102 - world_size_cm: List[int] = None, + world_size_cm: List[float] = None, validate: bool = False, validate_when_saving: bool = True, strict_validate: bool = False, @@ -94,7 +94,7 @@ class File(h5py.File): 'w' Create file, truncate if exists 'x' Create file, fail if exists 'a' Read/write if exists, create otherwise - world_size_cm : [int, int] , optional + world_size_cm : [float, float] , optional side lengths [x, y] of the world in cm. rectangular world shape is assumed. validate: bool, default=False -- GitLab