Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into geo_stitching
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrancat committed Jun 25, 2022
2 parents 7c56394 + 2b97711 commit 9012405
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 6 deletions.
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = compass
version = 0.1.0
version = attr: compass.__version__
description = A Package to Generate Coregistered Multi-temporal SAR SLC
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down Expand Up @@ -28,4 +28,3 @@ where = src
[options.entry_points]
console_scripts =
s1_cslc.py = compass.s1_cslc:main

2 changes: 2 additions & 0 deletions src/compass/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# get version info
from compass.version import release_version as __version__
4 changes: 4 additions & 0 deletions src/compass/s1_cslc.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env python

'''driver for CSLC workflow in radar/geo'''

from compass import s1_rdr2geo, s1_geo2rdr, s1_resample, s1_geocode_slc
from compass.utils.geo_runconfig import GeoRunConfig
from compass.utils.runconfig import RunConfig
Expand Down
5 changes: 4 additions & 1 deletion src/compass/s1_geo2rdr.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"""Wrapper for geo2rdr"""
#!/usr/bin/env python

'''wrapper for geo2rdr'''

from datetime import timedelta
import os
import time
Expand Down
4 changes: 4 additions & 0 deletions src/compass/s1_geocode_slc.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env python

'''wrapper for geocoded SLC'''

from datetime import timedelta
import os
import time
Expand Down
2 changes: 1 addition & 1 deletion src/compass/s1_rdr2geo.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

'''wrapper for rdr2geo'''

Expand Down
5 changes: 4 additions & 1 deletion src/compass/s1_resample.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"""Wrapper for resample burst"""
#!/usr/bin/env python

"""Wrapper for resample"""

from datetime import timedelta
import os
import time
Expand Down
2 changes: 1 addition & 1 deletion src/compass/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def check_file_path(file_path: str) -> None:
Path to file to be checked
"""
error_channel = journal.error('helpers.check_file_path')
if not os.path.isfile(file_path):
if not os.path.exists(file_path):
err_str = f'{file_path} not found'
error_channel.log(err_str)
raise FileNotFoundError(err_str)
Expand Down
16 changes: 16 additions & 0 deletions src/compass/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# release history

import collections


# release history
Tag = collections.namedtuple('Tag', 'version date')
release_history = (
Tag('0.1.1', '2022-06-08'),
Tag('0.1.0', '2022-06-07'),
)

# latest release version number and date
release_version = release_history[0].version
release_date = release_history[0].date

0 comments on commit 9012405

Please sign in to comment.