Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 1a78436

Browse files
committed
Add simple utility property
1 parent 540985c commit 1a78436

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyop3/array/harray.py

+5
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,11 @@ def __getitem__(self, indices) -> ContextSensitiveMultiArray:
567567
#
568568
# return ContextSensitiveMultiArray(array_per_context)
569569

570+
@property
571+
def context_free(self):
572+
# Will only work if a single context is wrapped
573+
return just_one(self.context_map.values())
574+
570575
@property
571576
def buffer(self):
572577
return self._shared_attr("buffer")

0 commit comments

Comments
 (0)