Santiso-Group / despasito

DESPASITO: Determining Equilibrium State and Parametrization Application for SAFT, Intended for Thermodynamic Output
https://despasito.readthedocs.io
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Allow installation without numpy already installed #35

Closed JacksonBurns closed 2 days ago

JacksonBurns commented 1 week ago

Description

When installing despasito, the user must have numpy installed for the import to run. However, if the user does not have Cython installed, numpy will not be used anyway.

Todos

I propose moving the numpy import inside the same optional logic as Cython, and modifying the warning to be more explicit.

Questions

If you like this change, the README should also be updated to explain how numpy and Cython are optional for acceleration.

Status

Note

This PR is part of an ongoing JOSS review at https://github.com/openjournals/joss-reviews/issues/7365

JacksonBurns commented 2 days ago

Resolved in https://github.com/Santiso-Group/despasito/pull/40