Skip to content

Commit 69329d7

Browse files
author
Michael Folkerts
committed
update readme
1 parent b676067 commit 69329d7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ To simpify the install process and to provide users with accelerated (pre-compil
3232
* Tested to work with new projects being built with pyesapi
3333
* Install [Python Extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
3434
* Select your pyesapi36 conda env (bottom bar, left side)
35-
* PyLint is already included in the provided pyesapi36 conda env
36-
* Type stubs are still experimental
35+
* Flake8 is already included in the provided pyesapi36 conda env
36+
* Linting is still experimental, but code completion seems to work, please report issues you find
3737
* Set path to conda in your *User* settings.json:
3838
* `"python.condaPath": "C:\\Example\\Path\\To\\anaconda3\\Scripts\\conda.exe"`
3939
* Set cmd to default integrated terminal in *Workspace* settings.json file [(ref)](https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration)

pyesapi/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def to_ndarray(src, dtype):
108108
src_ptr = src_hndl.AddrOfPinnedObject().ToInt64()
109109
dest = np.frombuffer(string_at(src_ptr, len(src) * sizeof(dtype)), dtype=dtype)
110110
finally:
111-
if src_hndl.IsAllocated: src_hndl.Free()
111+
if src_hndl.IsAllocated:
112+
src_hndl.Free()
112113
if SAFE_MODE:
113114
check_arrays(src, dest)
114115
return dest

0 commit comments

Comments
 (0)