Skip to content

Improve earthkit import system #100

@Oisin-M

Description

@Oisin-M

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions