Skip to content

Make pvlib an optional dependency #151

Description

@AdamRJensen

Currently, solposx has three dependencies:

All functionality depends on numpy. The timestamp handling requires pandas. pvlib is the package with the largest download footprint, and is not required for most functions.

I would like to make pvlib an optional package. My motivation is to make loading solposx faster, which is important for lightweight applications, such as interactive examples using marimo.

I imagine the process would be something like:

  • Step 1: add sind, cosd, tand, asind, and acosd to tools.py instead of importing from pvlib
  • Step 2: consider copying pvlib.spa.calculate_deltat to solposx (used by noaa and usno)
  • Step 3: add optional dependency warning to solposx.solarposition.pvlib

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions