Skip to content

Commit c4d9472

Browse files
committed
Update: entropy
1 parent 57c5841 commit c4d9472

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kaleidoscope/operators/randomizeop.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def run(self, source: Dataset) -> Dataset: # noqa: D102
104104
np.single,
105105
x.ndim,
106106
dist=a["distribution"],
107-
entropy=self.entropy(),
107+
entropy=self.entropy,
108108
)
109109
if "uncertainty" in a:
110110
u = (
@@ -174,5 +174,7 @@ def config(self) -> dict[str : dict[str:Any]]:
174174
config = json.load(r)
175175
return config
176176

177+
@property
177178
def entropy(self) -> list[int]:
179+
"""Returns the entropy of the seed sequence."""
178180
return [self._args.selector, _hash(self._args.source_file.stem)]

0 commit comments

Comments
 (0)