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

Add a test for runing from start to finish #86

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

mraspaud
Copy link
Member

@mraspaud mraspaud commented Apr 3, 2024

This PR fixes many small things that were outdated.

  • Tests added

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 96.77419% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 55.71%. Comparing base (12afc09) to head (8cb255a).
Report is 4 commits behind head on main.

Files Patch % Lines
trollsched/graph.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #86       +/-   ##
===========================================
+ Coverage   38.85%   55.71%   +16.85%     
===========================================
  Files          15       15               
  Lines        2082     2100       +18     
===========================================
+ Hits          809     1170      +361     
+ Misses       1273      930      -343     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -96,7 +95,7 @@ def single_station(self, sched, start_time, tle_file):

allpasses = self.get_next_passes(opts, sched, start_time, tle_file)

area_boundary = AreaDefBoundary(self.area, frequency=500)
area_boundary = self.area.boundary(8)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a test for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

well, I changed this because of a deprecation warning from pyresample, and the test I wrote (that check that generating a schedule works) passes, which wouldn't if this call was wrong...

Copy link
Contributor

@adybbroe adybbroe 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 to me, but just one small question as I was not familiar with that change concerning getting the boundary?

@adybbroe adybbroe merged commit 0a9c19a into pytroll:main Apr 28, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants