Skip to content

Commit

Permalink
Update revision-scripts/mp_classification.py
Browse files Browse the repository at this point in the history
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
kjappelbaum and sourcery-ai[bot] authored Aug 14, 2024
1 parent 0dfe9ee commit 0de6dda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions revision-scripts/mp_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def __len__(self):

def get(self, index):
id = f"{index}".encode("ascii")
datapoint = pickle.loads(self.txn.get(id))
return datapoint
return pickle.loads(self.txn.get(id))

def create_json_from_lmdb(lmdb_path, output_dir):
dataset = Dataset(lmdb_path)
Expand Down

0 comments on commit 0de6dda

Please sign in to comment.