Skip to content
#

SciPy

scipy logo

SciPy (pronounced “Sigh Pie”) is a Python-based ecosystem of open source software for mathematics, science, and engineering.

Here are 1,339 public repositories matching this topic...

Data science Python notebooks: Deep learning (TensorFlow, Theano, Caffe, Keras), scikit-learn, Kaggle, big data (Spark, Hadoop MapReduce, HDFS), matplotlib, pandas, NumPy, SciPy, Python essentials, AWS, and various command lines.

  • Updated May 13, 2021
  • Python
poldap
poldap commented Aug 2, 2021

scipy.signal.bspline gives zero output for integer types. This also affects quadratic and cubic.

Reproducing code example:

An example of an incorrect result

>>> from scipy.signal import bspline, quadratic, cubic
>>> bspline(np.array([-3,-2,-1,0,1,2,3]), 6)
array([0, 0, 0, 0, 0, 0, 0])

What was expected

>>> bspline(np.array([-3,-2,-1,0,1,2,3]).astype(float), 6)
array
verde
santisoler
santisoler commented May 11, 2021

Description of the desired feature

The spacing parameter of the rolling_window function controls the distance between the center of two adjacent windows.
Nevertheless, the docstring reads:

    spacing : float, tuple = (s_north, s_east), or None
        The window size in the South-North and West-East directions,
        respectively. A single value means that the size is equal 

Created by Travis Oliphant, Pearu Peterson, Eric Jones

Latest release 3 months ago

Repository
scipy/scipy
Website
www.scipy.org
Wikipedia
Wikipedia

Related Topics

python scikit