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

Improve earthkit import system #100

Open
Oisin-M opened this issue Mar 24, 2025 · 0 comments
Open

Improve earthkit import system #100

Oisin-M opened this issue Mar 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Oisin-M
Copy link
Contributor

Oisin-M commented Mar 24, 2025

Is your feature request related to a problem? Please describe.

Inconsistent API depending on installation method

!pip install earthkit

import earthkit as ek
ek.data.from_source(...) #works
!pip install earthkit-data

import earthkit as ek
ek.data.from_source(...) #AttributeError

Describe the solution you'd like

This behaviour occurs because the earthkit/ folders in earthkit-data (and all other earthkit modules) don't have any __init__.py file. I was thinking potentially we could solve this by having the same __init__.py file in all the earthkit repos, which would dynamically try and load any available earthkit modules.

Describe alternatives you've considered

No response

Additional context

No response

Organisation

No response

@Oisin-M Oisin-M added the enhancement New feature or request label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant