Skip to content

Commit 6342fea

Browse files
authored
Merge pull request #16 from sentinel-hub/develop
Removed tests from package
2 parents 7130a4a + f1fd74d commit 6342fea

File tree

7 files changed

+3
-101
lines changed

7 files changed

+3
-101
lines changed

README.md

-18
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ check [LightGBM installation guide](https://lightgbm.readthedocs.io/en/latest/In
3232
Before installing `s2cloudless` on **Windows** it is recommended to install package `shapely` from
3333
[Unofficial Windows wheels repository](https://www.lfd.uci.edu/~gohlke/pythonlibs/)
3434

35-
3635
## Input: Sentinel-2 scenes
3736

3837
The input to cloud detector are Sentinel-2 images. In particular, the cloud detector requires the following 10
@@ -42,23 +41,6 @@ reflectance value in the following way: `B_i/10000`.
4241
You don't need to worry about any of this, if you're doing classification of scenes obtained using Sentinel Hub's
4342
WMS or WCS services (i.e. using ours Python library [sentinelhub-py](https://github.com/sentinel-hub/sentinelhub-py)).
4443

45-
## Test
46-
47-
Please test the cloud detector after the installation by performing a classification on a test scene provided with
48-
this package. To execute it do the following:
49-
50-
```Python
51-
>>> import s2cloudless
52-
>>> s2cloudless.test_sentinelhub_cloud_detector()
53-
```
54-
55-
In case your installation is fine and cloud detector works properly you should get the following output:
56-
57-
```
58-
INFO:s2cloudless.test_cloud_detector:Test OK.
59-
Cloud probabilities and cloud masks match templates.
60-
```
61-
6244
## Examples
6345

6446
Jupyter notebook on how to use the cloud detector to produce cloud mask or cloud probability map

requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@ numpy>=1.13.3
22
scipy>=0.19.1
33
scikit-learn>=0.19.0
44
scikit-image>=0.13.0
5-
matplotlib>=2.1.0; python_version < '3.7'
6-
matplotlib>=3.0.2; python_version >= '3.7'
75
lightgbm>=2.0.11
86
sentinelhub>=2.4.6

s2cloudless/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from .S2PixelCloudDetector import S2PixelCloudDetector, CloudMaskRequest, MODEL_EVALSCRIPT, S2_BANDS_EVALSCRIPT
66
from .PixelClassifier import PixelClassifier
7-
from .test_cloud_detector import test_sentinelhub_cloud_detector
87

98

10-
__version__ = '1.2.2'
9+
__version__ = '1.3.0'

s2cloudless/test_cloud_detector.py

-74
This file was deleted.

setup.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ def parse_requirements(file):
3434
packages=find_packages(),
3535
package_dir={'': '.'},
3636
include_package_data=True,
37-
package_data={'s2cloudless': ['models/pixel_s2_cloud_detector_lightGBM_v0.1.joblib.dat',
38-
'TestInputs/input_arrays.npz']
39-
},
37+
package_data={'s2cloudless': ['models/pixel_s2_cloud_detector_lightGBM_v0.1.joblib.dat']},
4038
install_requires=parse_requirements('requirements.txt'),
4139
extras_require={'DEV': parse_requirements('requirements-dev.txt')},
4240
zip_safe=False,
File renamed without changes.

tests/test_all.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
class TestS2Cloudless(TestSentinelHub):
88

9-
INPUT_DATA_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 's2cloudless',
10-
'TestInputs', 'input_arrays.npz')
9+
INPUT_DATA_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'TestInputs', 'input_arrays.npz')
1110

1211

1312
if __name__ == '__main__':

0 commit comments

Comments
 (0)