Skip to content

Commit

Permalink
Merge pull request #51 from ESA-PhiLab/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
BuddyVolly authored Sep 24, 2021
2 parents a0be97e + c7d8688 commit 45f870b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
5 changes: 3 additions & 2 deletions ost/generic/ts_ls_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ def mt_layover(list_of_ls):

df2 = gpd.read_file(file)
df2 = df2[~(df2.geometry.is_empty | df2.geometry.isna())]
geom2 = df2.geometry.buffer(0).unary_union
geom = unary_union([geom, geom2])
if not df2.empty:
geom2 = df2.geometry.buffer(0).unary_union
geom = unary_union([geom, geom2])

if y > 0:
# make geometry valid in case it isn't
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
name='opensartoolkit',
packages=find_packages(),
include_package_data=True,
version='0.12.4',
version='0.12.5',
description='High-level functionality for the inventory, download '
'and pre-processing of Sentinel-1 data',
install_requires=[
Expand Down

0 comments on commit 45f870b

Please sign in to comment.