Skip to content

Commit

Permalink
Merge branch 'develop' into docs/m2r-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Matic Lubej committed Jun 24, 2020
2 parents 1e02725 + 5fea2cb commit 95ad6de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/land-cover-map/SI_LULC_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,9 @@
" data_source=DataSource.SENTINEL2_L1C,\n",
" additional_data=[(FeatureType.MASK, 'dataMask', 'IS_DATA'),\n",
" (FeatureType.MASK, 'CLM'),\n",
" (FeatureType.DATA, 'CLP')])\n",
" (FeatureType.DATA, 'CLP')],\n",
" max_threads=5\n",
")\n",
"\n",
"\n",
"# TASKS FOR CALCULATING NEW FEATURES\n",
Expand Down Expand Up @@ -757,7 +759,7 @@
" })\n",
" \n",
"executor = EOExecutor(workflow, execution_args, save_logs=True)\n",
"executor.run(workers=12, multiprocess=False)\n",
"executor.run(workers=5, multiprocess=True)\n",
"\n",
"executor.make_report()"
]
Expand Down
6 changes: 4 additions & 2 deletions io/eolearn/io/processing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ def _create_sh_request(self, date_from, date_to, bbox, size_x, size_y):
responses=responses,
bbox=bbox,
size=(size_x, size_y),
data_folder=self.cache_folder
data_folder=self.cache_folder,
config=self.config
)

def _extract_data(self, eopatch, images, shape):
Expand Down Expand Up @@ -459,7 +460,8 @@ def _build_requests(self, bbox, size_x, size_y, timestamp, time_interval):
responses=[SentinelHubRequest.output_response('default', MimeType.TIFF)],
bbox=bbox,
size=(size_x, size_y),
data_folder=self.cache_folder
data_folder=self.cache_folder,
config=self.config
)

return [request]
Expand Down

0 comments on commit 95ad6de

Please sign in to comment.