Skip to content

Enhance AbsoluteDate and AbsoluteDateArray classes #9

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

vinay0000
Copy link
Contributor

  • __add__ operator for AbsoluteDate
  • Add __len__ , __getitem__, __eq__ methods to AbsoluteDateArray
  • Implement __repr__ for string representation.

…to use class method in state module. Refine comments for ICRF_EC in ReferenceFrame.
- Implement __repr__ for string representation.
- Add __len__ ,  __getitem__, __eq__ methods to AbsoluteDateArray
@vinay0000 vinay0000 self-assigned this Apr 25, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request enhances the AbsoluteDate and AbsoluteDateArray classes by adding arithmetic and representation operations and expanding functionality in associated state classes.

  • Added the add operator and repr for AbsoluteDate.
  • Implemented len, getitem, and eq (with repr) for AbsoluteDateArray.
  • Updated factory methods (from_dict) in state classes to classmethods.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/test_time.py Added tests for the new arithmetic and array operations in AbsoluteDate classes.
eosimutils/time.py Implemented add and repr for AbsoluteDate and added array methods to AbsoluteDateArray.
eosimutils/state.py Converted from_dict methods to class methods for improved inheritance support.
eosimutils/base.py Updated inline comments for clarity in reference frame naming.

Copy link
Collaborator

@ryanketzner ryanketzner left a comment

Choose a reason for hiding this comment

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

Need call to make format before merge.

Content all looks good.

…ctory and related tests. Other minor revisions,
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.

2 participants