dlilien / ImpDAR

An impulse radar processor
GNU General Public License v3.0
27 stars 19 forks source link

ApRES; Impulse load files; Herc Dome GPS #24

Closed benhills closed 2 years ago

benhills commented 2 years ago

Cherry picking commits from the quadpol repository for some of the updated ApRES functionality. Typo in load_apres() where the datetime backward-compatibility addition was +377 days instead of +366. **Note: This could cause some issues for folks if they process one acquisition before and one after this PR and then compare for vertical velocities.

Some small changes to load files including a new load type for TEK data (from Twit Conway and Ginny Catania).

Include some functionality for interpolation through spotty GPS data at Hercules Dome.

benhills commented 2 years ago

I will deal with the python issues that are showing up, sorry about that.

codecov[bot] commented 2 years ago

Codecov Report

Merging #24 (b32f1be) into devel (7bca64c) will increase coverage by 17.32%. The diff coverage is 73.58%.

@@             Coverage Diff             @@
##            devel      #24       +/-   ##
===========================================
+ Coverage   60.70%   78.02%   +17.32%     
===========================================
  Files          49       50        +1     
  Lines        4993     5111      +118     
===========================================
+ Hits         3031     3988      +957     
+ Misses       1962     1123      -839     
Impacted Files Coverage Δ
impdar/lib/load/load_stomat.py 13.04% <0.00%> (-0.92%) :arrow_down:
impdar/lib/gpslib.py 79.24% <53.70%> (+12.00%) :arrow_up:
impdar/lib/load/__init__.py 52.10% <75.00%> (+0.81%) :arrow_up:
impdar/lib/load/load_gssi.py 93.07% <87.50%> (-1.76%) :arrow_down:
impdar/lib/load/load_tek.py 98.30% <98.30%> (ø)
impdar/bin/impdarexec.py 95.31% <100.00%> (+0.07%) :arrow_up:
impdar/lib/RadarData/_RadarDataProcessing.py 98.84% <100.00%> (+0.02%) :arrow_up:
impdar/lib/RadarData/_RadarDataSaving.py 86.44% <100.00%> (+29.66%) :arrow_up:
impdar/lib/load/load_olaf.py 80.00% <0.00%> (-0.98%) :arrow_down:
... and 14 more

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 7bca64c...b32f1be. Read the comment docs.

benhills commented 2 years ago

Python 3.8 and 3.9 seem to have an issue with the scipy minimize function as it is written. I can't get it to fail on my local tests though, even with 3.9.

dlilien commented 2 years ago

I am not sure if I can write directly to this, but I think this is a scipy bug. Try adding ',<1.8' in the scipy line of requirements.txt and see if that fixes it.

benhills commented 2 years ago

That seems to have helped. There is still one failing but it doesn't really give any info on why this particular check failed.

I am also seeing that load_tek does not get covered by any tests, so let me write a test for that before this gets merged.

benhills commented 2 years ago

The remaining fails are all to do with the windows build and seem to be a broader python issue. I am not sure what the etiquette is here. This PR does not need to get merged with any urgency, I just wanted to push a few things through before I got so far behind again.