Skip to content

[Suggestion] : Remove strict requirement on backends. #229

Closed
@ASKabalan

Description

@ASKabalan

Currently, we have to install pytorch to use the JAX backend of s2fft.

I think it would be a nice to be able to conditionally activate backends depending on the availability of the package

For example I user can use s2FFT using only numpy if he does not have JAX or pytorch
Otherwise he gets a runtime error instead of an import time error

Same for pyssht.
Don't know the best practice to do this, but a try catch around the import + global boolean should do the trick

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions