Closed nneveu closed 4 years ago
The erfinv function, along with other scipy.special functions have been wrapped in distgen.tools so that the user inputs a pint quantity 'x' with dimenionless units and the underlying scipy function is called with x.magnitude:
@unit_registry.check('[]') def erfinv(x): return scipy.special.erfinv(x.magnitude)*unit_registry('dimensionless')
In this file:
distgen/distgen/dist.py
a 'dimensionless' tag is added to rns at some point (by pint?). This causes problems on linux machines (didn't notice it on MAC).On line 285:
This dimensionless tag becomes a issue that prevents scipy(?) from doing the erfinv calculation:
Forcing rns to be a numpy array allowed me to generate beams. Not sure if this is an acceptable solution: