-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from umr-lops/fix_versioning
add example for S3 protocol in readme and fix version of the lib
- Loading branch information
Showing
3 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
from importlib.metadata import version | ||
from .metadata import Sentinel1Reader | ||
|
||
import traceback | ||
#import safe_s1 | ||
from safe_s1.reader import Sentinel1Reader | ||
try: | ||
__version__ = version("safe_s1") | ||
from importlib import metadata | ||
except ImportError: # for Python<3.8 | ||
import importlib_metadata as metadata | ||
try: | ||
__version__ = metadata.version("xarray-safe-s1") | ||
except Exception: | ||
print('trace',traceback.format_exc()) | ||
__version__ = "999" |
File renamed without changes.