bgrimstad / splinter

Library for multivariate function approximation with splines (B-spline, P-spline, and more) with interfaces to C++, C, Python and MATLAB
Mozilla Public License 2.0
418 stars 115 forks source link

What is the structure of the PyPI splinter package? #122

Open frederikfaye opened 5 years ago

frederikfaye commented 5 years ago

I'm on Ubuntu 16.04 LTS on a 64-bit architecture. It was my understanding that I should be able to install SPLINTER through pip install splinterpy (which installs splinterpy 4.0.4 in my conda env, as expected).

I can then import splinterpy in a python environment (but not import splinter), but the splinterpy module does not have the expected content. For instance,

import splinterpy
splinterpy.BSplineBuilder()

throws an expection: AttributeError: module 'splinterpy' has no attribute 'BSplineBuilder'.

By printing for d in splinterpy.__dict__: print(d) I found that it has an attribute bsplinebuilders, but this does not have BSplineBuilder in it either.

Were can I find BSplineBuilder, and what is the structure of this PyPI package? Why is it structured seemingly completely different from what is shown in the Python examples in this repo?

bgrimstad commented 4 years ago

See related comment in #44.