Skip to content

Commit 45f870b

Browse files
authored
Merge pull request #51 from ESA-PhiLab/develop
Develop
2 parents a0be97e + c7d8688 commit 45f870b

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-20.04
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install setuptools wheel twine
18+
- name: Build and publish
19+
env:
20+
TWINE_USERNAME: __token__
21+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
22+
run: |
23+
python setup.py sdist bdist_wheel
24+
twine upload dist/*

ost/generic/ts_ls_mask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ def mt_layover(list_of_ls):
5252

5353
df2 = gpd.read_file(file)
5454
df2 = df2[~(df2.geometry.is_empty | df2.geometry.isna())]
55-
geom2 = df2.geometry.buffer(0).unary_union
56-
geom = unary_union([geom, geom2])
55+
if not df2.empty:
56+
geom2 = df2.geometry.buffer(0).unary_union
57+
geom = unary_union([geom, geom2])
5758

5859
if y > 0:
5960
# make geometry valid in case it isn't

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
name='opensartoolkit',
1212
packages=find_packages(),
1313
include_package_data=True,
14-
version='0.12.4',
14+
version='0.12.5',
1515
description='High-level functionality for the inventory, download '
1616
'and pre-processing of Sentinel-1 data',
1717
install_requires=[

0 commit comments

Comments
 (0)