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 files via upload #5

Closed
wants to merge 2 commits into from
Closed

Add files via upload #5

wants to merge 2 commits into from

Conversation

szilac
Copy link
Collaborator

@szilac szilac commented Jul 2, 2024

Solution Description

Added the horizons module with a test targets file. Renamed the dataclass elements with the units and switched to Time objects / numpy arrays.

Added the horizons module with a test targets file.
Copy link

github-actions bot commented Jul 2, 2024

Before [0de6be8] After [3f3bcc9] Ratio Benchmark (Parameter)
3.33±0.5s 3.43±1s 1.03 benchmarks.time_computation
4.13k 3.62k 0.88 benchmarks.mem_list

Click here to view all benchmarks.

Little changes based on ruff reccomendations.
@dataclass
class EphemerisData:
datetime_jd: Time = field(default_factory=lambda: Time([], format="jd"))
datetime_iso: Time = field(default_factory=lambda: Time([], format="iso"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Only one time attribute is needed. The format can be easily addressed via the Time object's attributes, e.g., EphemerisData.time.jd, EphemerisData.time.mjd, EphemerisData.time.iso, EphemerisData.time.isot.

@mschwamb
Copy link
Member

mschwamb commented Jul 9, 2024

This PR can be closed I think

@mkelley
Copy link
Collaborator

mkelley commented Jul 9, 2024

@szilac Should this PR be closed in favor of #9?

@szilac szilac closed this Jul 12, 2024
@szilac szilac deleted the ephem_interfaces branch July 12, 2024 09:57
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.

3 participants