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

Issue #67: Refactor window calculations for generality #68

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

Mark2000
Copy link
Contributor

@Mark2000 Mark2000 commented Sep 20, 2023

Description

Closes #67

Refactors window calcs to be general while maintaining old ImagingSatellite API. Note: upcoming_opportunities is the one difference in the ImagingSatellite API.

Adds an upcoming downlink opportunity state. Can configure to include opening time or closing time.

Also addresses a small bug that happens in root finding where the root is found twice at nearly the same point.

How should this pull request be reviewed?

  • By commit
  • All changes at once

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Added tests for new code. Maintains coverage.

  • Unit tests (General Environment only) pytest --cov bsk_rl/envs/general_satellite_tasking --cov-report term-missing tests/unittest
  • Integrated tests (General Environment only) pytest --cov bsk_rl/envs/general_satellite_tasking --cov-report term-missing tests/integration

Test Configuration

  • Python: 3.10.11
  • Basilisk: 2.2.1b0
  • Platform: Mac 13.3

Checklist:

  • My code follows the style guidelines of this project (passes Black, ruff, and isort)
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Commit messages are atomic, are in the form Issue #XXX: Message and have a useful message
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@Mark2000 Mark2000 force-pushed the feature/67-downlink-opportunity branch 2 times, most recently from a649fd2 to 95b3715 Compare September 20, 2023 21:11
@Mark2000 Mark2000 force-pushed the feature/67-downlink-opportunity branch from a21f0b5 to 5bb7db4 Compare September 20, 2023 23:47
@Mark2000 Mark2000 marked this pull request as ready for review September 20, 2023 23:50
@Mark2000 Mark2000 requested a review from LorenzzoQM September 20, 2023 23:50
Copy link
Contributor

@LorenzzoQM LorenzzoQM left a comment

Choose a reason for hiding this comment

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

Everything looks good!

@Mark2000 Mark2000 merged commit c8942ac into develop Sep 21, 2023
@Mark2000 Mark2000 deleted the feature/67-downlink-opportunity branch September 21, 2023 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upcoming downlink opportunity observation
2 participants