Skip to content

Commit 9f840ea

Browse files
space removed
Signed-off-by: João Lucas de Sousa Almeida <[email protected]>
1 parent 70f3707 commit 9f840ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

terratorch/datamodules/generic_scalar_label_data_module.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ def wrap_in_compose_is_list(transform_list):
2727
# set check shapes to false because of the multitemporal case
2828
return A.Compose(transform_list, is_check_shapes=False) if isinstance(transform_list, Iterable) else transform_list
2929

30-
def load_from_file_or_attribute(value:list[float] | str):
30+
31+
def load_from_file_or_attribute(value: list[float]|str):
3132

3233
if isinstance(value, list):
3334
return value
34-
elif isinstance(value, str): # It can be the path for a file
35+
elif isinstance(value, str): # It can be the path for a file
3536
if os.path.isfile(value):
3637
try:
3738
content = np.genfromtxt(value).tolist()
@@ -40,7 +41,7 @@ def load_from_file_or_attribute(value:list[float] | str):
4041
else:
4142
raise Exception(f"The input {value} does not exist or is not a file.")
4243

43-
return content
44+
return content
4445

4546

4647
class Normalize(Callable):

0 commit comments

Comments
 (0)