Skip to content
Merged
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: 0 additions & 1 deletion datastock/_class1.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ def extract(
return_keys: returns the value of keys

"""

return _class1_compute._extract_instance(
self,
keys=keys,
Expand Down
2 changes: 0 additions & 2 deletions datastock/_class1_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,6 @@ def _extract_instance(
# -----------------
# select
# -----------------

ldata, lref = _extract_select(
coll=coll,
keys=keys,
Expand All @@ -755,7 +754,6 @@ def _extract_instance(
else:
coll2 = coll.__class__()


# ------------------------
# Populate
# ------------------------
Expand Down
8 changes: 5 additions & 3 deletions datastock/_plot_as_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,18 @@ def plot_as_array(

# check key, inplace flag and extract sub-collection
lk = [kk for kk in [keyX, keyY, keyZ, keyU] if kk is not None]
coll2, key = coll.extract(
coll2, keys = coll.extract(
[key] + lk,
inc_monot=False,
inc_vectors=False,
inc_allrefs=False,
return_keys=True,
inplace=inplace,
)
key = [kk for kk in key if kk not in lk][0]
if key is None:
key = [kk for kk in key if kk not in lk]
lndim = [coll2.ddata[kk]['data'].ndim for kk in key]
key = key[np.argmax(lndim)]
ndim = coll2.ddata[key]['data'].ndim

# --------------
Expand Down Expand Up @@ -603,7 +606,6 @@ def _check(
else:
dvminmax2[k1]['min'] = dvminmax[kk]['min']


if dvminmax is None or dvminmax.get(kk, {}).get('max') is None:
dvminmax2[k1]['max'] = nanmax + margin
else:
Expand Down
Loading