Issue 1:
Proposed new feature or change:

@jit(nopython=True)
def slidingWindow(a,window):
'''
Make an ndarray with a sliding window of the first dimension(axis = 0)
Parameters
----------
a : array_like
Array to add sliding window to
window : int
Size of sliding window

Returns
-------
Array that is a view of the original array with a added dimension of size w.
'''
if window < 1:
raise Exception('Arg: window must be at least 1.')

if window > a.shape[0]:
raise Exception('Arg: window cannot bigger than a.shape[0]')

shape = (a.shape[0] - window + 1,) + a.shape[1:] + (window,)
strides = a.strides + (a.strides[0],)

return np.lib.stride_tricks.as_strided(a, shape=shape, strides=strides)

def TSPctlInterMean(m,d,p1,p2):
'''
TSMean for interval:[p1,p2] in past d dates
p1/p2: in np.array([0.1,0.25,0.5,0.75,0.9])
'''

if m.dtype == 'bool':
raise Exception('Cannot be Bool!!!')

size = m.size
if size == 1:
raise Exception('Cannot be Scalar!!!')

rowNum,colNum = m.shape[0],m.shape[1]
if rowNum < d:
raise Exception('RowNum Cannot Lesser than d!!!')

m_ = m.copy()

m_3d = slidingWindow(m_,d)	#3 dimension (i,j,k:rowNum-d+1,column,d), m_3d[:,0,:] is 2-DimensionSlideWindow for 1th column

PctMat1 = np.nanpercentile(m_3d,p1 * 100,axis = 2).reshape(rowNum-d+1,colNum,1) #percentile p for each row
PctMat2 = np.nanpercentile(m_3d,p2 * 100,axis = 2).reshape(rowNum-d+1,colNum,1) #percentile p for each row
indLogic1 = m_3d >= PctMat1
indLogic2 = m_3d <= PctMat2
indLogic = np.logical_and(indLogic1,indLogic2)
#return indLogic
m_3d_slice = m_3d[indLogic]	#cannot keep dimension
return bt.nanmean(m_3d_slice,axis=2)

m1 = np.random.randn(300,3000)

TSPctlInterMean(m1 ,21,0.2,0.7) will raise Error!!!

m_3d_slice = m_3d[indLogic] will be a vector

how can I keep the same dimension with m_3d

Thanks!!!

Issue 2:
-Operating System: Raspbian Stretch (9)

-How Python was installed: Python 3.5.3 is default Python3 on Stretch

-How numpy was installed: pip installed under virtual environment (version 1.17.3)

-Python2.7 is also installed by default

I want to use OpenVINO's dldt library for inference on raspberry pi 3. I've run into issues before but following some instructions here, I built the most recent version of the library using cmake for native compilation under raspbian stretch (It took hours).

I first noticed the error when running their model optimizer python code:

$ python3 <dldt_dir>/model-optimizer/mo.py --input_model [input model] --data_type [data type] --output_dir [output_dir]
Traceback (most recent call last):
File "/home/pi/.virtualenvs/openvino/lib/python3.5/site-packages/numpy/core/__init__.py", line 17, in <module>
from . import multiarray
File "/home/pi/.virtualenvs/openvino/lib/python3.5/site-packages/numpy/core/multiarray.py", line 14, in <module>
from . import overrides
File "/home/pi/.virtualenvs/openvino/lib/python3.5/site-packages/numpy/core/overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/.virtualenvs/openvino/lib/python3.5/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/home/pi/.virtualenvs/openvino/lib/python3.5/site-packages/numpy/core/__init__.py", line 47, in <module>
raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
1. Check that you expected to use Python3.5 from "/home/pi/.virtualenvs/openvino/bin/python",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.17.3" you're trying to use.
2. If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues. Please include details on:
- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory

However I quickly found out that this problem persists when importing numpy from Python3

>>> import numpy as np
[...]
Importing the numpy c-extensions failed.
[...]
Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory

I've tried uninstalling and reinstalling numpy. I've made sure that numpy worked in Python3 before installing the dldt library.

Please help. You're my only hope.