-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
…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
…merging with the main branch
There was a problem hiding this 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. |
There was a problem hiding this 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,
__add__
operator for AbsoluteDate__len__
,__getitem__
,__eq__
methods to AbsoluteDateArray__repr__
for string representation.