From 3d0c5ee5bfdbb3c88f0181d5b43227a4dff33dd0 Mon Sep 17 00:00:00 2001 From: gxenos Date: Mon, 16 Jan 2023 19:40:55 +0200 Subject: [PATCH] fixes the depricated numpy alias np.int --- ember/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ember/features.py b/ember/features.py index bbaa138..4eaec89 100644 --- a/ember/features.py +++ b/ember/features.py @@ -97,7 +97,7 @@ def _entropy_bin_counts(self, block): return Hbin, c def raw_features(self, bytez, lief_binary): - output = np.zeros((16, 16), dtype=np.int) + output = np.zeros((16, 16), dtype=int) a = np.frombuffer(bytez, dtype=np.uint8) if a.shape[0] < self.window: Hbin, c = self._entropy_bin_counts(a)