Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bsplines2d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@
from ._class03_Bins import Bins as BSplines2D
from ._saveload import load
from . import tests
from . import tutorials
3 changes: 2 additions & 1 deletion bsplines2d/_class02_BSplines2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ def extract(
inplace=inplace,
return_keys=True,
)

return _compute.extract(
coll=self,
keys=keys,
Expand Down Expand Up @@ -1314,4 +1315,4 @@ def save(

_saveload.restore_bsplines(self, dclas=dclas)

return out
return out
13 changes: 11 additions & 2 deletions bsplines2d/_class02_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,17 @@ def extract(
# trivial
# ---------------

return_keys = ds._generic_check._check_var(
return_keys, 'return_keys',
types=bool,
default=False,
)

if len(lmesh) == 0:
return coll2, keys
if return_keys is True:
return coll2, keys
else:
return coll2

# ---------------
# add mesh
Expand Down Expand Up @@ -974,4 +983,4 @@ def _get_possible_ref12d(
return val, dparams
else:
return val
"""
"""
Binary file not shown.
5 changes: 5 additions & 0 deletions bsplines2d/tutorials/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


from ._tuto01_bsplines_types import main as tuto01_bsplines_types


Loading
Loading