Closed aurghs closed 3 years ago
Another issue I see with tests. At the moment the individual openers are not tested independently from the logic of the main open_dataset
.
Testing both the opener function and the xr.open_dataset(..., group=...)
is a bit redundant and would need a refactor of the tests and possibly the use parametrize
, but I think it is needed.
It can go in a different PR though.
Merging #13 (96f268d) into main (796f762) will decrease coverage by
2.10%
. The diff coverage is89.83%
.
@@ Coverage Diff @@
## main #13 +/- ##
==========================================
- Coverage 93.90% 91.79% -2.11%
==========================================
Files 6 6
Lines 279 378 +99
==========================================
+ Hits 262 347 +85
- Misses 17 31 +14
Impacted Files | Coverage Δ | |
---|---|---|
xarray_sentinel/esa_safe.py | 86.95% <85.00%> (-1.22%) |
:arrow_down: |
xarray_sentinel/sentinel1.py | 92.98% <91.17%> (-2.72%) |
:arrow_down: |
tests/test_xarray.py | 100.00% <100.00%> (ø) |
|
tests/test_esa_safe.py | 100.00% <0.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 796f762...96f268d. Read the comment docs.
Draft for open
open_dataset
inferface.open_dataset
takes in input both themanifest.safe
and the directory.Open without a group:
Open with group = 'IW1':
Open with group = 'IW1/orbit':
TBC:
group=None
:[IW1, IW2...]
[IW1/orbit, IW1/attitude, IW1/gcp, IW2/orbit...]
[IW1, IW1/orbit, IW1/attitude, IW1/gcp, IW2, IW2/orbit...]
group=None
group='IW1'