Skip to content

Commit 3b85aa3

Browse files
valgurscivision
authored andcommitted
install and use unlzw3 by default
1 parent 82b39dd commit 3b85aa3

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ install_requires =
3232
numpy
3333
xarray>=0.11
3434
hatanaka
35+
unlzw3
3536
package_dir=
3637
=src
3738

@@ -64,5 +65,4 @@ plot =
6465
cartopy
6566
io =
6667
netcdf4
67-
unlzw3
6868
psutil

src/georinex/rio.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@
1212
from hatanaka import crx2rnx
1313

1414
try:
15-
from unlzw3 import unlzw
15+
# The C-based unlzw lib is more efficient but also more difficult to install
16+
from unlzw import unlzw
1617
except ImportError:
17-
try:
18-
from unlzw import unlzw
19-
except ImportError:
20-
unlzw = None
21-
22-
from .hatanaka import opencrx
18+
from unlzw3 import unlzw
2319

2420

2521
@contextmanager

0 commit comments

Comments
 (0)