From 1b79de8e61d32a8b2ce39d13dcf8ab69d3bcc226 Mon Sep 17 00:00:00 2001 From: Nils Lehmann <35272119+nilsleh@users.noreply.github.com> Date: Thu, 31 Mar 2022 18:51:47 +0200 Subject: [PATCH] remove random (#491) --- tests/data/agb_live_woody_density/data.py | 2 -- tests/data/astergdem/data.py | 2 -- tests/data/dfc2022/data.py | 2 -- tests/data/esri2020/data.py | 2 -- tests/data/eudem/data.py | 2 -- tests/data/globbiomass/data.py | 2 -- tests/data/openbuildings/data.py | 5 ----- tests/data/sentinel2/data.py | 2 -- 8 files changed, 19 deletions(-) diff --git a/tests/data/agb_live_woody_density/data.py b/tests/data/agb_live_woody_density/data.py index 54ebba3e92c..e8962af37b0 100644 --- a/tests/data/agb_live_woody_density/data.py +++ b/tests/data/agb_live_woody_density/data.py @@ -5,7 +5,6 @@ import json import os -import random import numpy as np import rasterio @@ -13,7 +12,6 @@ SIZE = 32 np.random.seed(0) -random.seed(0) base_file = { diff --git a/tests/data/astergdem/data.py b/tests/data/astergdem/data.py index 8c1685e0706..2789f87ccc6 100644 --- a/tests/data/astergdem/data.py +++ b/tests/data/astergdem/data.py @@ -3,14 +3,12 @@ import hashlib import os -import random import zipfile import numpy as np import rasterio np.random.seed(0) -random.seed(0) SIZE = 64 diff --git a/tests/data/dfc2022/data.py b/tests/data/dfc2022/data.py index 60b0b3d7a62..3f203944c1c 100644 --- a/tests/data/dfc2022/data.py +++ b/tests/data/dfc2022/data.py @@ -5,7 +5,6 @@ import hashlib import os -import random import shutil import numpy as np @@ -16,7 +15,6 @@ SIZE = 32 np.random.seed(0) -random.seed(0) train_set = [ diff --git a/tests/data/esri2020/data.py b/tests/data/esri2020/data.py index 9c3b110ad2d..959df863ed8 100644 --- a/tests/data/esri2020/data.py +++ b/tests/data/esri2020/data.py @@ -5,14 +5,12 @@ import hashlib import os -import random import shutil import numpy as np import rasterio np.random.seed(0) -random.seed(0) SIZE = 64 diff --git a/tests/data/eudem/data.py b/tests/data/eudem/data.py index fb2be59110e..0beaee9e475 100644 --- a/tests/data/eudem/data.py +++ b/tests/data/eudem/data.py @@ -3,14 +3,12 @@ import hashlib import os -import random import zipfile import numpy as np import rasterio np.random.seed(0) -random.seed(0) SIZE = 64 diff --git a/tests/data/globbiomass/data.py b/tests/data/globbiomass/data.py index d0b14ede89b..0e7519ce0c8 100644 --- a/tests/data/globbiomass/data.py +++ b/tests/data/globbiomass/data.py @@ -5,14 +5,12 @@ import hashlib import os -import random import zipfile import numpy as np import rasterio np.random.seed(0) -random.seed(0) SIZE = 64 diff --git a/tests/data/openbuildings/data.py b/tests/data/openbuildings/data.py index 966429013ba..3e363cf611c 100644 --- a/tests/data/openbuildings/data.py +++ b/tests/data/openbuildings/data.py @@ -8,17 +8,12 @@ import hashlib import json import os -import random import shutil -import numpy as np from shapely.geometry import Polygon SIZE = 0.05 -np.random.seed(0) -random.seed(0) - def create_meta_data_file(zipfilename): meta_data = { diff --git a/tests/data/sentinel2/data.py b/tests/data/sentinel2/data.py index de7fb2f687e..c602e39aa17 100644 --- a/tests/data/sentinel2/data.py +++ b/tests/data/sentinel2/data.py @@ -4,7 +4,6 @@ # Licensed under the MIT License. import os -import random import numpy as np import rasterio @@ -12,7 +11,6 @@ SIZE = 32 np.random.seed(0) -random.seed(0) filenames = [ "T41XNE_20200829T083611_B01_60m.tif",