Commit a1904e5e authored by Niklas Bohn's avatar Niklas Bohn
Browse files

Added compatibility of empirical line function with singleprocessing on Windows OS.


Signed-off-by: Niklas Bohn's avatarnbohn <nbohn@gfz-potsdam.de>
parent f0efa57d
......@@ -71,7 +71,7 @@ test_sicor_s2:
- export GDAL_DATA=/root/miniconda3/envs/sicor_env/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- pip install pycodestyle --upgrade
- mamba install -c conda-forge pygrib cachetools gdown scikit-learn<=0.21.3
- mamba install -c conda-forge pygrib cachetools gdown scikit-learn=0.21.3
- make lint
- make nosetests_s2 # sentinel-2 tests are called here
- pip install sphinx_rtd_theme # Read-the-docs theme for SPHINX documentation
......
......@@ -143,7 +143,7 @@ def empirical_line_solution(X, rdn_subset, data_l2a_seg, rows, cols, bands, segs
global _globs
_globs = dict(tree=tree, locs=locations_subset, k=15, rdn=rdn_subset, data=data_l2a_seg, bands=bands)
if platform.system() == "Windows" or processes == 1:
if processes == 1:
initializer(globals(), _globs)
results = []
for ii in tqdm(unique_labels, disable=disable_progressbars):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment