Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug getting local tlefiles #129

Merged
merged 14 commits into from
Jul 6, 2023
Merged

Conversation

adybbroe
Copy link
Contributor

@adybbroe adybbroe commented Jun 21, 2023

This solves a bug introduced when revising the TLES env variable recently. See #113 . There was a test for this, but it asserted the wrong thing, so test and code was wrong.

The error arise when specifying a local directory of tle-files via the TLES environment variable. The _get_uris_and_open_func function wrongly returned the directory path and not the full path of the latest TLE file in that directory.

  • Closes #xxxx
  • Tests added
  • Tests passed
  • Passes flake8 pyorbital
  • Fully documented

Adam.Dybbroe added 2 commits June 21, 2023 16:51
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
@adybbroe adybbroe self-assigned this Jun 21, 2023
@adybbroe adybbroe added the bug label Jun 21, 2023
@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Merging #129 (806ae12) into main (9eadfef) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #129      +/-   ##
==========================================
+ Coverage   87.51%   87.55%   +0.03%     
==========================================
  Files          15       15              
  Lines        2211     2218       +7     
==========================================
+ Hits         1935     1942       +7     
  Misses        276      276              
Flag Coverage Δ
unittests 87.55% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pyorbital/orbital.py 86.97% <100.00%> (ø)
pyorbital/tests/test_aiaa.py 100.00% <100.00%> (ø)
pyorbital/tests/test_tlefile.py 99.75% <100.00%> (+<0.01%) ⬆️
pyorbital/tlefile.py 93.13% <100.00%> (+0.01%) ⬆️

Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but tests are failing?

Adam.Dybbroe added 2 commits July 5, 2023 15:30
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
pyorbital/orbital.py Outdated Show resolved Hide resolved
adybbroe and others added 5 commits July 6, 2023 15:33
Co-authored-by: David Hoese <david.hoese@ssec.wisc.edu>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
…ed for Satpy

Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
.github/workflows/ci.yaml Outdated Show resolved Hide resolved
.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@djhoese djhoese requested a review from mraspaud July 6, 2023 14:32
Copy link
Member

@djhoese djhoese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI should be working now. @mraspaud one last review?

@mraspaud
Copy link
Member

mraspaud commented Jul 6, 2023

looking at it now

Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one speed up suggestion

pyorbital/tests/test_tlefile.py Show resolved Hide resolved
Adam.Dybbroe added 2 commits July 6, 2023 18:02
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
@adybbroe adybbroe merged commit 0cf8323 into pytroll:main Jul 6, 2023
@pnuu pnuu mentioned this pull request Jan 31, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants