Skip to content

Conversation

jbellister-slac
Copy link
Collaborator

Context

A discussion from quite a while ago in #363 suggested removing scipy from PyDM's project requirements. The only place in which it is used in the main code base is in units.py and the associated test cases, and only to retrieve a few constants.

In order to retain the unit conversion functionality in the line edit widget, this PR just moves those constants into our units.py file and then removes all references to scipy. scipy is used in the tutorial as well, for that I just added an instruction to the tutorial documentation to install it.

We could also just use a different lightweight units package. But as long as the code in units.py has been working fine, and hasn't changed in 7 years, I figure this is the most straightforward way to remove the scipy requirement without needing to add a different requirement for our project. And if someone wants to extend the unit-related functionality later they can revisit this with a different package.

Testing

test_units.py still passes. The unit conversion menu in line edit widgets still works.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove pydm.utilities.units functionality and scipy dependency.

2 participants